[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2009-01-07 Thread alessio.sold...@jboss.com
OK, I've patched the sources to log that exception (which btw you should have 
got in the soap fault anyway). This will be available in JBossWS 3.0.6.
Did you find the reason of your issue in the mean time?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200103#4200103

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200103
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2008-08-26 Thread gryffin
Okay, PeterJ. That helps define the problem. I'd understood that the property 
wasn't being set, but I hadn't found my way far enough upstream in the source 
to find the headwaters, so to speak, in CommonClient. 

I'll look into tweaking the class and see what I get. Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172675#4172675

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172675
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2008-08-26 Thread PeterJ
I looked at the source code.

The 'outbound' property is set to false when the client sends a request to 
JBossAS and to true when JBossAS responds back. The exception means that 
property has not been set.

Earlier in the stack trace, in CommonClient.invoke, line 404, we find that 
someone commited the cardinal sin of exception handling - they dropped the 
exception on the floor not even bothering to log it. Instead, they called 
processPivotInternal which eventually threw the exception that you saw.

So that is why the exception makes no sense - the real cause for the problem 
was thrown away.

Unfortunately, unless someone else has any ideas, the only thing I can think of 
is for you to patch CommonClient.invoke and log the exception so that you can 
discover the root cause.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172673#4172673

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172673
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2008-08-26 Thread gryffin
Here's the output with more detail about the run environment:

C:\MV4Client2\bin>\jboss-4.2.3.ga\bin\wsrunclient 
com.boeing.nmt.nls.test.AssetTest
  |   .
  | Java directory: "C:\Program Files\Java\jdk1.5.0_15\bin\java"
  |.
  | Java version:
  | java version "1.5.0_15"
  | Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
  | Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)
  |   .
  | Execution directory: C:\MV4Client2\bin\
  |   .
  | log4j:WARN No appenders could be found for logger 
(org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder).
  | log4j:WARN Please initialize the log4j system properly.
  | 
  | DISABLE TAG: FFF123456789
  | Tag deleted: false
  | Exception in thread "main" javax.xml.ws.WebServiceException: 
java.lang.IllegalStateException: Cannot find property: 
javax.xml.ws.handler.message.outbound

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172667#4172667

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172667
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2008-08-26 Thread PeterJ
OK, just read the first post, and it looks like you are back to the error 
message in that post.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172662#4172662

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172662
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2008-08-26 Thread PeterJ
It might not be an improvement, but at least it is different - the error 
message has changed! I don't recognize this error - I will have to do some 
research.

Did you regenerate the client stubs using the JBossAS 4.2.3 libraries/tools and 
JDK 1.5?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172659#4172659

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172659
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2008-08-26 Thread gryffin
Thanks PeterJ for your suggestion.

I went ahead and tried again from a 'space-less' directory path and ensured 
that I was using Java 1.5.x. No improvment.

C:\MV4Client2\bin>\jboss-4.2.3.ga\bin\wsrunclient 
com.boeing.nmt.nls.test.AssetTest
log4j:WARN No appenders could be found for logger 
(org.jboss.ws.metadata.builder.jaxws.JAXWSWebServi
ceMetaDataBuilder).
log4j:WARN Please initialize the log4j system properly.

DISABLE TAG: FFF123456789
Tag deleted: false
Exception in thread "main" javax.xml.ws.WebServiceException: 
java.lang.IllegalStateException: Cannot
 find property: javax.xml.ws.handler.message.outbound
at 
org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314)
at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
at $Proxy19.update(Unknown Source)
at com.boeing.nmt.nls.mv4client.MV4Client.disableTag(MV4Client.java:308)
at com.boeing.nmt.nls.test.AssetTest.main(AssetTest.java:25)
Caused by: java.lang.IllegalStateException: Cannot find property: 
javax.xml.ws.handler.message.outbo
und
at 
org.jboss.ws.core.jaxws.handler.MessageContextJAXWS.processPivot(MessageContextJAXWS.java
:109)
at 
org.jboss.ws.core.jaxws.client.ClientImpl.processPivot(ClientImpl.java:363)
at 
org.jboss.ws.core.CommonClient.processPivotInternal(CommonClient.java:476)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:404)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
... 5 more
C:\MV4Client2\bin>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.5.0_15

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172642#4172642

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172642
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2008-08-22 Thread PeterJ
Based on the error message "setProperty must be overridden by all subclasses of 
SOAPMessage" I will guess that you are running with JDK 6. You should either 
fall back to JDK 1.5 or see 
http://jbws.dyndns.org/mediawiki/index.php?title=Install_JBossWS#Using_JBossWS_with_JDK_6
 for getting this to work with JDK 6.

I also want to caution you about running within a directory that has spaces in 
its name - that tends to give various Java libraries fits. It might not be an 
issue right now, but if you see weird errors you might want to move your code 
elsewhere. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172099#4172099

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172099
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2008-08-22 Thread gryffin
I installed JBossAS 4.2.3, this time NOT updating it to JBossWS 3.0.4. I get 
the same error running my client through Eclipse. I tried wsrunclient ( v4.2.3) 
and got a different error:


