Jim Marino wrote:
> I am in the process of making some early changes to the proxy
> configuration mechanism so that we can switch over to the new context
> infrastructure. These are early changes that will need a lot of
> refactoring so I am attempting to do this in parallel. At the point
> that it settles down, I will let people no so we can figure out the
> best approach to do the switch-over.
>
> Jim
>
>
I just updated and tried to build but I get an NPE in the samples - is
this likely to be related ? Is this something that may go away soon or
should I look at it?
--
Jeremy
-------------------------------------------------------------------------------
Battery:
org.apache.tuscany.samples.helloworld.HelloWorldServiceComponentTestCase
-------------------------------------------------------------------------------
testGeetings(org.apache.tuscany.samples.helloworld.HelloWorldServiceComponentTestCase)
[ stdout ] ---------------------------------------------------------------
starting test..
[ stderr ] ---------------------------------------------------------------
[ stacktrace ] -----------------------------------------------------------
java.lang.NullPointerException
at
org.apache.tuscany.core.invocation.jdk.JDKProxyFactory.initialize(JDKProxyFactory.java:47)
at
org.apache.tuscany.core.builder.impl.PortRuntimeConfigurationBuilderImpl.buildProxyFactory(PortRuntimeConfigurationBuilderImpl.java:130)
at
org.apache.tuscany.core.builder.impl.PortRuntimeConfigurationBuilderImpl.visit(PortRuntimeConfigurationBuilderImpl.java:88)
at
org.apache.tuscany.model.assembly.impl.AssemblyModelVisitorHelperImpl.accept(AssemblyModelVisitorHelperImpl.java:31)
at
org.apache.tuscany.model.assembly.impl.SimpleComponentImpl.accept(SimpleComponentImpl.java:224)
at
org.apache.tuscany.model.assembly.impl.AssemblyModelVisitorHelperImpl.accept(AssemblyModelVisitorHelperImpl.java:36)
at
org.apache.tuscany.model.assembly.impl.ModuleImpl.accept(ModuleImpl.java:377)
at
org.apache.tuscany.core.builder.impl.PortRuntimeConfigurationBuilderImpl.build(PortRuntimeConfigurationBuilderImpl.java:76)
at
org.apache.tuscany.core.context.impl.TuscanyModuleComponentContextImpl.start(TuscanyModuleComponentContextImpl.java:165)
at
org.apache.tuscany.core.client.TuscanyRuntime.start(TuscanyRuntime.java:97)
at
org.apache.tuscany.samples.helloworld.HelloWorldServiceComponentTestCase.testGeetings(HelloWorldServiceComponentTestCase.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:246)
at
org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:220)
at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:203)
at org.codehaus.surefire.Surefire.run(Surefire.java:152)
at org.codehaus.surefire.Surefire.run(Surefire.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:229)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)