[JBoss Seam] - Re: Issues regarding integration testing using seam-gen
by zzztimbo
Here is my output from "ant -debug":
[testng] The ' characters around the executable and arguments are
| [testng] not part of the command.
| Execute:Java13CommandLauncher: Executing '/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java' with arguments:
| '-ea'
| '-classpath'
| '/Users/tchan/Documents/workspace/zzzGATest/test-build:/Users/tchan/Documents/workspace/zzzGATest/bootstrap:/Users/tchan/Documents/workspace/zzzGATest/lib/activation.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/ant-antlr.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/antlr-runtime.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/antlr.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/asm-attrs.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/asm.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/backport-util-concurrent.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/cglib-nodep.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/cglib.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/commons-beanutils.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/commons-collections.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/commons-digester.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/commons-fileupload.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/commons-lang.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/commons-logging.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/core.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/dbunit.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/dom4j.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/drools-compiler.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/drools-core.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/ejb-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/el-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/groovy-all.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/gwt-servlet.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/hibernate-annotations.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/hibernate-commons-annotations.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/hibernate-entitymanager.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/hibernate-search.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/hibernate-validator.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/hibernate.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/hsqldb.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/icefaces-comps.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/icefaces-facelets.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/icefaces.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/itext.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/janino.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/javassist.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jaxb-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jaxws-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-aop.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-cache.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-common-core.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-dependency.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-deployers.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-el.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-embedded-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-jmx.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-kernel.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-logging-spi.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-seam-debug.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-seam-gen.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-seam-ioc.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-seam-mail.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-seam-pdf.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-seam-remoting.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-seam-ui.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-seam.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jboss-system.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jbossxb.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jbpm-jpdl.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jcaptcha-all.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jcommon.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jfreechart.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jgroups.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jms.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jsf-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jsf-impl.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jsp-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jsr173_api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jsr181-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jsr250-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jstl.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/jta.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/log4j.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/lucene-core.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/mail.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/meldware-mailapi.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/meldware-mailjmx.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/mvel14.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/persistence-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/portlet-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/quartz.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/saaj-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/servlet-api.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/spring.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/testng.jar:/Users/tchan/Documents/workspace/zzzGATest/lib/urlrewritefilter.jar'
| 'org.testng.TestNG'
| '@/tmp/testng28444'
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103858#4103858
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103858
18 years, 8 months
JBOSS MQ ReadTimeout Exception
by Rafael Leonardo
Hi All,
I have a doubt on Jboss MQ system. Maybe one of you guys can help me with
this problem. I looked for some solution in jboss wiki without success.
This is the case:
I am receiving the following exception in server.log:
I have already read the following source
(http://wiki.jboss.org/wiki/Wiki.jsp?page=IGetIOExceptionPingTimeoutHowDoIFi
xIt) none of the solutions proposed worked. The problem occurs after some
days (15) working quite well.
My jboss version is jboss HA 4.0.2
2007-11-11 13:48:47,536 WARN
[org.jboss.resource.adapter.jms.inflow.JmsActivation] Failure in jms
activation org.jboss.resou
rce.adapter.jms.inflow.JmsActivationSpec(a)8c3d026(ra=org.jboss.resource.adapt
er.jms.JmsResourceAdapter@577d583 destination=que
ue/TQueue isTopic=false tx=true durable=false reconnect=10
provider=java:/DefaultJMSProvider user
=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true
DLQHandler=org.jboss.resource.adapter.jms.inflow.d
lq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=0)
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable:
(java.net.SocketTimeoutException: Read timed out)
at
org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.Connection.asynchFailure(Connection.java:421)
at
org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.jav
a:174)
at
org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:43
9)
at
org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:371)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at
org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInp
utStream.java:79)
at
java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196)
at
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputSt
ream.java:2376)
at
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java
:2443)
at
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2
515)
at
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.ja
va:2664)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
at
org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
... 1 more
Rafael Leonardo Siqueira da Silva,
18 years, 8 months
[JBoss Seam] - how to 'stay in conversation' with rich suggestionbox?
by bsmithjj
I am having trouble 'staying in conversation' using a SFSB that backs a parent form and a child form.
>From the parent form, I have the following navigation rule:
| <page view-id="/MMktIssuer.xhtml" login-required="true">
| ...
| <navigation from-action="#{moneyMarketIssuerEditor.insertGuarantor}">
| <begin-conversation join="true"/>
| <render view-id="/EditGuarantorObligor.xhtml"/>
| </navigation>
| ...
| </page>
|
In the child form, I have a (rich) suggestion box. When I select a value from the suggestions, I have a4j:support tag call a method on my SFSB to update state. I also have a navigation rule:
| <page view-id="/EditGuarantorObligor.xhtml" login-required="true" conversation-required="true">
| <navigation from-action="#{moneyMarketIssuerEditor.selectThirdPartyByCode}">
| <begin-conversation join="true"/>
| <render view-id="/EditGuarantorObligor.xhtml"/>
| </navigation>
| ....
| </page>
|
Here is the suggestion box JSF markup that triggers the 'selection'
| <a4j:form id="editGuarantorForm">
| <input type="hidden" name="cid" value="#{conversation.id}"/>
| <h:inputHidden id="code" value="#{editGuarantor.thirdParty.code}"/>
|
| <h:panelGrid columns="2">
| <h:outputText value="3rd Party Code"/>
| <h:panelGroup>
| <h:inputText id="thirdPartyCode" value="#{editGuarantor.thirdParty.thirdPartySelectionDisplay}" size="60"
| style="height:20px;background:url('img/magnifying-glass.png') no-repeat center right;vertical-align:middle;"
| maxlength="255"/>
| <h:graphicImage value="img/check2-16x16.png" alt="Ultimate Parent"
| rendered="#{thirdParty.udThirdParty.ultimateParent == 1}"/>
| <h:graphicImage value="img/spacer.png" alt="" width="16" height="16"
| rendered="#{thirdParty.udThirdParty.ultimateParent != 1}"/>
| <rich:suggestionbox for="thirdPartyCode" minChars="1" requestDelay="750"
| suggestionAction="#{thirdPartyHelper.getThirdPartiesByName}"
| var="thirdParty" fetchValue="#{thirdParty.code}"
| height="270" width="285">
| <a4j:support event="onselect" action="#{moneyMarketIssuerEditor.selectThirdPartyByCode}"
| onsubmit="$('editGuarantorForm:code').value=$('editGuarantorForm:thirdPartyCode').value;"
| reRender="editGuarantorForm"/>
| <facet name="nothingLabel"> (case sensitive)
| <h:outputText value="No matches found..."/>
| </facet>
| <h:column>
| #{thirdParty.code} #{thirdParty.name}
| <h:graphicImage value="img/check2-16x16.png"
| rendered="#{thirdParty.udThirdParty.ultimateParent == 1}"/>
| </h:column>
| </rich:suggestionbox>
| </h:panelGroup>
|
| ...
| </a4j:form>
|
When the a4j:support fires (due to event 'onselect'), the selection should be added to an object that is part of the conversation (parent-child type of relationship). What's happening is that the parent object is now 'reset' as if I started a new conversation.... help?
Thanks,
Brad Smith
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103853#4103853
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103853
18 years, 8 months