On Wednesday 19 September 2007 10:59, robin wrote: > Hi, > > I created the sample Online Store application as the sample explained > step by step in > http://incubator.apache.org/tuscany/sca-java-099-incubating-release-sum >mary.data/getting_started_Rest_099_07.pdf. but NullPointerException > occurs like below: > > Starting ... > Exception in thread "main" org.osoa.sca.ServiceRuntimeException: > java.lang.NullPointerException > at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance( > SCADomain.java:264) > at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance( > SCADomain.java:69) > at launch.Launch.main(Launch.java:8) > Caused by: java.lang.NullPointerException > at > org.apache.tuscany.sca.contribution.util.ServiceConfigurationUtil.getSe >rviceClassNames (ServiceConfigurationUtil.java:46) > at > org.apache.tuscany.sca.core.DefaultExtensionPointRegistry.getExtensionP >oint( DefaultExtensionPointRegistry.java:72) > at > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntimeBuilder.cre >ateSCADefinitionsDocProcessor (ReallySmallRuntimeBuilder.java:232) > at org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start( > ReallySmallRuntime.java:108) > at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>( > DefaultSCADomain.java:93) > at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance( > SCADomain.java:230) > ... 2 more > > What is the problem? > > Thanks.Robin
Hi Robin, I had an NPE when I built the example. Not sure if it's same as yours. The notes I made at the time were: It builds but will not run. This was due to building against Java 6. Demo starts OK when build with jre1.5.0_11 but the demo web page has the check boxes missing. Fixed the missing check boxes - this was due to corrupted javascript code in store.html To run the application. Right click on src/launch/Launch.java and select: Run As -> Java Application Make sure Tomcat is not listening on 8080 as the application loads the internal Jetty server. In the eclipse console you should see: Starting ... addServletMapping port: 8080 path: /ufs/* addServletMapping port: 8080 path: /SCADomain/Catalog addServletMapping port: 8080 path: /SCADomain/scaDomain.js addServletMapping port: 8080 path: /SCADomain/ShoppingCart addServletMapping port: 8080 path: /SCADomain/scaDomain.js store.composite ready for big business !!! In your browser point to http://localhost:8080/ufs/store.html If you want.I can send you a zip of the project as an attachment - just email me directly. Cheers, Steve --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
