[Clustering/JBoss] - Re: WAN Cluster setup
by jokum
Do you have an example of cluster-service.xml for JBoss AS?
I keep getting this kind of errors :
15:11:47,464 INFO [STDOUT]
| -------------------------------------------------------
| GMS: address is AWS00581:3395
| -------------------------------------------------------
| 15:11:49,741 INFO [TreeCache] TreeCache local address is AWS00581:3395
| 15:11:49,751 INFO [TreeCache] viewAccepted(): [AWS00581:3366|1] [AWS00581:3366, AWS00581:3395]
| 15:11:49,843 INFO [TreeCache] received the state (size=1024 bytes)
| 15:11:49,884 INFO [TreeCache] state was retrieved successfully (in 143 milliseconds)
| 15:11:49,884 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
| 15:11:51,140 INFO [DefaultPartition] Initializing
| 15:11:52,263 INFO [STDOUT]
| -------------------------------------------------------
| GMS: address is localhost:3400
| -------------------------------------------------------
| 15:11:55,888 INFO [DefaultPartition] Number of cluster members: 2
| 15:11:55,888 INFO [DefaultPartition] Other members: 1
| 15:11:55,888 WARN [DefaultPartition] No additional information has been found in the JavaGroup addr
| ess: make sure you are running with a correct version of JGroups and that the protocol you are usin
| g supports the 'additionalData' behaviour
| 15:11:55,898 ERROR [RouterStub] receive(): java.net.SocketException: Software caused connection abor
| t: recv failed
| at java.net.SocketInputStream.socketRead0(Native Method)
| at java.net.SocketInputStream.read(SocketInputStream.java:129)
| at java.net.SocketInputStream.read(SocketInputStream.java:182)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027171#4027171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027171
19Â years, 1Â month
[EJB/JBoss] - EJB Managed Connection close after 4 Hours
by tsi-mky
Hello Community,
Version: 4.0.4GA(build: CVSTag=JBoss_4_0_4_GA date=200605151000)
OS: Linux 2.6.5-7.244-smp (i386)
JVM Version: 1.4.2_03-b02 (Sun Microsystems Inc.)
JVM Name: Java HotSpot(TM) Server VM
MySQL Driver 5.0.4
We encouter problems with EJB and the underlying mysql connection after an import process of 4 hours. The import is aborted and the server.log shows Exception's as follows:
| [t] 2007-03-12 11:36:21,881 [level] ERROR [class] org.jboss.ejb.plugins.LogInterceptor [sid] admin [msg] EJBException in method: public abstract de.mms_dresde
| n.process.State de.xyz.process.ProcessInfo.getStatus() throws java.rmi.RemoteException, causedBy:
| org.jboss.util.NestedSQLException: No ManagedConnections available within configured blocking timeout ( 100000 [ms] ); - nested throwable: (javax.resource.Res
| ourceException: No ManagedConnections available within configured blocking timeout ( 100000 [ms] ))
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:160)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:88)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:646)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:628)
| at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:406)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:252)
| at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:243)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:126)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:276)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:104)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:68)
| ...
|
As the problem occours after 4 hours i think there is a problem with opening and closing connections. Maybe this is related to this post:
http://www.theserverside.com/discussions/thread.tss?thread_id=42193
The mysql-ds.xml describes as follows:
| <local-tx-datasource>
| <jndi-name>defaultDataSource</jndi-name>
| <use-java-context>false</use-java-context>
| <connection-url>jdbc:mysql://dbserver:3306/xxxxxx</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>xyz</user-name>
| <password>xyz</password>
| <min-pool-size>1</min-pool-size>
| <max-pool-size>1</max-pool-size>
| <blocking-timeout-millis>100000</blocking-timeout-millis>
| <track-statements>true</track-statements>
| <idle-timeout-minutes>5</idle-timeout-minutes>
| <exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
| <valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
|
Maybe you can give me a hint about the problem and how to solve it.
Many thanks in advance!
Greetings,
Michael
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027169#4027169
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027169
19Â years, 1Â month
[JBoss Seam] - NullPointerException when using <f:selectItem>
by codest
Hi,
I'm having a strange problem with the following code:
| <h:selectOneMenu id="anredebox" value="#{personalDataItem.anrede}" >
| <f:selectItem itemValue="#{msgs.interview_anrede_frau}" itemLabel="#{msgs.interview_anrede_frau}"/>
| <f:selectItem itemValue="#{msgs.interview_anrede_herr}" itemLabel="#{msgs.interview_anrede_herr}"/>
| </h:selectOneMenu>
|
Backing Bean (extract):
| @Entity
| @Name("personalDataItem")
| @Scope(SESSION)
| /**
| * Class PersoenlicheDatenItem
| */
| public class PersoenlicheDatenItem extends CategoryItem implements PersoenlicheDatenItemInterface, Serializable {
|
| //
| // Fields
| //
|
| /**
| * Anrede "Frau" oder "Herr"
| */
| @NotNull
| private String anrede;
|
Of course, there is an interface with appropriate getters and setters.
When I'm submitting the form, I receive the following exception:
| java.lang.NullPointerException: value
| at javax.faces.model.SelectItem.<init>(SelectItem.java:71)
| at javax.faces.component._SelectItemsIterator.hasNext(_SelectItemsIterator.java:72)
| at javax.faces.component._SelectItemsUtil.matchValue(_SelectItemsUtil.java:46)
| at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:62)
| at javax.faces.component.UIInput.validate(UIInput.java:353)
| at javax.faces.component.UIInput.processValidators(UIInput.java:183)
| at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
| at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
| at javax.faces.component.UIForm.processValidators(UIForm.java:70)
| at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
| at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146)
| at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| 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.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| 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:595)
|
I wonder what I'm doing wrong, since I've seen such code in other examples where it seems to work. I'm also using <h:selectOneMenu>s with SelectItems provided by server-sided Beans and those work properly. Isn't it possible to generate selectItems like this?
Thanks for any help in advance!
Regards,
Jörg
Seam-Version is 1.2.0PATCH1. JBoss is 4.0.5GA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027168#4027168
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027168
19Â years, 1Â month