[JBoss Seam] - java.lang.NoSuchMethodError: org.jboss.seam.core.Validation.
by trouby
Hi,
There's a problem with org.jboss.seam.core.Validation.validate method in seam ver 1.1.7 under Glassfish,
following is the stack dump:
| [#|2007-02-23T04:15:40.554+0200|SEVERE|sun-appserver-ee9.1|javax.enterprise.system.container.web|_ThreadID=34;_ThreadName=httpSSLWorkerThread-8181-0;_RequestID=e1540995-0b6c-4f87-9f66-a4705d821923;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
| java.lang.NoSuchMethodError: org.jboss.seam.core.Validation.validate(Ljavax/faces/context/FacesContext;Ljava/lang/String;Ljava/lang/Object;)[Lorg/hibernate/validator/InvalidValue;
| at org.jboss.seam.ui.ModelValidator.validate(ModelValidator.java:25)
| at javax.faces.component.UIInput.validateValue(UIInput.java:1018)
| at javax.faces.component.UIInput.validate(UIInput.java:868)
| at javax.faces.component.UIInput.executeValidate(UIInput.java:1071)
| at javax.faces.component.UIInput.processValidators(UIInput.java:663)
| at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1021)
| at javax.faces.component.UIForm.processValidators(UIForm.java:229)
| at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1021)
| at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
| at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
|
|
Hope it helps,
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023046#4023046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023046
19Â years, 1Â month
[Remoting] - SSLHandshakeException when connecting to JNDI
by Clarich
Hello,
I have an issue with a Server, that is not registering correctly with an JNDI Server (I have this issue with sslsocket as well as with sslmultiplex). In my understandung a JNDI Server should not need to have a certificate all Servers need to trust. I this right? And if so, can anybody tell me where this Exception might come from?
My Server is running on localhost:1101 and my JNDI runs on the same machine on Port 1099
Here is the Logging Stack of my Server:
| reqistering with JNDI server
| 2007-02-27 14:59:40,664 WARN [main] org.jboss.remoting.detection.jndi.JNDIDetector: Detector: org.jboss.remoting.detection.jndi.JNDIDetector could not be loaded because the NetworkRegistry is not registered
| 2007-02-27 14:59:40,664 WARN [main] org.jboss.remoting.detection.jndi.JNDIDetector: This means that only the broadcasting of detection messages will be functional and will not be able to discover other servers.
| susseccfully reqistered with JNDI Server
| 2007-02-27 14:59:41,680 INFO [Remoting Detector - Heartbeat Thread: 1] org.jboss.remoting.detection.jndi.JNDIDetector: Added 3087152660c52e45x-3af92cc0x110ba7efe6bx-7ffb56 to registry.
| 2007-02-27 14:59:52,273 ERROR [SocketServerInvoker#0-1101] org.jboss.remoting.transport.sslsocket.SSLSocketServerInvoker: Failed to accept socket connection
| java.lang.reflect.InvocationTargetException
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
| at java.lang.reflect.Constructor.newInstance(Unknown Source)
| at org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:198)
| at org.jboss.remoting.transport.socket.ServerThread.<init>(ServerThread.java:95)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:492)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:444)
| at java.lang.Thread.run(Unknown Source)
| Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
| at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
| at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
| at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
| at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
| at java.io.BufferedOutputStream.flush(Unknown Source)
| at java.io.ObjectOutputStream$BlockDataOutputStream.flush(Unknown Source)
| at java.io.ObjectOutputStream.flush(Unknown Source)
| at org.jboss.remoting.transport.socket.ServerSocketWrapper.createOutputStream(ServerSocketWrapper.java:65)
| at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:75)
| at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:54)
| at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:50)
| ... 9 more
| 2007-02-27 14:59:52,335 ERROR [SocketServerInvoker#0-1101] org.jboss.remoting.transport.sslsocket.SSLSocketServerInvoker: Failed to accept socket connection
| java.lang.reflect.InvocationTargetException
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
| at java.lang.reflect.Constructor.newInstance(Unknown Source)
| at org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:198)
| at org.jboss.remoting.transport.socket.ServerThread.<init>(ServerThread.java:95)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:492)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:444)
| at java.lang.Thread.run(Unknown Source)
| Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
| at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
| at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
| at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
| at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
| at java.io.BufferedOutputStream.flush(Unknown Source)
| at java.io.ObjectOutputStream$BlockDataOutputStream.flush(Unknown Source)
| at java.io.ObjectOutputStream.flush(Unknown Source)
| at org.jboss.remoting.transport.socket.ServerSocketWrapper.createOutputStream(ServerSocketWrapper.java:65)
| at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:75)
| at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:54)
| at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:50)
| ... 9 more
| 2007-02-27 14:59:52,664 INFO [Remoting Detector - Heartbeat Thread: 12] org.jboss.remoting.detection.jndi.JNDIDetector: Added 3087152660c52e45x-3af92cc0x110ba7efe6bx-7ffb56 to registry.
|
I have a Client that shall request all available Servers from the JNDI. Here is what the Client logged:
| connecting to JNDI Server
| 2007-02-27 14:59:51,367 INFO [main] jndiClient.JNDIConnector: setting up connection to JNDI Server
| 2007-02-27 14:59:51,398 INFO [main] jndiClient.JNDIConnector: register NetworkRegistry with MBean Server
| 2007-02-27 14:59:51,664 INFO [main] jndiClient.JNDIConnector: getting available Servers from JNDI
| 2007-02-27 14:59:52,273 WARN [main] org.jboss.remoting.ConnectionValidator: ConnectionValidator could not successfully ping server (InvokerLocator [sslsocket://localhost:1101/]
| 2007-02-27 14:59:52,335 WARN [Remoting Detector - Heartbeat Thread: 0] org.jboss.remoting.ConnectionValidator: ConnectionValidator could not successfully ping server (InvokerLocator [sslsocket://localhost:1101/]
| 2007-02-27 14:59:52,351 ERROR [Remoting Detector - Heartbeat Thread: 0] org.jboss.remoting.detection.jndi.JNDIDetector: Exception getting detection messages from JNDI server.
| javax.naming.NameNotFoundException: 3087152660c52e45x-3af92cc0x110ba7efe6bx-7ffb56 not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.unbind(NamingServer.java:242)
| at org.jnp.server.NamingServer.unbind(NamingServer.java:215)
| at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
| at sun.rmi.transport.Transport$1.run(Unknown Source)
| at java.security.AccessController.doPrivileged(Native Method)
| at sun.rmi.transport.Transport.serviceCall(Unknown Source)
| at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
| at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
| at java.lang.Thread.run(Unknown Source)
| at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
| at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
| at sun.rmi.server.UnicastRef.invoke(Unknown Source)
| at org.jnp.server.NamingServer_Stub.unbind(Unknown Source)
| at org.jnp.interfaces.NamingContext.unbind(NamingContext.java:752)
| at org.jnp.interfaces.NamingContext.unbind(NamingContext.java:737)
| at org.jboss.remoting.detection.jndi.JNDIDetector.unregisterDetection(JNDIDetector.java:499)
| at org.jboss.remoting.detection.jndi.JNDIDetector.checkRemoteDetectionMsg(JNDIDetector.java:286)
| at org.jboss.remoting.detection.jndi.JNDIDetector.heartbeat(JNDIDetector.java:220)
| at org.jboss.remoting.detection.AbstractDetector$Heartbeat.run(AbstractDetector.java:698)
| at java.util.TimerThread.mainLoop(Unknown Source)
| at java.util.TimerThread.run(Unknown Source)
|
Can anybody help me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023042#4023042
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023042
19Â years, 1Â month
[JBoss Seam] - Re: Request4Advice: Defining ProcessInstance Var's in Pagefl
by mgombocz
To whom it may concern.
So, here's a solution (a few hours of sleep helped...):
First of all here's my pageflow where I initialize and update two process variables named "totalPages" and "currentPage":
<pageflow-definition name="createUser">
| <event type="process-start" >
| <script>
| <expression>
| int total = 2;
| int current = 1;
| </expression>
| <variable name="totalPages" mapped-name="total" access="write" />
| <variable name="currentPage" mapped-name="current" access="write" />
| </script>
| </event>
|
| <start-page name="createUser" view-id="/editUser.xhtml">
| <redirect />
|
| <transition name="cancel" to="cancelled" />
| <transition name="save" to="evaluate">
| </transition>
| </start-page>
|
| <decision name="evaluate"
| expression="#{userManager.usernameUnique}">
|
| <transition name="true" to="enterRoles">
| <action expression="#{userManager.save}" />
| <script>
| <expression>
| current++;
| </expression>
| <variable name="currentPage" mapped-name="current" access="read,write" />
| </script>
| </transition>
|
| <transition name="false" to="createUser" />
| </decision>
|
| <page name="enterRoles" view-id="/editUserRoles.xhtml">
| <redirect />
|
| <transition name="save" to="finished">
| <action expression="#{userManager.flush}" />
| </transition>
|
| <transition name="previous" to="createUser">
| <script>
| <expression>
| current--;
| </expression>
| <variable name="currentPage" mapped-name="current" access="read,write" />
| </script>
| </transition>
|
| <transition name="cancel" to="cancelled" />
| </page>
|
| <page name="finished" view-id="/showUser.xhtml">
| <redirect />
| <end-conversation />
| </page>
|
| <page name="cancelled" view-id="/searchUser.xhtml">
| <redirect />
| <end-conversation />
| </page>
|
| </pageflow-definition>
These two variables can then be accessed in the views via:
#{pageflow.processInstance.contextInstance.variables['currentPage']}
| #{pageflow.processInstance.contextInstance.variables['totalPages']}
For whatever reason using context variable "processInstance" directly does not work, like
#{processInstance.contextInstance.variables['currentPage']}
|
Cheers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023039#4023039
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023039
19Â years, 1Â month