[ 
https://issues.apache.org/jira/browse/TUSCANY-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465547
 ] 

Ignacio Silva-Lepe commented on TUSCANY-1003:
---------------------------------------------

I am not sure exactly how run.bat is put together, but I am not even able to 
get as far as you are, I get the following:

C:\Devt\eclipse-311\eclipse\workspace\trunk\samples\sca\helloworldwsclient-async
>run
java.io.FileNotFoundException: C:\Documents and Settings\Administrator\.m2\repos
itory\org\apache\tuscany\standalone\1.0-SNAPSHOT\standalone-1.0-SNAPSHOT-bin.zip
 (The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at sun.tools.jar.Main.run(Main.java:184)
        at sun.tools.jar.Main.main(Main.java:903)
The system cannot find the file specified.
...
The system cannot find the file specified.
Unable to access jarfile target\standalone\bin\launcher.jar

Following Rick's advice, I have used o/a/t/sca/runtime/standalone/assembly to 
run standalone. Before that, I have just used junit and run the test in the 
build by adding a "TestCase" suffixed copy of the client class. But even that 
at the moment is giving me:

Running helloworld.HelloWorldWSAsyncClientTestCase
log4j:WARN No appenders could be found for logger (org.apache.axiom.om.util.StAX
Utils).
log4j:WARN Please initialize the log4j system properly.
org.osoa.sca.ServiceRuntimeException: Service not found [null]
        at org.apache.tuscany.core.implementation.composite.AbstractCompositeCon
text.getInboundWire(AbstractCompositeContext.java:85)
        at org.apache.tuscany.core.implementation.composite.AbstractCompositeCon
text.locateService(AbstractCompositeContext.java:67)
        at helloworld.HelloWorldWSAsyncClientTestCase.setUp(HelloWorldWSAsyncCli
entTestCase.java:25)
        at junit.framework.TestCase.runBare(TestCase.java:125)
        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(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav
a:210)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:135)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:122)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:288)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:816)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.955 sec <<< FA
ILURE!

I believe this is due to some of the refactoring that has been going on, but I 
have not actually investigated in detail to fix it, yet

> NPE thrown by AxisEngine.send in service side of axis2 binding for async 
> callbacks
> ----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1003
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1003
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding
>    Affects Versions: Java-Mx
>            Reporter: Ignacio Silva-Lepe
>             Fix For: Java-Mx
>
>
> I'm seeing an NPE thrown by AxisEngine.send in the service side of the axis2 
> binding for async callbacks. The trace is below. My current guess is that 
> this may have something to do with the pass-by-value interceptor but I have 
> not delved to deeply into the possible cause. For now I am leaving this in 
> the Java SCA Axis binding component but that may change depending on the 
> actual reason for the exception.
> org.apache.tuscany.binding.axis2.Axis2BindingRunTimeException: 
> java.lang.NullPoi
> nterException
>         at 
> org.apache.tuscany.binding.axis2.Axis2ServiceCallbackTargetInvoker.in
> vokeTarget(Axis2ServiceCallbackTargetInvoker.java:78)
>         at 
> org.apache.tuscany.binding.axis2.Axis2ServiceCallbackTargetInvoker.in
> voke(Axis2ServiceCallbackTargetInvoker.java:90)
>         at 
> org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
> ptor.java:44)
>         at 
> org.apache.tuscany.core.databinding.impl.PassByValueInterceptor.invok
> e(PassByValueInterceptor.java:65)
>         at 
> org.apache.tuscany.core.wire.SynchronousBridgingInterceptor.invoke(Sy
> nchronousBridgingInterceptor.java:41)
>         at 
> org.apache.tuscany.core.databinding.impl.DataBindingInteceptor.invoke
> (DataBindingInteceptor.java:70)
>         at 
> org.apache.tuscany.spi.wire.AbstractOutboundInvocationHandler.invoke(
> AbstractOutboundInvocationHandler.java:91)
>         at 
> org.apache.tuscany.core.wire.jdk.JDKCallbackInvocationHandler.invoke(
> JDKCallbackInvocationHandler.java:103)
>         at $Proxy21.getGreetingsCallback(Unknown Source)
>         at helloworld.HelloWorldImpl.getGreetings(HelloWorldImpl.java:43)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
> org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeT
> arget(JavaTargetInvoker.java:90)
>         at 
> org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(Target
> InvokerExtension.java:67)
>         at 
> org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
> ptor.java:44)
>         at 
> org.apache.tuscany.core.databinding.impl.PassByValueInterceptor.invok
> e(PassByValueInterceptor.java:65)
>         at 
> org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$1.run(Non
> BlockingBridgingInterceptor.java:79)
>         at 
> org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr2
> 37Work.run(Jsr237WorkScheduler.java:212)
>         at 
> org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWo
> rkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:650)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:675)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(Internal
> OutputBuffer.java:746)
>         at 
> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
>         at 
> org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuf
> fer.java:304)
>         at 
> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:
> 991)
>         at org.apache.coyote.Response.action(Response.java:182)
>         at 
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:
> 322)
>         at 
> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:29
> 3)
>         at 
> org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputSt
> ream.java:97)
>         at 
> sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410)
>         at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
>         at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
>         at java.io.BufferedWriter.flush(BufferedWriter.java:236)
>         at 
> com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:184)
>         at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:269)
>         at 
> org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWrite
> r.java:119)
>         at 
> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeIm
> pl.java:412)
>         at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingO
> utputStream(CommonsHTTPTransportSender.java:275)
>         at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
> monsHTTPTransportSender.java:209)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
>         at 
> org.apache.tuscany.binding.axis2.Axis2ServiceCallbackTargetInvoker.in
> vokeTarget(Axis2ServiceCallbackTargetInvoker.java:70)
>         ... 23 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to