[ 
https://issues.apache.org/jira/browse/TUSCANY-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ignacio Silva-Lepe resolved TUSCANY-1299.
-----------------------------------------

    Resolution: Fixed

Both problems now fixed

> NPE after NoClassDefFoundError in trunk distro for 
> o.a.t.s.databinding.sdo.SDODataBinding
> -----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1299
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1299
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Data Binding Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Ignacio Silva-Lepe
>             Fix For: Java-SCA-Next
>
>
> After a full update and mvn clean; mvn of trunk, and mvn clean; mvn in 
> sca/distribution, I unzip the binary distro and try:
> C:\Devt\NotificationComponents\samples\broker>java 
> -Dnotification.httpPort=8080
> -cp 
> "target\tuscany-notification-broker-sample-1.0-incubating-SNAPSHOT.jar;..\..
> \local\target\tuscany-notification-local-1.0-incubating-SNAPSHOT.jar;..\..\bindi
> ng\target\tuscany-notification-binding-1.0-incubating-SNAPSHOT.jar;\Documents 
> an
> d 
> Settings\Administrator\.m2\repository\stax\stax\1.1.1-dev\stax-1.1.1-dev.jar;\
> Devt\tuscany-sca-distr\tuscany-sca-1.0-incubating-SNAPSHOT\lib\tuscany-sca-manif
> est.jar" org.apache.tuscany.sca.notification.broker.TrafficAdvisoryServer
> java.lang.NoClassDefFoundError: commonj/sdo/DataObject
>         at 
> org.apache.tuscany.sca.databinding.sdo.SDODataBinding.<clinit>(SDODat
> aBinding.java:46)
>         at 
> org.apache.tuscany.sca.databinding.sdo.module.SDODataBindingModuleAct
> ivator.start(SDODataBindingModuleActivator.java:57)
>         at 
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.startMod
> ules(ReallySmallRuntime.java:161)
>         at 
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(Re
> allySmallRuntime.java:110)
>         at 
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(Def
> aultSCADomain.java:86)
>         at 
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCAD
> omain.java:229)
>         at 
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.
> java:68)
>         at 
> org.apache.tuscany.sca.notification.broker.TrafficAdvisoryServer.main
> (TrafficAdvisoryServer.java:35)
> Looking in tuscany-sca-1.0-incubating-SNAPSHOT/lib I find 
> sdo-api-r2.1-1.0-incubating-20070520.134246-1.jar, but the manifest has a 
> reference to sdo-api-r2.1-1.0-incubating-SNAPSHOT.jar. So after copying that 
> expected jar from my local repo, I then see:
> C:\Devt\NotificationComponents\samples\broker>java 
> -Dnotification.httpPort=8080
> -cp 
> "target\tuscany-notification-broker-sample-1.0-incubating-SNAPSHOT.jar;..\..
> \local\target\tuscany-notification-local-1.0-incubating-SNAPSHOT.jar;..\..\bindi
> ng\target\tuscany-notification-binding-1.0-incubating-SNAPSHOT.jar;\Documents 
> an
> d 
> Settings\Administrator\.m2\repository\stax\stax\1.1.1-dev\stax-1.1.1-dev.jar;\
> Devt\tuscany-sca-distr\tuscany-sca-1.0-incubating-SNAPSHOT\lib\tuscany-sca-manif
> est.jar" org.apache.tuscany.sca.notification.broker.TrafficAdvisoryServer
> *** Activating notification binding module, localBaseUrl 
> [http://spyder.watson.i
> bm.com:8080]
> *** Activating local notification module
> *** binding ntm [http://localhost:8080/ntm], notificationType 
> [trafficAdvisory]
> *** binding ntm [http://localhost:8080/ntm], notificationType 
> [trafficAdvisory]
> org.osoa.sca.ServiceRuntimeException: java.lang.NullPointerException
>         at 
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCAD
> omain.java:263)
>         at 
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.
> java:68)
>         at 
> org.apache.tuscany.sca.notification.broker.TrafficAdvisoryServer.main
> (TrafficAdvisoryServer.java:35)
> Caused by: java.lang.NullPointerException
>         at 
> commonj.sdo.impl.HelperProvider.getDefaultContext(HelperProvider.java
> :379)
>         at 
> org.apache.tuscany.sca.databinding.sdo.SDODataBinding.introspect(SDOD
> ataBinding.java:66)
>         at 
> org.apache.tuscany.sca.databinding.DefaultDataBindingExtensionPoint.i
> ntrospectType(DefaultDataBindingExtensionPoint.java:84)
>         at 
> org.apache.tuscany.core.databinding.processor.DataBindingJavaInterfac
> eProcessor.processInterface(DataBindingJavaInterfaceProcessor.java:115)
>         at 
> org.apache.tuscany.core.databinding.processor.DataBindingJavaInterfac
> eProcessor.visitInterface(DataBindingJavaInterfaceProcessor.java:55)
>         at 
> org.apache.tuscany.sca.interfacedef.java.introspect.ExtensibleJavaInt
> erfaceIntrospector.introspect(ExtensibleJavaInterfaceIntrospector.java:83)
>         at 
> org.apache.tuscany.sca.implementation.java.introspect.impl.ReferenceP
> rocessor.createReference(ReferenceProcessor.java:160)
>         at 
> org.apache.tuscany.sca.implementation.java.introspect.impl.ReferenceP
> rocessor.visitField(ReferenceProcessor.java:93)
>         at 
> org.apache.tuscany.sca.implementation.java.introspect.ExtensibleJavaC
> lassIntrospector.introspect(ExtensibleJavaClassIntrospector.java:99)
>         at 
> org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProc
> essor.resolve(JavaImplementationProcessor.java:119)
>         at 
> org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProc
> essor.resolve(JavaImplementationProcessor.java:49)
>         at 
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactP
> rocessor.resolve(ExtensibleStAXArtifactProcessor.java:102)
>         at 
> org.apache.tuscany.sca.assembly.xml.BaseArtifactProcessor.resolveImpl
> ementation(BaseArtifactProcessor.java:387)
>         at 
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(Compos
> iteProcessor.java:466)
>         at 
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(Compos
> iteProcessor.java:65)
>         at 
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactP
> rocessor.resolve(ExtensibleStAXArtifactProcessor.java:102)
>         at 
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolv
> e(CompositeDocumentProcessor.java:83)
>         at 
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolv
> e(CompositeDocumentProcessor.java:43)
>         at 
> org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactPr
> ocessor.resolve(ExtensibleURLArtifactProcessor.java:73)
>         at 
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceI
> mpl.processResolvePhase(ContributionServiceImpl.java:317)
>         at 
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceI
> mpl.addContribution(ContributionServiceImpl.java:254)
>         at 
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceI
> mpl.contribute(ContributionServiceImpl.java:119)
>         at 
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(Def
> aultSCADomain.java:104)
>         at 
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCAD
> omain.java:229)
>         ... 2 more
> Any ideas?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to