0 Replies Latest reply on Jul 7, 2009 7:55 AM by Marcus A.

    Class cast exception when trying to find services

    Marcus A. Newbie

      Hello,

      I have the following problem:

      When I start the JBoss ESB I get a class cast exception from scout. I'm using the integrated jUDDI as registry with an underlying Oracle 10g database and haven't deployed any services on the ESB yet. The used Java version is JDK 1.6.0_14.

      Here's the stack trace:

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.esb:deployment=jbossesb.esb
      State: FAILED
      Reason: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: java.lang.ClassCastException: org.apache.ws.scout.registry.infomodel.ExternalLinkImpl cannot be cast to javax.xml.registry.infomodel.ExternalIdentifier
      I Depend On:
      jboss.esb:service=MessageStoreDatabaseInitializer
      jboss.esb.destination:service=Queue,name=OperationsCollectorQueue
      jboss.esb.destination:service=Queue,name=DataCollectorQueue
      jboss.esb.destination:service=Queue,name=DeadMessageQueue
      jboss.jca:service=DataSourceBinding,name=JBossESBDS
      jboss.esb.destination:service=Queue,name=OperationsResultCollectorQueue
      Depends On Me:
      jboss.esb:deployment=jbpm.esb
      jboss.esb:deployment=jbrules.esb
      jboss.esb:deployment=management.esb
      jboss.esb:deployment=slsb.esb
      jboss.esb:deployment=smooks.esb
      jboss.esb:deployment=soap.esb
      jboss.esb:deployment=spring.esb


      13:47:49,951 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
      13:47:49,967 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
      13:47:49,975 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 30s:974ms
      13:47:57,850 ERROR [JobRunShell] Job DataFiler.ESB threw an unhandled Exception:
      java.lang.ClassCastException: org.apache.ws.scout.registry.infomodel.ExternalLinkImpl cannot be cast to javax.xml.registry.infomodel.ExternalIdentifier
      at org.apache.ws.scout.registry.infomodel.RegistryObjectImpl.addExternalIdentifiers(RegistryObjectImpl.java:211)
      at org.apache.ws.scout.util.ScoutUddiJaxrHelper.getServiceBinding(ScoutUddiJaxrHelper.java:439)
      at org.apache.ws.scout.util.ScoutUddiJaxrHelper.getService(ScoutUddiJaxrHelper.java:372)
      at org.apache.ws.scout.util.ScoutUddiJaxrHelper.getOrganization(ScoutUddiJaxrHelper.java:214)
      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getRegistryObject(BusinessQueryManagerImpl.java:725)
      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getServiceFromBusinessService(BusinessQueryManagerImpl.java:792)
      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getRegistryObject(BusinessQueryManagerImpl.java:756)
      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findServices(BusinessQueryManagerImpl.java:671)
      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:447)
      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.internal.soa.esb.services.registry.RegistryService$1.invoke(RegistryService.java:61)
      at $Proxy24.findEPRs(Unknown Source)
      at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
      at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
      at org.jboss.soa.esb.monitoring.server.DataFilerJob.execute(DataFilerJob.java:70)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      13:47:57,851 ERROR [ErrorLogger] Job (DataFiler.ESB threw an exception.
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.ClassCastException: org.apache.ws.scout.registry.infomodel.ExternalLinkImpl cannot be cast to javax.xml.registry.infomodel.ExternalIdentifier]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:214)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      * Nested Exception (Underlying Cause) ---------------
      java.lang.ClassCastException: org.apache.ws.scout.registry.infomodel.ExternalLinkImpl cannot be cast to javax.xml.registry.infomodel.ExternalIdentifier
      at org.apache.ws.scout.registry.infomodel.RegistryObjectImpl.addExternalIdentifiers(RegistryObjectImpl.java:211)
      at org.apache.ws.scout.util.ScoutUddiJaxrHelper.getServiceBinding(ScoutUddiJaxrHelper.java:439)
      at org.apache.ws.scout.util.ScoutUddiJaxrHelper.getService(ScoutUddiJaxrHelper.java:372)
      at org.apache.ws.scout.util.ScoutUddiJaxrHelper.getOrganization(ScoutUddiJaxrHelper.java:214)
      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getRegistryObject(BusinessQueryManagerImpl.java:725)
      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getServiceFromBusinessService(BusinessQueryManagerImpl.java:792)
      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getRegistryObject(BusinessQueryManagerImpl.java:756)
      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findServices(BusinessQueryManagerImpl.java:671)
      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:447)
      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:273)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.internal.soa.esb.services.registry.RegistryService$1.invoke(RegistryService.java:61)
      at $Proxy24.findEPRs(Unknown Source)
      at org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor.findEPRs(InVMRegistryInterceptor.java:160)
      at org.jboss.soa.esb.services.registry.RegistryFactory$HeadRegistryInterceptor.findEPRs(RegistryFactory.java:229)
      at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
      at org.jboss.soa.esb.monitoring.server.DataFilerJob.execute(DataFilerJob.java:70)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

      Has anyone an idea what is wrong?

      Thanks in advance,

      Marcus