Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-1.3
-
None
-
Windows XP SP2 IBM JDK5
Description
run:
[java] Starting ...
[java] 22-Jun-2008 12:10:55 org.apache.tuscany.sca.implementation.java.xml.
JavaImplementationProcessor
[java] SEVERE: Contribution Resolve Exception occured due to:
[java] Exception in thread "main" org.osoa.sca.ServiceRuntimeException: org
.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.C
ontributionResolveException: org.apache.tuscany.sca.implementation.java.introspe
ct.impl.IllegalInitException: Initializer must be a public method. Invalid annot
ation @Init found on protected void services.ShoppingCartImpl.init()
[java] at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInsta
nce(SCADomain.java:276)
[java] at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SC
ADomain.java:70)
[java] at launch.Launch.main(Launch.java:27)
[java] Caused by: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.
sca.contribution.service.ContributionResolveException: org.apache.tuscany.sca.im
plementation.java.introspect.impl.IllegalInitException: Initializer must be a pu
blic method. Invalid annotation @Init found on protected void services.ShoppingC
artImpl.init()
[java] at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.an
alyseProblems(DefaultSCADomain.java:307)
[java] at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.ad
dContribution(DefaultSCADomain.java:334)
[java] at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.in
it(DefaultSCADomain.java:183)
[java] at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<i
nit>(DefaultSCADomain.java:120)
[java] at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInsta
nce(SCADomain.java:242)
[java] ... 2 more
[java] Caused by: org.apache.tuscany.sca.contribution.service.ContributionR
esolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.Ille
galInitException: Initializer must be a public method. Invalid annotation @Init
found on protected void services.ShoppingCartImpl.init()
[java] at org.apache.tuscany.sca.implementation.java.xml.JavaImplementa
tionProcessor.resolve(JavaImplementationProcessor.java:194)
[java] at org.apache.tuscany.sca.implementation.java.xml.JavaImplementa
tionProcessor.resolve(JavaImplementationProcessor.java:71)
[java] at org.apache.tuscany.sca.contribution.processor.DefaultStAXArti
factProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifac
tProcessorExtensionPoint.java:364)
[java] at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXA
rtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:170)
[java] at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.res
olveImplementation(BaseAssemblyProcessor.java:301)
[java] at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolv
e(CompositeProcessor.java:901)
[java] at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolv
e(CompositeProcessor.java:87)
[java] at org.apache.tuscany.sca.contribution.processor.DefaultStAXArti
factProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifac
tProcessorExtensionPoint.java:364)
[java] at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXA
rtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:170)
[java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcesso
r.resolve(CompositeDocumentProcessor.java:164)
[java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcesso
r.resolve(CompositeDocumentProcessor.java:56)
[java] at org.apache.tuscany.sca.contribution.processor.ExtensibleURLAr
tifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:106)
[java] at org.apache.tuscany.sca.contribution.service.impl.Contribution
ServiceImpl.processResolvePhase(ContributionServiceImpl.java:530)
[java] at org.apache.tuscany.sca.contribution.service.impl.Contribution
ServiceImpl.addContribution(ContributionServiceImpl.java:396)
[java] at org.apache.tuscany.sca.contribution.service.impl.Contribution
ServiceImpl.contribute(ContributionServiceImpl.java:189)
[java] at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain$3.
run(DefaultSCADomain.java:326)
[java] at java.security.AccessController.doPrivileged(AccessController.
java:242)
[java] at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.ad
dContribution(DefaultSCADomain.java:324)
[java] ... 5 more
[java] Caused by: org.apache.tuscany.sca.implementation.java.introspect.imp
l.IllegalInitException: Initializer must be a public method. Invalid annotation
@Init found on protected void services.ShoppingCartImpl.init()
[java] at org.apache.tuscany.sca.implementation.java.introspect.impl.In
itProcessor.visitMethod(InitProcessor.java:57)
[java] at org.apache.tuscany.sca.implementation.java.impl.JavaClassIntr
ospectorImpl.introspectClass(JavaClassIntrospectorImpl.java:107)
[java] at org.apache.tuscany.sca.implementation.java.impl.JavaImplement
ationFactoryImpl.createJavaImplementation(JavaImplementationFactoryImpl.java:55)
[java] at org.apache.tuscany.sca.implementation.java.xml.JavaImplementa
tionProcessor.resolve(JavaImplementationProcessor.java:192)
[java] ... 22 more
[java] Java Result: 1