You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by haleh mahbod <hm...@gmail.com> on 2007/08/14 23:55:31 UTC

Re: Learn to build your SCA app in few minutes...

Hi Steve,
I am posting this to Tuscany-dev to see if  there is a problem with the
nightly while I am also downloading the latest to see if I run into the
issue.

Haleh

On 8/14/07, Steve Jones <st...@istech.demon.co.uk> wrote:
>
> Hi,
>
> I've been working through the example. Everything builds OK.
>
> I get a null pointer exception when I try to run it (details at end).
>
> AFAIK I've built the demo exactly as outlined using the nightly build.
>
> I've linked eclipse to the latest svn source as the 0.91 source was giving
> me line number missmatch when I tried to do some debugging.
>
> I'm ruining eclipse Europa on Windows Vista with Java 1.6.0_02.
>
> I'm completely new to web services so I really have no clue what to look
> out  for.
>
> So far I've managed to get Tomcat running under IIS on a Windows Vista
> machine. I can stop and start Tomcat and the Tomcat jsp examples seem to
> work OK.
>
> I've made sure Tomcat is stopped when I launch the Tuscany demo.
>
> Could any of the above be the cause of the problem?
>
> Any suggestions would be very welcome,
>
> Thanks, Steve.
>
>
> 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.interfacedef.impl.TempServiceDeclarationUtil.getServiceClassNames
> (TempServiceDeclarationUtil.java:46)
>         at
>
> org.apache.tuscany.sca.core.DefaultExtensionPointRegistry.getExtensionPoint
> (DefaultExtensionPointRegistry.java:71)
>         at
>
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntimeBuilder.createContributionService
> (ReallySmallRuntimeBuilder.java:152)
>         at
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(
> ReallySmallRuntime.java:109)
>         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
>
>

Re: Learn to build your SCA app in few minutes...

Posted by Steve Jones <st...@istech.demon.co.uk>.
Haleh,

Your right it is a Java 6 problem. If I build with jre1.5.0_11 the demo 
starts up OK.

Things are not right on the demo web page. The apple, orange and pear 
check boxes and labels are missing. I'm looking into this now.

Cheers.

On Tuesday 14 August 2007 23:01, haleh mahbod wrote:
> Steve,
>
> Java SCA FAQ says that Java 1.6 may not work. Can you try 1.5?
> Here is the link:
> http://incubator.apache.org/tuscany/tuscany-sca-java-faq.html#TuscanySC
>AJava-FAQ-BuildA
>
> Haleh
>
> On 8/14/07, haleh mahbod <hm...@gmail.com> wrote:
> > Hi Steve,
> > I am posting this to Tuscany-dev to see if  there is a problem with
> > the nightly while I am also downloading the latest to see if I run
> > into the issue.
> >
> > Haleh
> >
> > On 8/14/07, Steve Jones <st...@istech.demon.co.uk> wrote:
> > > Hi,
> > >
> > > I've been working through the example. Everything builds OK.
> > >
> > > I get a null pointer exception when I try to run it (details at
> > > end).
> > >
> > > AFAIK I've built the demo exactly as outlined using the nightly
> > > build.
> > >
> > > I've linked eclipse to the latest svn source as the 0.91 source was
> > > giving
> > > me line number missmatch when I tried to do some debugging.
> > >
> > > I'm ruining eclipse Europa on Windows Vista with Java 1.6.0_02 .
> > >
> > > I'm completely new to web services so I really have no clue what to
> > > look out  for.
> > >
> > > So far I've managed to get Tomcat running under IIS on a Windows
> > > Vista machine. I can stop and start Tomcat and the Tomcat jsp
> > > examples seem to
> > >
> > > work OK.
> > >
> > > I've made sure Tomcat is stopped when I launch the Tuscany demo.
> > >
> > > Could any of the above be the cause of the problem?
> > >
> > > Any suggestions would be very welcome,
> > >
> > > Thanks, Steve.
> > >
> > >
> > > 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.interfacedef.impl.TempServiceDeclarationUtil
> > >.getServiceClassNames( TempServiceDeclarationUtil.java:46)
> > >         at
> > >
> > > org.apache.tuscany.sca.core.DefaultExtensionPointRegistry.getExtens
> > >ionPoint (DefaultExtensionPointRegistry.java:71)
> > >         at
> > >
> > > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntimeBuilder
> > >.createContributionService( ReallySmallRuntimeBuilder.java:152)
> > >         at
> > > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(
> > > ReallySmallRuntime.java:109)
> > >         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

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Learn to build your SCA app in few minutes...

Posted by haleh mahbod <hm...@gmail.com>.
Steve,

Java SCA FAQ says that Java 1.6 may not work. Can you try 1.5?
Here is the link:
http://incubator.apache.org/tuscany/tuscany-sca-java-faq.html#TuscanySCAJava-FAQ-BuildA

Haleh

On 8/14/07, haleh mahbod <hm...@gmail.com> wrote:
>
> Hi Steve,
> I am posting this to Tuscany-dev to see if  there is a problem with the
> nightly while I am also downloading the latest to see if I run into the
> issue.
>
> Haleh
>
> On 8/14/07, Steve Jones <st...@istech.demon.co.uk> wrote:
> >
> > Hi,
> >
> > I've been working through the example. Everything builds OK.
> >
> > I get a null pointer exception when I try to run it (details at end).
> >
> > AFAIK I've built the demo exactly as outlined using the nightly build.
> >
> > I've linked eclipse to the latest svn source as the 0.91 source was
> > giving
> > me line number missmatch when I tried to do some debugging.
> >
> > I'm ruining eclipse Europa on Windows Vista with Java 1.6.0_02 .
> >
> > I'm completely new to web services so I really have no clue what to look
> > out  for.
> >
> > So far I've managed to get Tomcat running under IIS on a Windows Vista
> > machine. I can stop and start Tomcat and the Tomcat jsp examples seem to
> >
> > work OK.
> >
> > I've made sure Tomcat is stopped when I launch the Tuscany demo.
> >
> > Could any of the above be the cause of the problem?
> >
> > Any suggestions would be very welcome,
> >
> > Thanks, Steve.
> >
> >
> > 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.interfacedef.impl.TempServiceDeclarationUtil.getServiceClassNames(
> > TempServiceDeclarationUtil.java:46)
> >         at
> >
> > org.apache.tuscany.sca.core.DefaultExtensionPointRegistry.getExtensionPoint
> > (DefaultExtensionPointRegistry.java:71)
> >         at
> >
> > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntimeBuilder.createContributionService(
> > ReallySmallRuntimeBuilder.java:152)
> >         at
> > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(
> > ReallySmallRuntime.java:109)
> >         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
> >
> >
>