[EJB/JBoss] - Jboss Mysql unknown primary key
by teodoro21
Hi,
I'm trying to develope a CMP entity bean under jboss with mysql db.
I'd want that my CMP entity bean has an autoincrement primary key.
The following is part of my: standardjbosscmp-jdbc.xml
<unknown-pk>
<key-generator-factory>UUIDKeyGeneratorFactory</key-generator-
factory>
<unknown-pk-class>java.lang.Object</unknown-pk-class>
<field-name>id</field-name>
<column-name>id</column-name>
<jdbc-type>INTEGER</jdbc-type>
<sql-type>INT(11)</sql-type>
<auto-increment/>
</unknown-pk>
<entity-command name="default"/>
I have deployed my entity bean without problems and the following
is my deployment descriptor:
<ejb-jar>
<enterprise-beans>
<ejb-name>fisrtEJB</ejb-name>
my.java.test.FirstHomeRemote
my.java.test.FirstRemote
<ejb-class>my.java.test.FirstBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Object</prim-key-class>
False
<abstract-schema-name>MySchema</abstract-schema-name>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>surname</field-name></cmp-field>
<cmp-field><field-name>mobile</field-name></cmp-field>
<security-identity><use-caller-identity/></security-identity>
</enterprise-beans>
<assembly-descriptor>
...
etc
NB: I don't specify cmp id field! It is correct?
When I have deployed entity bean the created table have
id,name,surname and mobile fields
interface:
public interface FirstHomeRemote extends javax.ejb.EJBHome{
public FirstRemote create() throws CreateException, RemoteException;
public FirstRemote findByPrimaryKey(Object pk) throws
FinderException, RemoteException;
}
FirstBean:
public Object ejbCreate()throws CreateException{
return null;
}
public void ejbPostCreate(){
}
In this class I don't have implemented cmp field id.
The FirstRemote class contains abstract methods: setName(),getName()
etc...
Now let's see the client:
Context jndiContext = getInitialContext(); // get jnp://localhost: 1099 etc..
Object ref = jndiContext.lookup("FirstEJB");
FirstHomeRemote home = (FirstHomeRemote)
PortableRemoteObject.narrow(ref,FirstHomeRemote.class);
FirstRemote myfirst = (FirstRemote)home.create();
myfirst.setName("John");
the statement: FirstRemote myfirst = (FirstRemote)home.create();
return exception: javax.ejb.CreateException: Primary key for created instance is null.
Within table 'MySchema' I see that id (autoincrement primary key)
is added and Jboss server.log don't return errors but all others fields are empty, so I don't be
able to figure It out this problem.
thanks Teo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016230#4016230
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016230
19Â years, 2Â months
[JBoss Seam] - IceFaces & exceptions.xml
by sherkan777
Hi all,
If i remember there where solution to use IceFaces in seam app that don't use SeamExceptionFilter and Gavin's proposion where to comment that line:
| <!--
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
|
| <filter>
| <filter-name>Seam Exception Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Exception Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
| -->
|
in web.xml.
If i'm wrong please correct me.
what about exceptions.xml, can I use it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016228#4016228
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016228
19Â years, 2Â months
[JBoss Seam] - Re: pagination control (10.3) missing transaction
by baz
Hello,
i have taken the hibernate2 example from seam 1.1.6
I added this page to the view: listHotel.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:s="http://jboss.com/products/seam/taglib">
|
|
| <body>
| <ui:composition template="template.xhtml">
|
| <ui:define name="content">
| <div class="section"><h:form>
| <h:outputText value="No Hotel exists" rendered="#{empty myHotels.resultList}" />
| <h:dataTable id="myHotels" var="myHotel"
| value="#{myHotels.resultList}" border="1"
| rendered="#{not empty myHotels.resultList}">
| <h:column>
| <f:facet name="header">
| <h:outputText value="Name" />
| </f:facet>
| <s:link id="person" value="#{myHotel.name}" view="/viewHotel.xhtml">
| <f:param name="myHotelId" value="#{myHotel.name}" />
| </s:link>
| </h:column>
|
| <h:column>
| <f:facet name="header">
| <h:outputText value="Adress" />
| </f:facet>
| #{myHotel.address}
| </h:column>
| <h:column>
| <f:facet name="header">
| <h:outputText value="City, State" />
| </f:facet>
| #{myHotel.city},#{myHotel.state},#{myHotel.country}
| </h:column>
| <h:column>
| <f:facet name="header">
| <h:outputText value="Zip" />
| </f:facet>
| #{myHotel.zip}
| </h:column>
|
| </h:dataTable>
| <s:link view="/listHotel.xhtml"
| rendered="#{myHotels.previousExists}" value=" first ">
| <f:param name="firstResult" value="0" />
| </s:link>
|
| <s:link view="/listHotel.xhtml"
| rendered="#{myHotels.previousExists}" value=" prev ">
| <f:param name="firstResult" value="#{myHotels.previousFirstResult}" />
| </s:link>
|
| <s:link view="/listHotel.xhtml" rendered="#{myHotels.nextExists}"
| value=" next ">
| <f:param name="firstResult" value="#{myHotels.nextFirstResult}" />
| </s:link>
| <s:link view="/listHotel.xhtml" rendered="#{myHotels.nextExists}"
| value=" next ">
| <f:param name="firstResult" value="#{myHotels.lastFirstResult}" />
| </s:link>
|
|
| </h:form></div>
| </ui:define>
| </ui:composition>
| </body>
| </html>
|
In gages.xml this definition is added:
<page view-id="/listHotel.xhtml">
| <param name="firstResult" value="#{myHotels.firstResult}" />
| </page>
|
Finally the modification of components.xml
<?xml version="1.0" encoding="UTF-8"?>
| <components xmlns="http://jboss.com/products/seam/components"
| xmlns:core="http://jboss.com/products/seam/core"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:framework="http://jboss.com/products/seam/framework"
| xsi:schemaLocation=
| "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd
| http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.1.xsd
| http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd">
|
| <core:init debug="true"/>
|
| <core:manager conversation-timeout="120000"
| concurrent-request-timeout="500"
| conversation-id-parameter="cid"
| conversation-is-long-running-parameter="clr"/>
|
| <core:hibernate-session-factory name="hibernateSessionFactory"/>
|
| <core:managed-hibernate-session name="bookingDatabase"
| auto-create="true"/>
|
| <core:microcontainer installed="true"/>
| <!-- Setup application components -->
| <factory name="myHotel" value="#{myHotelHome.instance}"/>
| <framework:hibernate-entity-home name="myHotelHome"
| entity-class="org.jboss.seam.example.hibernate.Hotel"
| session="#{bookingDatabase}"/>
|
| <framework:hibernate-entity-query name="myHotels"
| ejbql="from Hotel"
| max-results="5"
| order="name"
| session="#{bookingDatabase}" />
|
| </components>
|
After deploying and starting the app
pointng the browser at http://localhost:8080/jboss-seam-hibernate/listHotel.seam
results in an error screen. (/listHotel.xhtml @63,71 value="#{myHotels.lastFirstResult}": Exception getting value of property lastFirstResult of base of type : org.jboss.seam.framework.HibernateEntityQuery$$EnhancerByCGLIB$$66f3ddb3)
Stacktrace:INFO: Server startup in 14875 ms
| 14.02.2007 08:29:59 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/E:/IDE/Tomcat5.5/webapps/jboss-seam-hibernate/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
| 14.02.2007 08:29:59 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/E:/IDE/Tomcat5.5/webapps/jboss-seam-hibernate/WEB-INF/lib/ajax4jsf.jar!/META-INF/a4j.taglib.xml
| 14.02.2007 08:29:59 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/E:/IDE/Tomcat5.5/webapps/jboss-seam-hibernate/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/seam-ui.taglib.xml
| 14.02.2007 08:29:59 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/E:/IDE/Tomcat5.5/webapps/jboss-seam-hibernate/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
| 14.02.2007 08:29:59 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/E:/IDE/Tomcat5.5/webapps/jboss-seam-hibernate/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
| 14.02.2007 08:29:59 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/E:/IDE/Tomcat5.5/webapps/jboss-seam-hibernate/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
| 14.02.2007 08:29:59 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/E:/IDE/Tomcat5.5/webapps/jboss-seam-hibernate/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
| 14.02.2007 08:30:01 com.sun.facelets.FaceletViewHandler handleRenderException
| SCHWERWIEGEND: Error Rendering View[/listHotel.xhtml]
| javax.faces.el.EvaluationException: /listHotel.xhtml @63,71 value="#{myHotels.lastFirstResult}": Exception getting value of property lastFirstResult of base of type : org.jboss.seam.framework.HibernateEntityQuery$$EnhancerByCGLIB$$66f3ddb3
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
| at javax.faces.component.UIParameter.getValue(UIParameter.java:68)
| at org.jboss.seam.ui.HtmlLink.getParameterString(HtmlLink.java:208)
| at org.jboss.seam.ui.HtmlLink.encodeBegin(HtmlLink.java:115)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| 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:101)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:222)
| 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.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:43)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
| 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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 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:667)
| 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: javax.faces.el.EvaluationException: Bean: org.jboss.seam.framework.HibernateEntityQuery$$EnhancerByCGLIB$$66f3ddb3, property: lastFirstResult
| 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:117)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| ... 35 more
| Caused by: java.lang.reflect.InvocationTargetException
| 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.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:438)
| ... 41 more
| Caused by: java.lang.ClassCastException: java.lang.Long
| at org.jboss.seam.framework.HibernateEntityQuery.getResultCount(HibernateEntityQuery.java:67)
| at org.jboss.seam.framework.Query.getLastFirstResult(Query.java:110)
| at org.jboss.seam.framework.Query$$FastClassByCGLIB$$6805c8c9.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
| at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:29)
| at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
| at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:28)
| at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
| at org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:23)
| at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:148)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:145)
| at org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:80)
| at org.jboss.seam.framework.HibernateEntityQuery$$EnhancerByCGLIB$$66f3ddb3.getLastFirstResult(<generated>)
| ... 46 more
| 14.02.2007 08:30:13 org.apache.coyote.http11.Http11BaseProtocol pause
| INFO: Pausing Coyote HTTP/1.1 on http-8080
| 14.02.2007 08:30:14 org.apache.catalina.core.StandardService stop
| INFO: Stopping service Catalina
| 14.02.2007 08:30:15 org.apache.coyote.http11.Http11BaseProtocol destroy
| INFO: Stopping Coyote HTTP/1.1 on http-8080
| 14.02.2007 08:30:15 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
| INFO: Failed shutdown of Apache Portable Runtime
|
This time there seems to be a transaction but a new error occured. Class Cast.
Nevertheless the pagination control from the docu won't run with hibernate. Any ideas what could went wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016227#4016227
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016227
19Â years, 2Â months
[Messaging, JMS & JBossMQ] - org.jboss.mq.SpyJMSException: Cannot authenticate user; - ne
by krishnakumarns
i have an application that having a jms client communicating with the jboss server (Topic) and sending messages .The jboss server is installed in a private ip machine and connected to the public ip machine in which the related ports are forwarded to the private ip machine . After that when communicating through the public ip from the external network i got all the access to the jboss(ejbs) except that of the Connection to the topic(durable).the exception thrown in the line
qcf.createTopicConnection();
the exception is
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
at org.jboss.mq.Connection.authenticate(Connection.java:1168)
at org.jboss.mq.Connection.(Connection.java:255)
at org.jboss.mq.Connection.(Connection.java:332)
at org.jboss.mq.SpyConnection.(SpyConnection.java:66)
at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)
at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:136)
at com.klc.klnetcenter.jms.SendClient.(SendClient.java:53)
at com.klc.klnetcenter.KLNetcenterData.(KLNetcenterData.java:42)
at com.klc.klnetcenter.KLNetcenterData.getInstance(KLNetcenterData.java:53)
at com.klc.klnetcenter.KLNetcenterFrame.(KLNetcenterFrame.java:101)
at com.klc.klnetcenter.KLNetcenterFrame.getInstance(KLNetcenterFrame.java:183)
at com.klc.klnetcenter.KLNetcenter.(KLNetcenter.java:24)
at com.klc.klnetcenter.KLNetcenter.main(KLNetcenter.java:35)
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 com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at javax.net.DefaultSocketFactory.createSocket(Unknown Source)
at org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:642)
at org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:532)
at org.jboss.mq.il.uil2.UILServerIL.authenticate(UILServerIL.java:334)
at org.jboss.mq.Connection.authenticate(Connection.java:1160)
: what configuration i have to do for that .Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016224#4016224
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016224
19Â years, 2Â months
[JBoss Messaging] - Receiving IllegalStateExceptions in client
by bander
Hello
I'm performing a series of JMS stress tests that we've developed against JBoss Messaging 1.0.1.SP4 and have a test scenario failing. My particular test is generating frequent IllegalStateExceptions which causes message delivery to fail. The following is a sample:
ERROR 2007-02-14 16:30:58,984 [Manager Queue Eight.1.4] org.jboss.jms.client.remoting.MessageCallbackHandler: Failed to deliver message
javax.jms.IllegalStateException: Should only be one entry in list. There are 8908
at org.jboss.jms.client.container.SessionAspect.handlePostDeliver(SessionAspect.java:203)
at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect6.invoke(SessionAspect6.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate$postDeliver_5319211143798977162.invokeNext(ClientSessionDelegate$postDeliver_5319211143798977162.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:182)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117)
at org.jboss.jms.client.delegate.ClientSessionDelegate$postDeliver_5319211143798977162.invokeNext(ClientSessionDelegate$postDeliver_5319211143798977162.java)
at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69)
at org.jboss.jms.client.delegate.ClientSessionDelegate$postDeliver_5319211143798977162.invokeNext(ClientSessionDelegate$postDeliver_5319211143798977162.java)
at org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
at org.jboss.jms.client.delegate.ClientSessionDelegate$postDeliver_5319211143798977162.invokeNext(ClientSessionDelegate$postDeliver_5319211143798977162.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate.postDeliver(ClientSessionDelegate.java)
at org.jboss.jms.client.remoting.MessageCallbackHandler.postDeliver(MessageCallbackHandler.java:162)
at org.jboss.jms.client.remoting.MessageCallbackHandler.callOnMessage(MessageCallbackHandler.java:137)
at org.jboss.jms.client.remoting.MessageCallbackHandler$ListenerRunner.run(MessageCallbackHandler.java:722)
at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Essentially, this test does the following:
1. creates a set of text message payloads
2. creates a set of object message payloads
3. dispatches the message payloads to separate queues using a multi-threaded dispatcher (the multi-threaded dispatcher obtains a jms session from a jms session pool)
4. at the same time, it receives the messages arriving on the queues using a multi-threaded message listener
5. it then compares the payloads received on the text queue with the payloads dispatched to that queue (and likewise for the object queue)
So far we've found 1.0.1.SP4 is a big improvement over the 1.0.1.GA release (we used to get messages arriving on the wrong queues on older versions for some of our tests) but this test in particular is still causing problems for JBoss Messaging.
Can any JBoss developers explain the significance of 'Should only be one entry in list. There are 8908'?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016222#4016222
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016222
19Â years, 2Â months