[ http://issues.apache.org/jira/browse/TUSCANY-714?page=all ]

Frank Budinsky resolved TUSCANY-714.
------------------------------------

    Resolution: Fixed

Fixed  revision 442644.

I didn't use the supplied patch, so please verify that it's still properly 
fixed. Thanks.

> Bug in registry that maps the URI to a factory class in DataObjectUtil
> ----------------------------------------------------------------------
>
>                 Key: TUSCANY-714
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-714
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-M2
>         Environment: ALL
>            Reporter: Hasan Muhammad
>         Attachments: sdo_patch.patch
>
>
> There is a registry that maps the extension of the URI to a factory class.  
> In this case, the URI was an XSD, so it should have returned a factory to 
> create an XSDResourceImpl, but instead it used the default factory which 
> creates an XMLResourceImpl, hence the classcastexception error. 
> The following is the exception:
> java.lang.reflect.InvocationTargetException
>                 at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>                 at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
>                 at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>                 at 
> java.lang.reflect.Constructor.newInstance(Constructor.java:521)
>                 at 
> com.ibm.ws.soa.sca.admin.config.loader.ConfigLoaderFactory.initLoader(ConfigLoaderFactory.java:126)
>                 at 
> com.ibm.ws.soa.sca.admin.config.loader.ConfigLoaderFactory.<init>(ConfigLoaderFactory.java:69)
>                 at 
> com.ibm.ws.soa.sca.admin.config.loader.ConfigLoaderFactory.getInstance(ConfigLoaderFactory.java:56)
>                 at 
> com.ibm.ws.soa.sca.admin.cdf.content.operation.CreateScaAssetConfig.execute(CreateScaAssetConfig.java:116)
>                 at 
> com.ibm.wsspi.management.bla.deployment.common.Phase.execute(Unknown Source)
>                 at 
> com.ibm.wsspi.management.bla.deployment.common.DeployOperation._doExecute(Unknown
>  Source)
>                 at 
> com.ibm.wsspi.management.bla.deployment.common.DeployOperation.execute(Unknown
>  Source)
>                 at 
> com.ibm.ws.management.bla.deployment.commands.BLACommandProvider.addAsset(Unknown
>  Source)
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                 at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>                 at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at java.lang.reflect.Method.invoke(Method.java:615)
>                 at 
> com.ibm.websphere.management.cmdframework.provider.SimpleCommandProvider.executeReal(SimpleCommandProvider.java:147)
>                 at 
> com.ibm.websphere.management.cmdframework.provider.SimpleCommandProvider.execute(SimpleCommandProvider.java:133)
>                 at 
> com.ibm.websphere.management.cmdframework.provider.SimpleAdminCommand.execute(SimpleAdminCommand.java:57)
>                 at 
> com.ibm.ws.management.bla.deployment.commands.BLACommandProvider.createBLA(Unknown
>  Source)
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                 at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>                 at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at java.lang.reflect.Method.invoke(Method.java:615)
>                 at 
> com.ibm.websphere.management.cmdframework.provider.SimpleCommandProvider.executeReal(SimpleCommandProvider.java:147)
>                 at 
> com.ibm.websphere.management.cmdframework.provider.SimpleCommandProvider.execute(SimpleCommandProvider.java:133)
>                 at 
> com.ibm.websphere.management.cmdframework.provider.SimpleAdminCommand.execute(SimpleAdminCommand.java:57)
>                 at 
> com.ibm.ws.management.cmdframework.impl.RemoteCommandMgrImpl.execute(RemoteCommandMgrImpl.java:120)
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                 at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>                 at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at java.lang.reflect.Method.invoke(Method.java:615)
>                 at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                 at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>                 at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at java.lang.reflect.Method.invoke(Method.java:615)
>                 at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
>                 at 
> javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
>                 at 
> javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
>                 at 
> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
>                 at 
> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
>                 at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
>                 at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
>                 at 
> com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1057)
>                 at 
> com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
>                 at 
> com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:950)
>                 at 
> com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>                 at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>                 at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at java.lang.reflect.Method.invoke(Method.java:615)
>                 at 
> com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:338)
>                 at 
> com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:206)
>                 at 
> com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:55)
>                 at 
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:680)
>                 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:484)
>                 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1499)
> Caused by: java.lang.IllegalArgumentException: 
> org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl incompatible with 
> org.eclipse.xsd.util.XSDResourceImpl
>                 at 
> org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:210)
>                 at 
> org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:169)
>                 at 
> com.ibm.ws.soa.sca.admin.module.loader.SDOLoader.<init>(SDOLoader.java:64)
>                 ... 58 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to