Hi Owen,
I've had the same error when I compiled castor with Jikes. There may be
a problem in the
way Jikes handles anonymous inner classes.
Hope it helps!
SD
Owen wrote:
>
> Hi,
>
> I am persistently getting the following exception when I try to use castor in JBoss:
>
> [FeedFactory] TRANSACTION ROLLBACK
> EXCEPTION:org.exolab.castor.jdo.engine.SQLTypes$1: method
> <init>(Lorg/exolab/castor/jdo/e
> ngine/SQLTypes$2;Ljava/lang/Class;Ljava/lang/Class;)V not found; nested exception
> is:
> java.lang.NoSuchMethodError: org.exolab.castor.jdo.engine.SQLTypes$1:
> method <init>(Lorg/exolab/castor/jdo/engine/SQ
> LTypes$2;Ljava/lang/Class;Ljava/lang/Class;)V not found
> [FeedFactory] java.lang.NoSuchMethodError:
> org.exolab.castor.jdo.engine.SQLTypes$1: method <init>(Lorg/exolab/castor/jdo/eng
> ine/SQLTypes$2;Ljava/lang/Class;Ljava/lang/Class;)V not found
> [FeedFactory] at org.exolab.castor.jdo.engine.SQLTypes.<clinit>(SQLTypes.java)
> [FeedFactory] at
> org.exolab.castor.jdo.engine.JDOMappingLoader.createFieldDesc(JDOMappingLoa
> der.java)
> [FeedFactory] at
> org.exolab.castor.mapping.loader.MappingLoader.createFieldDescs(MappingLoader.
> java)
> [FeedFactory] at
> org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(MappingLoader.j
> ava)
> [FeedFactory] at
> org.exolab.castor.jdo.engine.JDOMappingLoader.createDescriptor(JDOMappingLoa
> der.java)
> [FeedFactory] at
> org.exolab.castor.mapping.loader.MappingLoader.loadMapping(MappingLoader.java
> )
> [FeedFactory] at
> org.exolab.castor.jdo.engine.JDOMappingLoader.loadMapping(JDOMappingLoader.j
> ava)
> [FeedFactory] at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java)
> [FeedFactory] at
> org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java
> )
> [FeedFactory] at org.exolab.castor.jdo.JDO.getDatabase(JDO.java)
> [FeedFactory] at
> org.jboss.jdo.castor.CastorJDOImpl.getDatabase(CastorJDOImpl.java:168)
> [FeedFactory] at
> com.unique.epg.helpers.CastorHelper.findSingleton(CastorHelper.java:151)
> [FeedFactory] at
> com.unique.epg.helpers.CastorHelper.findSingleton(CastorHelper.java:116)
> [FeedFactory] at
> com.unique.epg.beans.FeedFactory.getFeeds(FeedFactory.java:46)
> [FeedFactory] at java.lang.reflect.Method.invoke(Native Method)
> [FeedFactory] at
> org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSess
> ionContainer.java:543)
> [FeedFactory] at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionIn
> stanceInterceptor.java
> :87)
> [FeedFactory] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
> [FeedFactory] at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java
> :307)
> [FeedFactory] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
> [FeedFactory] at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
> [FeedFactory] at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
> [FeedFactory] at
> org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286
> )
> [FeedFactory] at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvo
> ker.java:483)
> [FeedFactory] at
> org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.ja
> va:335)
> [FeedFactory] at
> org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSession
> Proxy.java:123)
> [FeedFactory] at $Proxy5.getFeeds(Unknown Source)
> [FeedFactory] at
> com.unique.epg.service.EPGScheduler.start(EPGScheduler.java:138)
> [FeedFactory] at java.lang.reflect.Method.invoke(Native Method)
> [FeedFactory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [FeedFactory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [FeedFactory] at
> org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationServ
> ice.java:836)
> [FeedFactory] at $Proxy0.start(Unknown Source)
> [FeedFactory] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
> [FeedFactory] at java.lang.reflect.Method.invoke(Native Method)
> [FeedFactory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [FeedFactory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [FeedFactory] at org.jboss.Main.<init>(Main.java:210)
> [FeedFactory] at org.jboss.Main$1.run(Main.java:116)
> [FeedFactory] at java.security.AccessController.doPrivileged(Native Method)
> [FeedFactory] at org.jboss.Main.main(Main.java:112)
>
> As far as I can tell, the message is perfectly correct insofar as there isn't a
> constructor for either of the nested classes of SQLTypes that looks like what was
> indicated in the message, nor can I find any evidence of such a call being made.
>
> I've rebuilt the source (which one would have thought would catch a
> NoSuchMethodError), but no cigar.
>
> Has anyone seen this, or knows what's going on?? Please help!
>
> Yours, at his wits-end,
> Owen
>
> --
> Owen Green
> Software Developer, Unique Interactive
> 50 Lisson St, London, NW1 5DF
> [EMAIL PROTECTED]
> http://www.uniqueinteractive.co.uk
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev