cannot run POS - Nullpointer exceptions (unknown source)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

cannot run POS - Nullpointer exceptions (unknown source)

Daniel P
Hi all,
   
  I'm completely new to Ofbiz. I've managed to download, compile and execute the Ofbiz server on my machine, without problems (both from the latest svn version and the opentaps-0.9.2 compilation).
   
  However, I am not able to run the POS application. There are exceptions at the moment the application GUI is created (see output below).
  I think I have strictly followed the instructions: I have installed Java 2 SDK version 1.4.2_04  -- I have also tried with JRE 1.4.2_12 and SDK 1.5 with similar results).  I'm running the application with "java -jar ofbiz.jar -pos"
   
  Maybe there is something missing in the CLASSPATH, but the instructions don't say anything about this.
  Please advice !! Thanks in advance !!
   
  Exceptions output:
  ---------------------------
  2006-10-30 14:12:33,817 (main) [         XuiSession.java:65 :INFO ] Created XuiS
ession [pos-1]
java.lang.NullPointerException
        at javax.swing.SizeRequirements.calculateAlignedPositions(Unknown Source
)
        at javax.swing.SizeRequirements.calculateAlignedPositions(Unknown Source
)
        at javax.swing.OverlayLayout.layoutContainer(Unknown Source)
        at java.awt.Container.layout(Unknown Source)
        at java.awt.Container.doLayout(Unknown Source)
        at net.xoetrope.swing.SwingWidgetAdapter.doLayout(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.readPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.loadPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.readPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.swing.XApplet.setHome(Unknown Source)
        at net.xoetrope.swing.XApplet.setContent(Unknown Source)
        at net.xoetrope.swing.XApplet.initialise(Unknown Source)
        at net.xoetrope.swing.XApplet.setup(Unknown Source)
        at org.ofbiz.guiapp.xui.XuiContainer$XuiScreen.setup(XuiContainer.java:1
59)
        at org.ofbiz.guiapp.xui.XuiContainer.start(XuiContainer.java:114)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8
9)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:323)
        at org.ofbiz.base.start.Start.start(Start.java:327)
        at org.ofbiz.base.start.Start.main(Start.java:413)
java.lang.NullPointerException
        at javax.swing.SizeRequirements.calculateAlignedPositions(Unknown Source
)
        at javax.swing.SizeRequirements.calculateAlignedPositions(Unknown Source
)
        at javax.swing.OverlayLayout.layoutContainer(Unknown Source)
        at java.awt.Container.layout(Unknown Source)
        at java.awt.Container.doLayout(Unknown Source)
        at net.xoetrope.swing.SwingWidgetAdapter.doLayout(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.readPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.loadPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.readPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.swing.XApplet.setHome(Unknown Source)
        at net.xoetrope.swing.XApplet.setContent(Unknown Source)
        at net.xoetrope.swing.XApplet.initialise(Unknown Source)
        at net.xoetrope.swing.XApplet.setup(Unknown Source)
        at org.ofbiz.guiapp.xui.XuiContainer$XuiScreen.setup(XuiContainer.java:1
59)
        at org.ofbiz.guiapp.xui.XuiContainer.start(XuiContainer.java:114)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8
9)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:323)
        at org.ofbiz.base.start.Start.start(Start.java:327)
        at org.ofbiz.base.start.Start.main(Start.java:413)
java.lang.NullPointerException
        at javax.swing.SizeRequirements.calculateAlignedPositions(Unknown Source
)
        at javax.swing.SizeRequirements.calculateAlignedPositions(Unknown Source
)
        at javax.swing.OverlayLayout.layoutContainer(Unknown Source)
        at java.awt.Container.layout(Unknown Source)
        at java.awt.Container.doLayout(Unknown Source)
        at net.xoetrope.swing.SwingWidgetAdapter.doLayout(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.readPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.loadPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.readPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.swing.XApplet.setHome(Unknown Source)
        at net.xoetrope.swing.XApplet.setContent(Unknown Source)
        at net.xoetrope.swing.XApplet.initialise(Unknown Source)
        at net.xoetrope.swing.XApplet.setup(Unknown Source)
        at org.ofbiz.guiapp.xui.XuiContainer$XuiScreen.setup(XuiContainer.java:1
59)
        at org.ofbiz.guiapp.xui.XuiContainer.start(XuiContainer.java:114)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8
9)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:323)
        at org.ofbiz.base.start.Start.start(Start.java:327)
        at org.ofbiz.base.start.Start.main(Start.java:413)
java.lang.NullPointerException
        at javax.swing.SizeRequirements.getAlignedSizeRequirements(Unknown Sourc
e)
        at javax.swing.OverlayLayout.checkRequests(Unknown Source)
        at javax.swing.OverlayLayout.layoutContainer(Unknown Source)
        at java.awt.Container.layout(Unknown Source)
        at java.awt.Container.doLayout(Unknown Source)
        at net.xoetrope.swing.SwingWidgetAdapter.doLayout(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.readPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.loadPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponent(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.addComponents(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.readPage(Unknown Source)
        at net.xoetrope.builder.XuiBuilder.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.swing.XApplet.setHome(Unknown Source)
        at net.xoetrope.swing.XApplet.setContent(Unknown Source)
        at net.xoetrope.swing.XApplet.initialise(Unknown Source)
        at net.xoetrope.swing.XApplet.setup(Unknown Source)
        at org.ofbiz.guiapp.xui.XuiContainer$XuiScreen.setup(XuiContainer.java:1
59)
        at org.ofbiz.guiapp.xui.XuiContainer.start(XuiContainer.java:114)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8
9)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:323)
        at org.ofbiz.base.start.Start.start(Start.java:327)
        at org.ofbiz.base.start.Start.main(Start.java:413)
Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.ofbiz.pos.screen.PosScreen.pageCreated(PosScreen.java:106)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.loadPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.xui.XPageManager.showPage(Unknown Source)
        at net.xoetrope.swing.XApplet.setHome(Unknown Source)
        at net.xoetrope.swing.XApplet.setContent(Unknown Source)
        at net.xoetrope.swing.XApplet.initialise(Unknown Source)
        at net.xoetrope.swing.XApplet.setup(Unknown Source)
        at org.ofbiz.guiapp.xui.XuiContainer$XuiScreen.setup(XuiContainer.java:1
59)
        at org.ofbiz.guiapp.xui.XuiContainer.start(XuiContainer.java:114)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:8
9)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:323)
        at org.ofbiz.base.start.Start.start(Start.java:327)
        at org.ofbiz.base.start.Start.main(Start.java:413)
Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'o'
        at java.text.SimpleDateFormat.compile(Unknown Source)
        at java.text.SimpleDateFormat.initialize(Unknown Source)
        at java.text.SimpleDateFormat.<init>(Unknown Source)
        at java.text.SimpleDateFormat.<init>(Unknown Source)
        at org.ofbiz.pos.component.Operator.<clinit>(Operator.java:64)
        ... 16 more
2006-10-30 14:12:51,848 (org.ofbiz.service.jms.JmsListenerFactory@fa54fe) [ JmsL
istenerFactory.java:82 :INFO ] JMS Listener Factory Thread Finished; All listene
rs connected.

 
---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com