Basically, I created the following structure
Business 1
   Service 1
Business 2
   Service 2

getServiceDetail(using business 1's key). Basically JPA works as
advertised, except that it returned a different type. I'm not sure
what the table layout looks like so if businesses and services are
stored in the same table, this may be an explanation of what happened.


On Thu, Apr 4, 2013 at 10:13 AM, Kurt T Stam (JIRA)
<[email protected]> wrote:
>
>      [ 
> https://issues.apache.org/jira/browse/JUDDI-572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>  ]
>
> Kurt T Stam reassigned JUDDI-572:
> ---------------------------------
>
>     Assignee: Alex O'Ree  (was: Kurt T Stam)
>
>> 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: Alex O'Ree
>>             Fix For: 3.1.5
>>
>>
>> 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

Reply via email to