I've heard of a similar phenominon involving neutrons and isotopes of heavy
elements.  In either case, the result is rather spectacular.

Good luck.

chris

-----Original Message-----
From: JD Brennan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 1:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Re[8]: [JBoss-user] [HELP] Is there someone to help me?


I was getting a bogus ClassCastException also. 
I fixed it by adding try/catch blocks to all my 
MBean threads.  My guess is that an exception 
thrown from a thread wasn't being handled and 
was somehow (horror!) corrupting the VM causing 
subsequent bogus ClassCastExceptions.  I had 
a reproducible case yesterday, but now that I've 
fixed it, it's well... fixed. 
Good luck! 
JD 
-----Original Message----- 
From: wonder sonic [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 29, 2002 3:52 AM 
To: Wim Praet 
Cc: [EMAIL PROTECTED] 
Subject: Re: Re[8]: [JBoss-user] [HELP] Is there someone to help me? 


Hello, it's me, 
I'm baaaaaaaaack with my ClassCastException :((( 
I've done like to said, downloaded the RC3 (with your 
link) and configured tomcat for port 80. I've then 
redeployed my ear and I get my error back :( 
I don't know what to do... 
Here is the exception: 
---8<------------------------------------ 
java.rmi.ServerException: $Proxy44; nested exception 
is: 
        java.lang.ClassCastException: $Proxy44 
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:119) 
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:167) 
        at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) 
        at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12
9) 
        at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) 
        at 
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:313) 
        at org.jboss.ejb.Container.invoke(Container.java:705) 
        at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) 
        at 
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) 
        at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) 
        at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73
) 
        at 
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) 
        at 
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInter
ceptor.java:111) 
        at 
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) 
        at $Proxy40.isNewUser(Unknown Source) 
        at 
org.apache.jsp.register$jsp._jspService(register$jsp.java:221) 
        at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) 
        at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
        at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202) 
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) 
        at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) 
        at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247) 
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193) 
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243) 
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190) 
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 
        at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46) 
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) 
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
        at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) 
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
) 
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 
        at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170) 
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) 
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
) 
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) 
        at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) 
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) 
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174) 
        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
        at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012) 
        at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
) 
        at java.lang.Thread.run(Thread.java:536) 
Caused by: java.lang.ClassCastException: $Proxy44 
        at 
org.myrpg.atlas.ejb.UserSessionBean.setSessionContext(UserSessionBean.java:7
2) 
        at 
org.jboss.ejb.StatelessSessionEnterpriseContext.(StatelessSessionEnterpriseC
ontext.java:47) 
        at 
org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionIn
stancePool.java:61) 
        at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208
) 
        at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:63) 
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:96) 
        ... 51 more 
---8<------------------------------------ 
And here is my code: 
---8<------------------------------------ 
    public void setSessionContext( SessionContext 
sessionContext ) 
    { 
        try 
        { 
            Context namingContext = new 
javax.naming.InitialContext(); 
line 72 ->  sequenceSessionLocal = ( 
(SequenceSessionLocalHome)namingContext.lookup( 
"myrpg-atlas/SequenceSession" ) ).create(); 
            userLocalHome = 
(UserLocalHome)namingContext.lookup( 
"myrpg-atlas/User" ); 
        } 
        catch( CreateException ce ) 
        { 
            throw new EJBException( ce ); 
        } 
        catch( NamingException ne ) 
        { 
            throw new EJBException( ne ); 
        } 
    } 
