You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "OGAWA Shingo (JIRA)" <ju...@ws.apache.org> on 2010/02/25 08:54:28 UTC

[jira] Commented: (JUDDI-346) When I run [class SavePublisherSample], The error occurs.

    [ https://issues.apache.org/jira/browse/JUDDI-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838231#action_12838231 ] 

OGAWA Shingo commented on JUDDI-346:
------------------------------------

Thank you for the reply. 
Because my question was inaccurate, it questions again. 	

[Class PublisherHandler] have a problem with the element name.
In [marshal()], "maxBusinessEntities" element that put the value of "MaxBusinesses".
Contrast,[unmarshal()] in, The value of "MaxBusinesses" is set from the element "MaxBusinesses". 

It is necessary to unite names of the element of [marshal()] and [unmarshal()].

------------------------------------------------------------------------------------------------------------------------------------------------

The 150th line of [Class PublisherHandler]    :    Source in [marshal()]
----
    element.setAttribute("maxBusinessEntities",String.valueOf(publisher.getMaxBusinesses()));
----

The 64th line of [Class PublisherHandler]     :    Source in [unmarshal()]
----
    String attrValue = element.getAttribute("maxBusinesses");
----

> When I run [class SavePublisherSample], The error occurs. 
> ----------------------------------------------------------
>
>                 Key: JUDDI-346
>                 URL: https://issues.apache.org/jira/browse/JUDDI-346
>             Project: jUDDI
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: OGAWA Shingo
>            Assignee: Kurt T Stam
>            Priority: Critical
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> When I run [class SavePublisherSample], the following error.
>   {{{
>     log4j:WARN No appenders could be found for logger
>     (org.apache.juddi.util.Loader).
>     log4j:WARN Please initialize the log4j system properly.
>     java.lang.NullPointerException
>     at
>     org.apache.juddi.registry.proxy.RegistryProxy.getTransport(RegistryProxy.java:459)
>     at
>     org.apache.juddi.registry.proxy.RegistryProxy.init(RegistryProxy.java:189)
>     at
>     org.apache.juddi.registry.proxy.RegistryProxy.<init>(RegistryProxy.java:125)
>     at SavePublisherSample.main(SavePublisherSample.java:57)
>     save_tModel Sample
>     ------------------
>     userID: sviens
>     password: password
>     
>     Exception in thread "main" java.lang.NullPointerException
>     at
>     org.apache.juddi.registry.proxy.RegistryProxy.execute(RegistryProxy.java:368)
>     at org.apache.juddi.AbstractRegistry.getAuthToken(AbstractRegistry.java:344)
>     at SavePublisherSample.main(SavePublisherSample.java:81)
>    }}}
> * Our consideration
>   It is though the attribute name of [marshal()] of [Class
>   PublisherHandler] is "MaxBusinessEntities" and there is a possibility
>   that the delivery doesn't go well in the attribute name of [unmarshal()]
>   because it is "MaxBusinesses".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.