You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Evanthika Amarasiri (JIRA)" <ji...@apache.org> on 2007/10/08 08:15:50 UTC

[jira] Created: (SYNAPSE-132) NullpointerException thrown from the server side when invoking a second service which is different to the first service

NullpointerException thrown from the server side when invoking a second service which is different to the first service
-----------------------------------------------------------------------------------------------------------------------

                 Key: SYNAPSE-132
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-132
             Project: Synapse
          Issue Type: Bug
          Components: Core
         Environment: Windows XP, JDK1.5.0_06
            Reporter: Evanthika Amarasiri


Below are the steps followed to reproduce the issue

1. Deploy the relevant services. (SimpleStockQuoteService, SecureStockQuoteService, MTOMSwASampleService, etc)
2. Start a sample which invokes a particular service (E.g.:- Sample 50 which invokes "SecureStockQuoteService")
3. Send a request
4. Start another sample which invokes a different service (Sample 52 which invokes "SimpleStockQuoteService")
5. When sending the request through the client, a NullpointerException is thrown

Exception in thread "HttpServerWorker-2" java.lang.NullPointerException
        at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:158)
        at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:210)
        at org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:174)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

-- 
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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


[jira] Resolved: (SYNAPSE-132) NullpointerException thrown from the server side when invoking a second service which is different to the first service

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asankha C. Perera resolved SYNAPSE-132.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1
         Assignee: Asankha C. Perera

configContext.terminate();

the above statement was used on recommendation by Chamikara as I remember for clean termination of WS-RM, but since using Axis2 1.3 - this causes some unexpected classloading issue on the Axis2 server side - which cannot be easily described. This is not an issue with the Synapse or the sample services/Rampart code as it could be reproduced in a clean Axis2 1.3 build. Thus using the below as suggested workaround by Deepal instead

serviceClient.cleanup();

> NullpointerException thrown from the server side when invoking a second service which is different to the first service
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-132
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-132
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>         Environment: Windows XP, JDK1.5.0_06
>            Reporter: Evanthika Amarasiri
>            Assignee: Asankha C. Perera
>             Fix For: 1.1
>
>
> Below are the steps followed to reproduce the issue
> 1. Deploy the relevant services. (SimpleStockQuoteService, SecureStockQuoteService, MTOMSwASampleService, etc)
> 2. Start a sample which invokes a particular service (E.g.:- Sample 50 which invokes "SecureStockQuoteService")
> 3. Send a request
> 4. Start another sample which invokes a different service (Sample 52 which invokes "SimpleStockQuoteService")
> 5. When sending the request through the client, a NullpointerException is thrown
> Exception in thread "HttpServerWorker-2" java.lang.NullPointerException
>         at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:158)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:210)
>         at org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:174)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)

-- 
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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


[jira] Resolved: (SYNAPSE-132) NullpointerException thrown from the server side when invoking a second service which is different to the first service

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asankha C. Perera resolved SYNAPSE-132.
---------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.1-QA-B1)
                   1.1-QA-B3

Please check on QA-B3.. this works right for me now

> NullpointerException thrown from the server side when invoking a second service which is different to the first service
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-132
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-132
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>         Environment: Windows XP, JDK1.5.0_06
>            Reporter: Evanthika Amarasiri
>            Assignee: Asankha C. Perera
>             Fix For: 1.1-QA-B3
>
>
> Below are the steps followed to reproduce the issue
> 1. Deploy the relevant services. (SimpleStockQuoteService, SecureStockQuoteService, MTOMSwASampleService, etc)
> 2. Start a sample which invokes a particular service (E.g.:- Sample 50 which invokes "SecureStockQuoteService")
> 3. Send a request
> 4. Start another sample which invokes a different service (Sample 52 which invokes "SimpleStockQuoteService")
> 5. When sending the request through the client, a NullpointerException is thrown
> Exception in thread "HttpServerWorker-2" java.lang.NullPointerException
>         at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:158)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:210)
>         at org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:174)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)

-- 
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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


[jira] Reopened: (SYNAPSE-132) NullpointerException thrown from the server side when invoking a second service which is different to the first service

Posted by "Evanthika Amarasiri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Evanthika Amarasiri reopened SYNAPSE-132:
-----------------------------------------


The issue is still there. Below is the stack trace i received

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:211)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:93)
        at org.apache.rampart.util.RampartUtil.getSignatureCrypto(RampartUtil.java:235)
        at org.apache.rampart.RampartEngine.process(RampartEngine.java:117)
        at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:85)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:210)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:174)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: store.jks (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:74)
        at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:65)
        ... 18 more
2007-10-10 14:20:23,793 [-] [HttpServerWorker-2] ERROR CryptoFactory Unable to instantiate (1): org.apache.ws.security.components.crypto.Merlin
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:211)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:93)
        at org.apache.rampart.util.RampartUtil.getSignatureCrypto(RampartUtil.java:235)
        at org.apache.rampart.RampartEngine.process(RampartEngine.java:117)
        at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:85)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:210)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:174)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: store.jks (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:74)
        at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:65)
        ... 18 more
java.lang.InstantiationException: org.apache.ws.security.components.crypto.Merlin
        at java.lang.Class.newInstance0(Class.java:335)
        at java.lang.Class.newInstance(Class.java:303)
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:93)
        at org.apache.rampart.util.RampartUtil.getSignatureCrypto(RampartUtil.java:235)
        at org.apache.rampart.RampartEngine.process(RampartEngine.java:117)
        at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:85)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:210)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:174)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
2007-10-10 14:20:23,797 [-] [HttpServerWorker-2] ERROR CryptoFactory Unable to instantiate (2): org.apache.ws.security.components.crypto.Merlin
java.lang.InstantiationException: org.apache.ws.security.components.crypto.Merlin
        at java.lang.Class.newInstance0(Class.java:335)
        at java.lang.Class.newInstance(Class.java:303)
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:93)
        at org.apache.rampart.util.RampartUtil.getSignatureCrypto(RampartUtil.java:235)
        at org.apache.rampart.RampartEngine.process(RampartEngine.java:117)
        at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:85)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:210)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:174)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Exception in thread "HttpServerWorker-2" java.lang.RuntimeException: org.apache.ws.security.components.crypto.Merlin cannot create instance
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:93)
        at org.apache.rampart.util.RampartUtil.getSignatureCrypto(RampartUtil.java:235)
        at org.apache.rampart.RampartEngine.process(RampartEngine.java:117)
        at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:85)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:210)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:174)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

> NullpointerException thrown from the server side when invoking a second service which is different to the first service
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-132
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-132
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>         Environment: Windows XP, JDK1.5.0_06
>            Reporter: Evanthika Amarasiri
>            Assignee: Asankha C. Perera
>             Fix For: 1.1
>
>
> Below are the steps followed to reproduce the issue
> 1. Deploy the relevant services. (SimpleStockQuoteService, SecureStockQuoteService, MTOMSwASampleService, etc)
> 2. Start a sample which invokes a particular service (E.g.:- Sample 50 which invokes "SecureStockQuoteService")
> 3. Send a request
> 4. Start another sample which invokes a different service (Sample 52 which invokes "SimpleStockQuoteService")
> 5. When sending the request through the client, a NullpointerException is thrown
> Exception in thread "HttpServerWorker-2" java.lang.NullPointerException
>         at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:158)
>         at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>         at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:210)
>         at org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:174)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)

-- 
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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org