[JNDI/Naming/Network] - ClassCastException with proxy
by srinivasan544
Hi
Im using EJB3 with Jboss-4.0.4.GA app server. I have deployed an ear file containing -jar file -> a stateless session bean,
and war file -> servlet.
In the servlet class when I look up the bean. The look up is successful, but when I cast it to bean interface the following exception is thrown.
03:39:34,999 ERROR [STDERR] java.lang.ClassCastException: $Proxy380
| 03:39:35,000 ERROR [STDERR] at com.test.util.MyServiceLocator.locateMyService(MyServiceLocator.java:44)
| 03:39:35,000 ERROR [STDERR] at com.test.web.command.impl.MyCommandProcessor.execute(MyCommandProcessor.java:56)
| 03:39:35,000 ERROR [STDERR] at com.test.web.controller.MyController.processExecute(MyController.java:109)
| 03:39:35,000 ERROR [STDERR] at com.test.web.controller.MyController.doGet(MyController.java:75)
| 03:39:35,000 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| 03:39:35,000 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 03:39:35,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 03:39:35,000 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 03:39:35,000 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 03:39:35,001 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 03:39:35,001 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 03:39:35,001 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| 03:39:35,001 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| 03:39:35,001 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 03:39:35,001 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 03:39:35,001 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 03:39:35,001 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 03:39:35,001 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| 03:39:35,001 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| 03:39:35,001 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| 03:39:35,001 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| 03:39:35,002 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| 03:39:35,002 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| 03:39:35,002 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)
Please help me to resolve the problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056810#4056810
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056810
18Â years, 10Â months
[JBoss Seam] - Seam Conversations - Best practices?
by rapowder
Hello,
I am developing a webclient application using Seam 1.2.1, Hibernate and a Postgres DB on a Jboss 4.0.5.GA server.
There is a tab menu that allows to select the category and list all items of this category. Each item can be clicked to edit its properties.
So far, to handle the navigation between one page and the other I used conversations (a "root" conversation for the categories and a nested conversation to edit an item) because I need to keep in memory in which category I find myself, and which item I am editing.
So far so good, but now I added some "super-categories", clicking on which the corresponding sub-categories are shown. The links are implemented as <s:link value="CategoryName" action="cat_action" propagation="join"/>
Sometimes I get errors (item lists not correctly updated, wrong item is still in the context) caused by random clicking on the various links.
So I am not sure that conversations are the best solution to handle this kind of navigation.
Can anyone suggest a "best practice" in such a case? Thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056808#4056808
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056808
18Â years, 10Â months
[JBoss Seam] - General development question under Eclipse
by Mork0075
Hello,
i'am very new to Seam and got some basic question.
(1)
How is the development cycle? This means, my Jboss is running and i created a project with seam-gen. I develop some things and then? Which is the right: first undeploy ant target, the deploy. Or first unexplode? This is not that clear for me. Which target have to be run, when also databases tables should be updated automatically (if i changed some entity beans perhaps)
(2)
My eclipse is doing something in the console, which is related to seam, but not initiated by me. Looks like a auto re-deployment. But i dont understand how it works, sometimes i changed something in my project and eventhing is fine, and sometimes a get an error pointing to the edited page in the webbrowser.
So i would like to disable the auto deployment feature and do it on my own. How can i do that?
Thanks for you help :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056806#4056806
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056806
18Â years, 10Â months
[JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT
by dkane
ivan.tufegdzic,
thank you very much , it solved the problem.
But now I am getting "row is unavailable" exception .
Notable thing is that exception arises after second of third "remove" operation. First "remove" works well and removes exactly the clicked row.
javax.faces.el.EvaluationException: /parts.xhtml @74,59 rendered="#{!cart.isEmpty}": Exception getting value of property isEmpty of base of type : org.javassist.tmp.java.lang.Object_$$_javassist_166
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:241)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:799)
| Caused by: javax.faces.el.EvaluationException: Bean: org.javassist.tmp.java.lang.Object_$$_javassist_166, property: isEmpty
| at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:442)
| at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:125)
| at com.sun.el.parser.AstNot.getValue(AstNot.java:46)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| ... 39 more
| Caused by: java.lang.reflect.InvocationTargetException
| at sun.reflect.GeneratedMethodAccessor2078.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:615)
| at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:438)
| ... 46 more
| Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: row is unavailable
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy1785.getIsEmpty(Unknown Source)
| at sun.reflect.GeneratedMethodAccessor2079.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:615)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
| at org.jboss.seam.interceptors.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:37)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:40)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
| at org.javassist.tmp.java.lang.Object_$$_javassist_166.getIsEmpty(Object_$$_javassist_166.java)
| ... 50 more
| Caused by: java.lang.IllegalArgumentException: row is unavailable
| at javax.faces.model.ListDataModel.getRowData(ListDataModel.java:63)
| at org.jboss.seam.databinding.DataModelBinder.getSelection(DataModelBinder.java:69)
| at org.jboss.seam.databinding.DataModelBinder.getSelection(DataModelBinder.java:19)
| at org.jboss.seam.Component.injectDataModelSelection(Component.java:1274)
| at org.jboss.seam.Component.injectDataModelSelections(Component.java:1254)
| at org.jboss.seam.Component.inject(Component.java:1196)
| at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
| at sun.reflect.GeneratedMethodAccessor2035.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:615)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| ... 82 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056802#4056802
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056802
18Â years, 10Â months
[JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational
by urosmil
Hi azalea,
it doesn't work. There are to problems:
1) redirection doesn't happen
2) Exception occurs:
WARNING: Exception Processing ErrorPage[errorCode=404, location=/startpage.jsf]
| ClientAbortException: java.net.SocketException: Software caused connection abort: socket write error
| at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
| at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
| at org.apache.catalina.connector.Response.flushBuffer(Response.java:537)
| at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:286)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.net.SocketException: Software caused connection abort: socket write error
| at java.net.SocketOutputStream.socketWrite0(Native Method)
| at java.net.SocketOutputStream.socketWrite(Unknown Source)
| at java.net.SocketOutputStream.write(Unknown Source)
| at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
| at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
| at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
| at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
| at org.apache.coyote.Response.action(Response.java:182)
| at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
| ... 13 more
If I remove
<error-page>
| <error-code>404</error-code>
| <location>/startpage.jsf</location>
| </error-page>
from web.xml error disappears but redirection steel doesn't happen.
If someone knows how to accomplish this help is appreciated!
Thanks,
Uros!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056801#4056801
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056801
18Â years, 10Â months