[JBoss Seam] - Error while binding entity manager
by mlh496
When I try to bind an entitymanager using this:
<core:entity-manager-factory name="omegaFactory"/>
|
| <core:managed-persistence-context name="em"
| entity-manager-factory="omegaFactory"
| auto-create="true"/>
I get the following exception:
Mar 8, 2007 11:56:47 AM org.apache.catalina.core.StandardContext listenerStart
| SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.IllegalArgumentException: No converter for type: org.jboss.seam.core.Expressions$ValueBinding
| at org.jboss.seam.util.Conversions.getConverter(Conversions.java:55)
| at org.jboss.seam.Component$ConstantInitialValue.<init>(Component.java:1998)
| at org.jboss.seam.Component.getInitialValue(Component.java:422)
| at org.jboss.seam.Component.getTopInitialValue(Component.java:402)
| at org.jboss.seam.Component.initInitializers(Component.java:380)
| at org.jboss.seam.Component.<init>(Component.java:265)
| at org.jboss.seam.Component.<init>(Component.java:206)
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:760)
| at org.jboss.seam.init.Initialization.addComponents(Initialization.java:677)
| at org.jboss.seam.init.Initialization.init(Initialization.java:425)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
| at org.apache.catalina.core.StandardService.start(StandardService.java:448)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Has anyone else encountered this problem?
All the best,
-Michael
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026400#4026400
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026400
19Â years, 1Â month
[JBoss Seam] - Help on s:filleupload
by xigua
Hi,
I am trying to use the fileupload component provided by Seam 1.1.6 and it worked if I actually select a file. The issue is that, if I didn't select any file, then I am getting NPE:
| 2007-03-08 14:26:40,987 ERROR org.jboss.seam.servlet.SeamExceptionFilter [] - exception root cause
| java.lang.NullPointerException
| at java.io.FileInputStream.<init>(FileInputStream.java:103)
| at org.jboss.seam.servlet.MultipartRequest$FileParam.getInputStream(MultipartRequest.java:220)
| at org.jboss.seam.servlet.MultipartRequest.getFileInputStream(MultipartRequest.java:479)
| at org.jboss.seam.ui.FileUpload.decode(FileUpload.java:54)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:606)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
| at javax.faces.component.UIForm.processDecodes(UIForm.java:53)
| at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
| at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:135)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:46)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:247)
| at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:36)
| at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:168)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:260)
| at org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
|
I am using InputStream in the managed-bean.
Is there any way to make it work even if I didn't select any file?
Thanks,
xigua
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026391#4026391
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026391
19Â years, 1Â month
[JBoss Messaging] - Re: ejb3mdb example
by ccfellows
StatelessSessionBeanExample:
Similar issue with jboss-4.0.5-GA with non-clustered 1.2 messaging. Did deployment per the userguide, and ran ant (1.7) from cmd. Exception:
2007-03-08 14:02:27,542 DEBUG [org.jboss.jms.ConnectionFactoryHelper] created XAConnection: JBossConnection->ConnectionDelegate[31226686, ID=9, SID=0]
2007-03-08 14:02:27,557 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
java.lang.RuntimeException: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.client.container.ClosedInterceptor
at org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:141)
at org.jboss.aop.advice.GenericAspectFactory.createPerInstance(GenericAspectFactory.java:182)
at org.jboss.aop.InstanceAdvisorDelegate.initializeAspects(InstanceAdvisorDelegate.java:100)
at org.jboss.aop.InstanceAdvisorDelegate.initialize(InstanceAdvisorDelegate.java:72)
at org.jboss.aop.ClassInstanceAdvisor.(ClassInstanceAdvisor.java:75)
at org.jboss.jms.client.delegate.ClientConnectionDelegate._getInstanceAdvisor(ClientConnectionDelegate.java)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.setExceptionListener(ClientConnectionDelegate.java)
at org.jboss.jms.client.JBossConnection.setExceptionListener(JBossConnection.java:139)
at org.jboss.resource.adapter.jms.JmsManagedConnection.setup(JmsManagedConnection.java:746)
at org.jboss.resource.adapter.jms.JmsManagedConnection.(JmsManagedConnection.java:184)
at org.jboss.resource.adapter.jms.JmsManagedConnectionFactory.createManagedConnection(JmsManagedConnectionFactory.java:106)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:565)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:250)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:491)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.allocateConnection(JmsSessionFactoryImpl.java:389)
at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.createSession(JmsSessionFactoryImpl.java:369)
at org.jboss.example.jms.stateless.bean.StatelessSessionExampleBean.drain(StatelessSessionExampleBean.java:51)
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:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.client.container.ClosedInterceptor
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.util.loading.DelegatingClassLoader.loadClass(DelegatingClassLoader.java:89)
at org.jboss.mx.loading.LoaderRepositoryClassLoader.loadClass(LoaderRepositoryClassLoader.java:90)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.util.loading.DelegatingClassLoader.loadClass(DelegatingClassLoader.java:89)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.aop.advice.AspectFactoryWithClassLoaderSupport.loadClass(AspectFactoryWithClassLoaderSupport.java:80)
at org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:137)
... 59 more
Thanks for your help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026387#4026387
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026387
19Â years, 1Â month