You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Kurt T Stam (JIRA)" <ju...@ws.apache.org> on 2013/04/09 23:02:17 UTC

[jira] [Resolved] (JUDDI-572) Sending a business key for getServiceDetail causing a class cast exception

     [ https://issues.apache.org/jira/browse/JUDDI-572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt T Stam resolved JUDDI-572.
-------------------------------

    Resolution: Fixed

Hibernate returns null on an invalid Key; OpenJPA can throw a ClassCast, which we now catch so that we throw an InvalidKeyException in both cases.
                
> Sending a business key for getServiceDetail causing a class cast exception
> --------------------------------------------------------------------------
>
>                 Key: JUDDI-572
>                 URL: https://issues.apache.org/jira/browse/JUDDI-572
>             Project: jUDDI
>          Issue Type: Bug
>            Reporter: Alex O'Ree
>            Assignee: Kurt T Stam
>             Fix For: 3.1.5
>
>         Attachments: boomer.java
>
>
> probably should trap this and handle it correctly...
>  Caused by: java.lang.ClassCastException: org.apache.juddi.model.BusinessEntity cannot be cast to org.apache.juddi.model.BusinessService
>  	at org.apache.juddi.api.impl.UDDIInquiryImpl.getServiceDetail(UDDIInquiryImpl.java:472)

--
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