You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org> on 2006/05/06 02:16:27 UTC
[jira] Created: (TUSCANY-311) NullPointerException from new
TuscanyRuntime(...)
NullPointerException from new TuscanyRuntime(...)
-------------------------------------------------
Key: TUSCANY-311
URL: http://issues.apache.org/jira/browse/TUSCANY-311
Project: Tuscany
Type: Bug
Components: Java SCA Core
Versions: M1
Reporter: Jean-Sebastien Delfino
Fix For: M1
In your code do the following:
TuscanyRuntime tuscany = new TuscanyRuntime("test", null, null);
tuscany.start();
ModuleContext moduleContext = CurrentModuleContext.getContext();
You will get the following exception:
java.lang.NullPointerException
at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:81)
at org.apache.tuscany.samples.helloworldmc.HelloWorldServiceComponentTestCase.testGeetings(HelloWorldServiceComponentTestCase.java:30)
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)
To reproduce use the attached test case.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (TUSCANY-311) NullPointerException from new
TuscanyRuntime(...)
Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-311?page=all ]
Jean-Sebastien Delfino updated TUSCANY-311:
-------------------------------------------
Attachment: testcase.zip
> NullPointerException from new TuscanyRuntime(...)
> -------------------------------------------------
>
> Key: TUSCANY-311
> URL: http://issues.apache.org/jira/browse/TUSCANY-311
> Project: Tuscany
> Type: Bug
> Components: Java SCA Core
> Versions: M1
> Reporter: Jean-Sebastien Delfino
> Fix For: M1
> Attachments: org.apache.tuscany.samples.helloworldmc.HelloWorldServiceComponentTestCase.txt, testcase.zip
>
> In your code do the following:
> TuscanyRuntime tuscany = new TuscanyRuntime("test", null, null);
> tuscany.start();
> ModuleContext moduleContext = CurrentModuleContext.getContext();
> You will get the following exception:
> java.lang.NullPointerException
> at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:81)
> at org.apache.tuscany.samples.helloworldmc.HelloWorldServiceComponentTestCase.testGeetings(HelloWorldServiceComponentTestCase.java:30)
> 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)
> To reproduce use the attached test case.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (TUSCANY-311) NullPointerException from new
TuscanyRuntime(...)
Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-311?page=all ]
Jean-Sebastien Delfino updated TUSCANY-311:
-------------------------------------------
Attachment: org.apache.tuscany.samples.helloworldmc.HelloWorldServiceComponentTestCase.txt
> NullPointerException from new TuscanyRuntime(...)
> -------------------------------------------------
>
> Key: TUSCANY-311
> URL: http://issues.apache.org/jira/browse/TUSCANY-311
> Project: Tuscany
> Type: Bug
> Components: Java SCA Core
> Versions: M1
> Reporter: Jean-Sebastien Delfino
> Fix For: M1
> Attachments: org.apache.tuscany.samples.helloworldmc.HelloWorldServiceComponentTestCase.txt, testcase.zip
>
> In your code do the following:
> TuscanyRuntime tuscany = new TuscanyRuntime("test", null, null);
> tuscany.start();
> ModuleContext moduleContext = CurrentModuleContext.getContext();
> You will get the following exception:
> java.lang.NullPointerException
> at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:81)
> at org.apache.tuscany.samples.helloworldmc.HelloWorldServiceComponentTestCase.testGeetings(HelloWorldServiceComponentTestCase.java:30)
> 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)
> To reproduce use the attached test case.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (TUSCANY-311) NullPointerException from new
TuscanyRuntime(...)
Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-311?page=all ]
Jim Marino closed TUSCANY-311:
------------------------------
Resolution: Won't Fix
Closing this as an invalid use of the API. I will put an assertion in to test for this so we present a nicer error when I submit my next checkin (in process).
> NullPointerException from new TuscanyRuntime(...)
> -------------------------------------------------
>
> Key: TUSCANY-311
> URL: http://issues.apache.org/jira/browse/TUSCANY-311
> Project: Tuscany
> Type: Bug
> Components: Java SCA Core
> Versions: M1
> Reporter: Jean-Sebastien Delfino
> Fix For: M1
> Attachments: org.apache.tuscany.samples.helloworldmc.HelloWorldServiceComponentTestCase.txt, testcase.zip
>
> In your code do the following:
> TuscanyRuntime tuscany = new TuscanyRuntime("test", null, null);
> tuscany.start();
> ModuleContext moduleContext = CurrentModuleContext.getContext();
> You will get the following exception:
> java.lang.NullPointerException
> at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:81)
> at org.apache.tuscany.samples.helloworldmc.HelloWorldServiceComponentTestCase.testGeetings(HelloWorldServiceComponentTestCase.java:30)
> 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)
> To reproduce use the attached test case.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira