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

Kurt T Stam commented on JUDDI-566:
-----------------------------------

OK, but as far as I read http://uddi.org/pubs/uddi_v3.htm#_Toc85908374, then 
when using a hostingredirectory, the tModel referenced is:

  <tModel tModelKey="uddi:uddi.org:specification:hostingredirector">
    <name>uddi-org:hostingRedirector</name>
    <description>UDDI Hosting Redirector service specification
                </description>
    <overviewDoc>
      <overviewURL useType="text">
        http://uddi.org/pubs/uddi_v3.htm#hostDir
    </overviewURL>
    </overviewDoc>
    <categoryBag>
      <keyedReference keyName="uddi-org:types:specification" 
keyValue="specification" tModelKey="uddi:uddi.org:categorization:types" />
    </categoryBag>
  </tModel>

which is part of the install data:
http://svn.apache.org/repos/asf/juddi/trunk/juddi-core/src/main/resources/juddi_install_data/UDDI_tModels.xml

And the accesspoint contains the URL to the " the accessPoint of the Hosting 
Redirector Web service ". So I do think you are always supposed to have an 
AccessPoint. However it's probably nicer to validate rather then throw back an 
NPE, so I'm going to commit the patch.

--K

                
> Using service/binding/hostingDirector causes a NPE
> --------------------------------------------------
>
>                 Key: JUDDI-566
>                 URL: https://issues.apache.org/jira/browse/JUDDI-566
>             Project: jUDDI
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.1.4
>            Reporter: Alex O'Ree
>            Assignee: Kurt T Stam
>         Attachments: JUDDI-556.patch
>
>
> I got this using the maven build process after saveBusiness, add a Service to 
> the same host with a hosting redirector, then, saveBusiness again
> [WARNING] [talledLocalContainer] Caused by: java.lang.NullPointerException
> [WARNING] [talledLocalContainer]        at 
> org.apache.juddi.mapping.MappingApiToModel.mapBindingTemplate(MappingApiToMod
> el.java:503)
> [WARNING] [talledLocalContainer]        at 
> org.apache.juddi.mapping.MappingApiToModel.mapBindingTemplates(MappingApiToMo
> del.java:489)
> [WARNING] [talledLocalContainer]        at 
> org.apache.juddi.mapping.MappingApiToModel.mapBusinessService(MappingApiToMod
> el.java:452)
> [WARNING] [talledLocalContainer]        at 
> org.apache.juddi.mapping.MappingApiToModel.mapBusinessServices(MappingApiToMo
> del.java:430)
> [WARNING] [talledLocalContainer]        at 
> org.apache.juddi.mapping.MappingApiToModel.mapBusinessEntity(MappingApiToMode
> l.java:111)
> [WARNING] [talledLocalContainer]        at 
> org.apache.juddi.api.impl.UDDIPublicationImpl.saveBusiness(UDDIPublicationImp
> l.java:585)
> Error caught of type javax.xml.ws.soap.SOAPFaultException
> [WARNING] [talledLocalContainer]        at 
> sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
> javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to