<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: java.lang.IllegalStateException:
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/guido_scollo">guido scollo</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/636760#636760">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I'm working at the same line code. I'll give you more informations. Jboss is v4.2.3, jbossws is v3.0.1, JDK is 1.6.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The client that invoke the web service operation works well is is invoked inside GUI code. But the same client crashes if invokend inside the implementation of another web service operation.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>A complete error stack trace is swown here:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>2011-11-16 12:55:28,234 INFO  [resi.ResiClientImpl] trustStoreFile=[C:\Program Files\EMX\jboss-4.2.3GA\server\default\conf\ssl\cosign-conf.jks];  password=[xxx]</p><p><span>2011-11-16 12:55:28,312 WARN  [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] Cannot access wsdlURL: </span><a class="jive-link-external-small" href="https://127.0.0.1:8443/inemIFWS/ResiIFWSImpl?wsdl" target="_blank">https://127.0.0.1:8443/inemIFWS/ResiIFWSImpl?wsdl</a></p><p><span>2011-11-16 12:55:28,312 WARN  [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] Cannot get port meta data for: {</span><a class="jive-link-external-small" href="http://IFResi.ws" target="_blank">http://IFResi.ws</a><span>}ProbeServicePort</span></p><p>2011-11-16 12:55:28,328 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] START: rebuildMetaData</p><p>2011-11-16 12:55:28,328 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] setParameterStyle: null</p><p>2011-11-16 12:55:28,328 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] processSOAPBinding on: ws.ifresi.ResiIFPortType</p><p>2011-11-16 12:55:28,328 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] setParameterStyle: BARE</p><p>2011-11-16 12:55:28,328 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Create new config [name=Standard Client,file=META-INF/standard-jaxws-client-config.xml]</p><p>2011-11-16 12:55:28,328 DEBUG [org.jboss.ws.metadata.config.JBossWSConfigFactory] getConfig: [name=Standard Client,url=META-INF/standard-jaxws-client-config.xml]</p><p>2011-11-16 12:55:28,343 DEBUG [org.jboss.ws.metadata.config.JBossWSConfigFactory] parse: file:/C:/Program Files/EMX/jboss-4.2.3GA/server/default/deploy/jbossws.sar/META-INF/standard-jaxws-client-config.xml</p><p>2011-11-16 12:55:28,578 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure EndpointMetaData</p><p>2011-11-16 12:55:28,578 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Added 0 PRE handlers</p><p>2011-11-16 12:55:28,578 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Added 0 ENDPOINT handlers</p><p>2011-11-16 12:55:28,578 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Added 0 POST handlers</p><p><span>2011-11-16 12:55:28,578 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] JAXBContext [types=[class ws.ifresi.GetId, class ws.ifresi.GetIdProbesResponse, class ws.ifresi.GetAll, class ws.ifresi.GetAllProbesResponse, class ws.ifresi.NotifyNetworkChangeRequestElem, class ws.ifresi.NotifyNetworkChangeResponseElem],tns=</span><a class="jive-link-external-small" href="http://IFResi.ws" target="_blank">http://IFResi.ws</a><span>]</span></p><p><span>2011-11-16 12:55:28,671 ERROR [STDERR] java.lang.IllegalStateException: Cannot obtain xml type for: [xmlName={</span><a class="jive-link-external-small" href="http://IFResi.ws" target="_blank">http://IFResi.ws</a><span>}getIdElem,javaName=ws.ifresi.GetId]</span></p><p>2011-11-16 12:55:28,671 ERROR [STDERR]     at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.populateXmlType(JAXWSMetaDataBuilder.java:988)</p><p>2011-11-16 12:55:28,671 ERROR [STDERR]     at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.populateXmlTypes(JAXWSMetaDataBuilder.java:1014)</p><p>2011-11-16 12:55:28,671 ERROR [STDERR]     at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:304)</p><p>2011-11-16 12:55:28,671 ERROR [STDERR]     at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:271)</p><p>2011-11-16 12:55:28,671 ERROR [STDERR]     at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:202)</p><p>2011-11-16 12:55:28,671 ERROR [STDERR]     at javax.xml.ws.Service.getPort(Service.java:92)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at resi.ResiClientImpl.getResiPort(ResiClientImpl.java:349)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at resi.ResiClientImpl.getId(ResiClientImpl.java:224)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at inemRep.impl.InemRepWSImpl.notifyProbeChange(InemRepWSImpl.java:242)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.wsf.container.jboss42.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:102)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:221)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)</p><p>2011-11-16 12:55:28,687 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thank's all</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/636760#636760">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>