[JBossWS] - Re: lower timeout in accessing a web service
by jemodurn
JBWS-1410 is working for JAX-RPC but it is not working for JAX-WS. Is there a jira for this?
Here is a test case:
modify the JSR181WebServiceJSETestCase in the jbossws-1.2.0 samples can reproduce the problem.
public void testWebService() throws Exception
| {
| URL wsdlURL = new File("resources/jaxws/samples/jsr181pojo/META-INF/wsdl/TestService.wsdl").toURL();
| QName qname = new QName("http://org.jboss.ws/samples/jsr181pojo", "TestService");
| Service service = Service.create(wsdlURL, qname);
| port = (EndpointInterface)service.getPort(EndpointInterface.class);
|
| ((Stub) port)._setProperty(StubExt.PROPERTY_CLIENT_TIMEOUT, String
| .valueOf(500));
|
| Object retObj = port.echo(new String[]{});
| assertNotNull(retObj);
| assertEquals(0, ((String[])retObj).length);
| }
Testcase: testWebService took 1.672 sec
| Caused an ERROR
| $Proxy17
| java.lang.ClassCastException: $Proxy17
| at org.jboss.test.ws.jaxws.samples.jsr181pojo.JSR181WebServiceJSETestCase.testWebService(JSR181WebServiceJSETestCase.java:72)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
| at junit.extensions.TestSetup.run(TestSetup.java:27)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026494#4026494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026494
19Â years, 1Â month
[JBoss Seam] - h:selectManyCheckbox and enums
by stu2
I'm trying to populate a group of checkboxes from enum values. I've gotten it working so that it displays properly (all checkboxes properly appear) but I get a converter exception when I submit the form. I wasn't able to find any examples of selectMany anything in the example apps, so forgive me if this is a basic question!
Anyway, here's the exception I'm seeing:
| [ExceptionFilter] exception root cause
| java.lang.NullPointerException
| at org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(_SharedRendererUtils.java:147)
| at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUISelectManyValue(RendererUtils.java:673)
| at org.apache.myfaces.shared_impl.renderkit.html.HtmlCheckboxRendererBase.getConvertedValue(HtmlCheckboxRendererBase.java:299)
| at javax.faces.component.UISelectMany.getConvertedValue(UISelectMany.java:326)
| at javax.faces.component.UIInput.validate(UIInput.java:349)
| at javax.faces.component.UISelectMany.validate(UISelectMany.java:315)
| at javax.faces.component.UIInput.processValidators(UIInput.java:183)
| 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.ajax4jsf.framework.ajax.AjaxViewRoot.access$201(AjaxViewRoot.java:53)
|
My SFSB looks like this (only relevant bits included):
| private ValidationCategory [] validationCategories;
|
| public ValidationCategory [] getValidationCategories() {
| return validationCategories;
| }
|
| public ValidationCategory [] getAllValidationCategories() {
| return ValidationCategory.values();
| }
|
| public void setValidationCategories(ValidationCategory [] validationCategories) {
| System.out.println("Setting val categories. Size is " + validationCategories.length);
| this.validationCategories = validationCategories;
| }
|
And the facelets section for the form is this:
| <h:form id="productTypeForm">
| <h:selectManyCheckbox id="productTypes" value="#{feedMapping.validationCategories}">
| <s:selectItems value="#{feedMapping.allValidationCategories}"
| var="item" label="${item.name}" />
| </h:selectManyCheckbox>
| <div>
| <h:commandButton value="Continue"
| action="#{feedMapping.selectProductTypes}">
| <s:conversationId />
| </h:commandButton>
| </div>
| </h:form>
|
I've tried several permuations of how to represent the selected values: as a List and in this case as an [] since I found a JSF forum post saying this was how it worked.
s:selectItems is supposed to automatically register a converter for Enums, and it seems to be working for rendering the group. But can anyone suggest how I could capture the selected results?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026491#4026491
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026491
19Â years, 1Â month
[JBoss Messaging] - Re: 1.2.0.GA transparent node failover does not always work
by bander
"timfox" wrote : The cluster requires at least one node to be up to remain a cluster. If all nodes fail then the clients will fail.
|
Of course, because there is nothing to connect to! I'm talking about the situation where both nodes are shutdown and then one node (or both, it does not matter) is then restarted. Surely we should be able to connect to that node now!
"timfox" wrote :
| If you're expecting the client to keep on retrying if the *entire* cluster disappears in the hope it will eventually come up, then this is currently not supported. I'm not sure which other JMS providers support this either - JBoss MQ certainly doesn't.
|
I'm not expecting the jboss-messaging-client.jar to keep retrying! We do the retrying ourselves. If we do not get a connection to the JMS server in our test case (because its down, crashed, whatever) we loop and try to get a connection from the connection factory again.
What I'm seeing is an inability to obtain a successful connection to the JMS server after both are shut down and brought back up. It's as if the jboss-messaging-client.jar can no longer see the restarted JMS server(s).
This is an extremely simple test case. The JMS server is either there or it isn't. We should not have to reboot our application if the JMS server is shutdown. If we manually try to reconnect to the JMS server at regular intervals then we should reconnect successfully when the JMS server is restarted. This test case works under SunMQ, ActiveMQ, OpenJMS, OracleJMS. It is not consistently working under JBoss Messaging.
Here is the output of my latest test run.
http://ben.customer.netspace.net.au/reconnectTestOutput.zip
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026481#4026481
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026481
19Â years, 1Â month