C:\Documents and Settings\tx714c\My 
Documents\workspace\MV4Client2\bin>c:\jboss-4.2.3.GA\bin\wsruncl
  | ient com.boeing.nmt.nls.test.AssetTest
  | log4j:WARN No appenders could be found for logger 
(org.jboss.ws.metadata.builder.jaxws.JAXWSWebServi
  | ceMetaDataBuilder).
  | log4j:WARN Please initialize the log4j system properly.
  | 
  | DISABLE TAG: FFF123456789
  | Exception in thread "main" javax.xml.ws.WebServiceException: 
java.lang.UnsupportedOperationException
  | : setProperty must be overridden by all subclasses of SOAPMessage
  | at 
org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404)
  | at 
org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314)
  | at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
  | at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
  | at $Proxy19.findPopulatedTagByNetworkId(Unknown Source)
  | at 
com.boeing.nmt.nls.mv4client.MV4Client.disableTag(MV4Client.java:305)
  | at com.boeing.nmt.nls.test.AssetTest.main(AssetTest.java:25)
  | Caused by: java.lang.UnsupportedOperationException: setProperty must be 
overridden by all subclasses
  |  of SOAPMessage
  | at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)
  | at 
org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:83)
  | at 
org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:171)
  | at 
org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:59)
  | at 
org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:158)
  | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:291)
  | at 
org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
  | ... 5 more

I am using code generated by JBoss, using JBoss to run it, why is JBoss carping 
out?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172065#4172065

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172065
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: IllegalStateException Cannot find property

2008-08-19 Thread gryffin
Here's the relevant part of the port class, 

/**
  |  * This class was generated by the JAX-WS RI.
  |  * JAX-WS RI 2.1.3-b02-
  |  * Generated source version: 2.0
  |  * 
  |  */
  | @WebService(name = "AssetAPIServicePortType", targetNamespace = 
"http://service.api.mobileview.aeroscout.com";)
  | public interface AssetAPIServicePortType {
  | 
  | 
  | /**
  |  * 
  |  * @param in0
  |  * @return
  |  * returns com.boeing.nmt.foo.AssetDTO
  |  */
  | @WebMethod
  | @WebResult(name = "out", targetNamespace = 
"http://service.api.mobileview.aeroscout.com";)
  | @RequestWrapper(localName = "update", targetNamespace = 
"http://service.api.mobileview.aeroscout.com";, className = 
"com.boeing.nmt.foo.Update")
  | @ResponseWrapper(localName = "updateResponse", targetNamespace = 
"http://service.api.mobileview.aeroscout.com";, className = 
"com.boeing.nmt.foo.UpdateResponse")
  | public AssetDTO update(
  | @WebParam(name = "in0", targetNamespace = 
"http://service.api.mobileview.aeroscout.com";)
  | AssetDTO in0);

And here's the Update class itself. Perhaps I'm missing some namespace value in 
here?


  | package com.boeing.nmt.foo;
  | 
  | import java.io.Serializable;
  | import javax.xml.bind.annotation.XmlAccessType;
  | import javax.xml.bind.annotation.XmlAccessorType;
  | import javax.xml.bind.annotation.XmlElement;
  | import javax.xml.bind.annotation.XmlRootElement;
  | import javax.xml.bind.annotation.XmlType;
  | 
  | 
  | /**
  |  * Java class for anonymous complex type.
  |  * 
  |  * The following schema fragment specifies the expected content 
contained within this class.
  |  * 
  |  * 
  |  * 
  |  *   
  |  * 
  |  *   
  |  * 
  |  *   
  |  * 
  |  *   
  |  * 
  |  * 
  |  * 
  |  * 
  |  */
  | @XmlAccessorType(XmlAccessType.FIELD)
  | @XmlType(name = "", propOrder = {
  | "in0"
  | })
  | @XmlRootElement(name = "update", namespace = 
"http://service.api.mobileview.aeroscout.com";)
  | public class Update
  | implements Serializable
  | {
  | 
  | private final static long serialVersionUID = 1L;
  | @XmlElement(namespace = "http://service.api.mobileview.aeroscout.com";, 
required = true, nillable = true)
  | protected UserDTO in0;
  | 
  | /**
  |  * Gets the value of the in0 property.
  |  * 
  |  * @return
  |  * possible object is
  |  * [EMAIL PROTECTED] UserDTO }
  |  * 
  |  */
  | public UserDTO getIn0() {
  | return in0;
  | }
  | 
  | /**
  |  * Sets the value of the in0 property.
  |  * 
  |  * @param value
  |  * allowed object is
  |  * [EMAIL PROTECTED] UserDTO }
  |  * 
  |  */
  | public void setIn0(UserDTO value) {
  | this.in0 = value;
  | }
  | 
  | }
  | 

This code was generated by wsconsume from the JBossWS package. I used a jaxb 
binding file with generateElementProperty="false" .

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171384#4171384

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171384
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user