[JBoss Seam] - Re: ManyToOne OneToMany
by jknotzke
"david.spark" wrote : One problem is that the @Out annotation should be in the code where the athlete was originally selected. How is the athlete that you want to upload the workout for selected?
The athlete is selected via a xhtml page. I've been using seam-gen. So imagine the athleteList.xthml page. I merely added a link to the uploadWorkout page:
| <h:column>
| <f:facet name="header">Calendar</f:facet>
| <s:link id="athlete"
| value="Calendar"
| view="/workoutList.xhtml">
| <f:param name="workoutId"
| value="#{workout.id}"/>
| <f:param name="athleteId"
| value="#{athlete.id}"/>
| </s:link>
| </h:column>
|
The @Out was placed in athlete.java
uploadWorkout.xhtml looks like this:
| <s:fileUpload id="inUploadFile"
| data="#{uploadedWorkout.uploadedFile}"
| fileName="#{uploadedWorkout.fileName}"
| contentType="#{uploadedWorkout.contentType}"
| styleClass="fileUploadInput" />
| <div style="clear:both"/>
|
| </rich:panel>
|
| <div class="actionButtons">
| <h:commandButton id="uploadWorkout" value="Upload Workout"
| action="#{uploadWorkout.uploadWorkout}"/>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072455#4072455
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072455
18Â years, 9Â months
[JBoss Seam] - Re: Test Case Seam application
by urswag
What shall I delete?
I get an inconsistency when I start the test.
| java.lang.RuntimeException: Could not create Component: org.jboss.seam.security.identity
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:908)
| at org.jboss.seam.init.Initialization.installComponents(Initialization.java:839)
| at org.jboss.seam.init.Initialization.init(Initialization.java:506)
| at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:864)
| at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
| 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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
| at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
| at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
| at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
| at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
| at org.testng.TestRunner.runWorkers(TestRunner.java:678)
| at org.testng.TestRunner.privateRun(TestRunner.java:624)
| at org.testng.TestRunner.run(TestRunner.java:495)
| at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
| at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
| at org.testng.SuiteRunner.run(SuiteRunner.java:190)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
| at org.testng.TestNG.run(TestNG.java:699)
| at org.testng.TestNG.privateMain(TestNG.java:824)
| at org.testng.TestNG.main(TestNG.java:802)
| Caused by: java.lang.IllegalArgumentException: no such setter method: org.jboss.seam.security.Identity.securityRules
| at org.jboss.seam.util.Reflections.getSetterMethod(Reflections.java:220)
| at org.jboss.seam.Component.initInitializers(Component.java:431)
| at org.jboss.seam.Component.<init>(Component.java:257)
| at org.jboss.seam.Component.<init>(Component.java:207)
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:894)
| ... 26 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072453#4072453
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072453
18Â years, 9Â months
[JBossCache] - Error when I put an object in a clustered pojo cache
by itchy75
I have the following the stack trace when I put an object object in the cache and I don't understand why this error appears.
And sometimes, I'have this error too. But I have the jar file in the lib directory of my webapp.
| 11:45:47,170 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: com.company.interfaces.ws.auth.User
|
| javax.management.RuntimeMBeanException
| at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:176)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
| 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.springframework.jmx.access.MBeanClientInterceptor.invokeOperation(MBeanClientInterceptor.java:371)
| at org.springframework.jmx.access.MBeanClientInterceptor.invoke(MBeanClientInterceptor.java:302)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
| at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
| at $Proxy51.putObject(Unknown Source)
| at fr.billetel.nl.common.asynchronous.impl.AsynchronousTaskSubmitter.submitJob(AsynchronousTaskSubmitter.java:48)
| at fr.billetel.interfaces.ws.allotement.etatventes.impl.EtatVentes.prepareBordereaux(EtatVentes.java:131)
| at fr.billetel.interfaces.ws.allotement.etatventes.PrepareEtatVentesMessageReceiverInOut.invokeBusinessLogic(PrepareEtatVentesMessageReceiverI
| nOut.java:66)
| at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
| at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)
| at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279)
| at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 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:595)
| Caused by: java.lang.RuntimeException: PojoCache.putObject(): fqn: /dddd/23b41a0a020e5d00ff65bfe2651c2e20070809-102027
| at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:478)
| at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:423)
| 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)
| ... 37 more
| Caused by: java.lang.RuntimeException: java.io.StreamCorruptedException: invalid stream header
| at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5526)
| at org.jboss.cache.TreeCache.put(TreeCache.java:3601)
| at org.jboss.cache.TreeCache.put(TreeCache.java:3332)
| at org.jboss.cache.aop.InternalDelegate.put(InternalDelegate.java:140)
| at org.jboss.cache.aop.SerializableObjectHandler.putIntoCache(SerializableObjectHandler.java:113)
| at org.jboss.cache.aop.SerializableObjectHandler.serializableObjectPut(SerializableObjectHandler.java:72)
| at org.jboss.cache.aop.TreeCacheAopDelegate._putObject(TreeCacheAopDelegate.java:215)
| at org.jboss.cache.aop.PojoCache._putObject(PojoCache.java:731)
| at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:462)
| ... 43 more
| Caused by: java.io.StreamCorruptedException: invalid stream header
| at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:753)
| at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
| at org.jboss.invocation.MarshalledValueInputStream.<init>(MarshalledValueInputStream.java:74)
| at org.jboss.cache.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:184)
| at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:203)
| at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:615)
| at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:512)
| at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326)
| at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:722)
| at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:554)
| at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:691)
| ... 1 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072452#4072452
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072452
18Â years, 9Â months