---8<------------------------------------ 
Hope someone could take care of my brain :( 
Wonder Sonic (searching some ice for my head) 
 --- Wim Praet <[EMAIL PROTECTED]> a �crit : > If 
you like to rebuild the sources yourself, pay 
> attention to the fact that 
> things can change quite often :-) I used to do this 
> myself but it's not 
> worth the effort to do a daily rebuild to keep on 
> track with the latest 
> patches and stuff. 
> Anyway, if you would like to use the build version, 
> just use the output 
> under the build dir as root for your JBoss dist 
> (probably "jboss-3.1.0alpha" 
> at the moment.. so your JBOSS_HOME variable would be 
> "<path to 
> build-dir>/jboss-3.1.0alpha" ). To use embedded 
> catalina instead of Jetty, 
> look for the catalina dir under /jboss-all and do a 
> build of this catalina 
> dir. You should get a tomcat4-service.jar and 
> tomcat4-service.xml (or just a 
> .sar containing the .xml I can't remember). Then 
> remove the jetty service 
> from your build and this should work: how to do this 
> catalina stuff is in 
> the readme file under the jboss-all/catalina dir. 
> 
> However, I shouldn't need to do all this 
> explanation: just use the RC3 
> release from 
> 
http://prdownloads.sourceforge.net/jboss/jboss-3.0.0RC3_tomcat-4.0.3.zip 
> ,since the RC3 will soon be replaced by the final 
> JBoss3.0, and it will take 
> some time before 3.1 is out of alpha ;-) 
> 
> Ok, maybe RC3 is not the ultra-hyper-latest version 
> compiled straight from 
> the sources, but I should help you with the 
> ClassCastException. 
> 
> regards, 
> wim. 
> 
> 
> 
> 
> ----- Original Message ----- 
> From: "wonder sonic" <[EMAIL PROTECTED]> 
> To: "Wim Praet" <[EMAIL PROTECTED]> 
> Cc: <[EMAIL PROTECTED]> 
> Sent: Tuesday, May 28, 2002 7:07 PM 
> Subject: Re: Re[8]: [JBoss-user] [HELP] Is there 
> someone to help me? 
> 
> 
> > Okay: 
> > -1- I've checked out the last version in the CVS 
> > repository (jboss-all) 
> > -2- .../jboss-all/build/build.bat rebuild the new 
> > release 
> > -3- and now? What should I do? take all the tree 
> under 
> >     the output directory and paste it in my RC1 
> >     directory ?!? (And what about catalina?) 
> > 
> > why, why so much questions... ;) 
> > 
> > tia, 
> > wonder sonic 
> > 
> >  --- Wim Praet <[EMAIL PROTECTED]> a �crit : > 
> Ah! 
> > try using RC2 or RC3. 
> > > I know someone who also got this "proxy" 
> > > ClassCastException problem, and it 
> > > dissapeared in RC2. So please, deploy and check 
> your 
> > > code with RC2  or RC3 
> > > (attention: the <db>-service.xml file for your 
> > > database might have changed 
> > > so you need to update that too). 
> > > 
> > > succes! 
> > > wim. 
> > > 
> > > 
> > > ----- Original Message ----- 
> > > From: "wonder sonic" <[EMAIL PROTECTED]> 
> > > To: "Wim Praet" <[EMAIL PROTECTED]> 
> > > Cc: <[EMAIL PROTECTED]> 
> > > Sent: Tuesday, May 28, 2002 6:00 PM 
> > > Subject: Re: Re[8]: [JBoss-user] [HELP] Is there 
> > > someone to help me? 
> > > 
> > > 
> > > > I'm using RC1 (jboss-3.0.0RC1_tomcat-4.0.3). 
> > > > Beans used: UserSession, User, Sequence and 
> > > > SequenceSession. In the web application: only 
> > > > UserSession. 
> > > > 
> > > > ejb-jar.xml: 
> > > > ... 
> > > > <!-- 
> > > >      SequenceSession 
> > > >      Implements a primary key generator. 
> > > >      By Jonathan Weedon at Borland 
> Corporation. 
> > > >   --> 
> > > > <session> 
> > > >  <ejb-name>SequenceSession</ejb-name> 
> > > > 
> > > 
> <home>org.myrpg.atlas.ejb.SequenceSessionHome</home> 
> > > > 
> > > 
> <remote>org.myrpg.atlas.ejb.SequenceSession</remote> 
> > > > 
> > > > 
> > > 
> > 
> 
<local-home>org.myrpg.atlas.ejb.SequenceSessionLocalHome</local-home> 
> > > > 
> > > > 
> > > 
> > 
> 
<local>org.myrpg.atlas.ejb.SequenceSessionLocal</local> 
> > > > 
> > > > 
> > > 
> > 
> 
<ejb-class>org.myrpg.atlas.ejb.SequenceSessionBean</ejb-class> 
> > > >  <session-type>Stateless</session-type> 
> > > > 
> <transaction-type>Container</transaction-type> 
> > > >  <env-entry> 
> > > >   <description>Number of retries (default: 
> > > > 5).</description> 
> > > >   <env-entry-name>retryCount</env-entry-name> 
> > > > 
> > > 
> <env-entry-type>java.lang.Integer</env-entry-type> 
> > > >   <env-entry-value>5</env-entry-value> 
> > > >  </env-entry> 
> > > >  <env-entry> 
> > > >   <description>Increment number (default: 
> > > > 10).</description> 
> > > >   <env-entry-name>blockSize</env-entry-name> 
> > > > 
> > > 
> <env-entry-type>java.lang.Integer</env-entry-type> 
> > > >   <env-entry-value>10</env-entry-value> 
> > > >  </env-entry> 
> > > > </session> 
> > > > 
> > > > <!-- 
> > > >      UserSession 
> > > >   --> 
> > > > <session> 
> > > >  <ejb-name>UserSession</ejb-name> 
> > > > 
> <home>org.myrpg.atlas.ejb.UserSessionHome</home> 
> > > > 
> <remote>org.myrpg.atlas.ejb.UserSession</remote> 
> > > > 
> > > > 
> > > 
> > 
> 
<ejb-class>org.myrpg.atlas.ejb.UserSessionBean</ejb-class> 
> > > >  <session-type>Stateless</session-type> 
> > > > 
> <transaction-type>Container</transaction-type> 
> > > > </session> 
> > > > 
> > > > <!-- 
> > > >      ENTITY BEANS 
> > > >   --> 
> > > > <!-- 
> > > >      User 
> > > >   --> 
> > > > <entity> 
> > > >  <ejb-name>User</ejb-name> 
> > > >  <home>org.myrpg.atlas.ejb.UserHome</home> 
> > > >  <remote>org.myrpg.atlas.ejb.User</remote> 
> > > > 
> > > > 
> > > 
> > 
> 
<local-home>org.myrpg.atlas.ejb.UserLocalHome</local-home> 
> > > >  <local>org.myrpg.atlas.ejb.UserLocal</local> 
> > > > 
> > > 
> <ejb-class>org.myrpg.atlas.ejb.UserBean</ejb-class> 
> > > > 
> <persistence-type>Container</persistence-type> 
> > > > 
> > > 
> <prim-key-class>java.lang.Integer</prim-key-class> 
> > > >  <reentrant>False</reentrant> 
> > > >  <cmp-version>2.x</cmp-version> 
> > > > 
> > > 
> > 
> 
<abstract-schema-name>UserBean</abstract-schema-name> 
> 
=== message truncated === 
___________________________________________________________ 
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! 
Yahoo! Mail : http://fr.mail.yahoo.com 
_______________________________________________________________ 
Don't miss the 2002 Sprint PCS Application Developer's Conference 
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm 
_______________________________________________ 
JBoss-user mailing list 
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/jboss-user 

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to