[ http://issues.apache.org/jira/browse/SCOUT-6?page=all ]
Anil Saldhana resolved SCOUT-6:
-------------------------------
Resolution: Fixed
Fixed in v0.7.
).7rc1 release pending Apache Vote.
> Null pointer exception when creating an association
> ---------------------------------------------------
>
> Key: SCOUT-6
> URL: http://issues.apache.org/jira/browse/SCOUT-6
> Project: Scout
> Type: Bug
> Components: Scout Implementation
> Versions: v0.5
> Environment: OS: Fedora Core 4 -- KERNEL=2.6.11-1.1369_FC4smp
> Software env: jUDDI v09.rc4
> Scout trunk
> Reporter: Deepak Bhole
> Assignee: Anil Saldhana
> Fix For: v0.7
>
> When attempting to create an association, the user needs to specify a
> corresponding concept to saveAssociations() in the BusinessQueryManager
> (bqm). The concept is aquired via bqm.findConceptByPath(), which in turn
> creates it via EnumerationHelper. Both, the classification schema and the
> concept are instantiated directly (as opposed to getting them from server
> side). As a result of being created directly, the key for the
> classificationscheme is not set when it is returned.
> ScoutJaxrUddiHelper.getPubAssertionFromJAXRAssociation() attempts to make use
> of this null key via the 'kr.setTModelKey(key.getId())' call. As a result, a
> NullPointerException gets thrown. According to the UDDI V2 specifications,
> keyed reference does not require the tmodelkey attribute when creating an
> association. There needs to be a check for 'key != null'is needed before
> setting the tmodelkey.
> There is no need to actively work on fixes for this, as I have a fix, and
> will be posting it within a couple of days to the Scout list, along with some
> other fixes.
> There is an associated (but different issue) bug in jUDDI
> (http://issues.apache.org/jira/browse/JUDDI-78) that should be tracked if one
> attempts to reproduce this error with jUDDI.
> Exception thrown:
> WARNING: Unable to find required classes (javax.activation.DataHandler and
> javax.mail.internet.MimeMultipart). Attachment support is disabled.
> javax.xml.registry.JAXRException: Apache JAXR Impl:
> at
> org.apache.ws.scout.util.ScoutJaxrUddiHelper.getPubAssertionFromJAXRAssociation(ScoutJaxrUddiHelper.java:189)
> at
> org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl.saveAssociations(BusinessLifeCycleManagerImpl.java:219)
> at
> org.apache.ws.scout.registry.publish.JAXRPublishAndDeleteAssociationsTest.createAssociation(JAXRPublishAndDeleteAssociationsTest.java:162)
> at
> org.apache.ws.scout.registry.publish.JAXRPublishAndDeleteAssociationsTest.testPublishFindAndDeleteAssociation(JAXRPublishAndDeleteAssociationsTest.java:119)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> at java.lang.reflect.Method.invoke(Method.java:391)
> 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
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656)
> at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)
> Caused by: java.lang.NullPointerException
> at
> org.apache.ws.scout.util.ScoutJaxrUddiHelper.getPubAssertionFromJAXRAssociation(ScoutJaxrUddiHelper.java:183)
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]