ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Saldhana (JIRA)" <>
Subject [jira] Resolved: (SCOUT-6) Null pointer exception when creating an association
Date Wed, 12 Apr 2006 16:32:03 GMT
     [ ]
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:
>      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 (
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
>         at
>         at
>         at
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at junit.framework.TestCase.runTest(
>         at junit.framework.TestCase.runBare(
>         at junit.framework.TestResult$1.protect(
>         at junit.framework.TestResult.runProtected(
>         at
>         at
>         at junit.framework.TestSuite.runTest(
>         at
>         at
>         at
>         at
> Caused by: java.lang.NullPointerException
>         at

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message