Error handling in generated stubs
Hello,
I've been playing around with Flex Builder 3 and WS and I am
puzzled by how one can handle generic SOAP error messages (i.e. not
the service faults, but connection errors, message parsing related
errors, etc.).
Here is what I try:
1 Generate service stubs out of an existing WSDL using Flex
Builder
2 Create a dead simple Flex app that makes a WS call via
stubs
3 Trying to call an unreliable WS, and I get Flash popup
with the stack trace:
quote:
TypeError: Error #1090: XML parser failure: element is
malformed.
at
mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc \soap\SOAPDecoder.as:234]
at com.ws::BaseLookupService/processResult()[C:\Documents
and Settings\ws\My Documents\Flex Builder
3\FlexClient\services\lookup\com\ws\BaseLookupService.as:237]
at
mx.rpc::AsyncResponder/result()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncResp onder.as:84]
at
mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:74]
at
DirectHTTPMessageResponder/completeHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:381]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
It looks like neither registering fault handler nor adding
event listener to the AsyncToken catches this error.
Does anyone know if I should I be modifying the generated
stubs to catch this kind of errors or there is a more elegant
approach to fix this? Thanks.
Hello,
I've been playing around with Flex Builder 3 and WS and I am
puzzled by how one can handle generic SOAP error messages (i.e. not
the service faults, but connection errors, message parsing related
errors, etc.).
Here is what I try:
1 Generate service stubs out of an existing WSDL using Flex
Builder
2 Create a dead simple Flex app that makes a WS call via
stubs
3 Trying to call an unreliable WS, and I get Flash popup
with the stack trace:
quote:
TypeError: Error #1090: XML parser failure: element is
malformed.
at
mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc \soap\SOAPDecoder.as:234]
at com.ws::BaseLookupService/processResult()[C:\Documents
and Settings\ws\My Documents\Flex Builder
3\FlexClient\services\lookup\com\ws\BaseLookupService.as:237]
at
mx.rpc::AsyncResponder/result()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncResp onder.as:84]
at
mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:74]
at
DirectHTTPMessageResponder/completeHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:381]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
It looks like neither registering fault handler nor adding
event listener to the AsyncToken catches this error.
Does anyone know if I should I be modifying the generated
stubs to catch this kind of errors or there is a more elegant
approach to fix this? Thanks.
Similar Messages
-
Serialization error using WebLogic generated stubs.
I have written a web service using WL Workshop, and it works fine
in the browser based test environment. When I use the client stubsgenerated by
WL, I get a serialization error:
java.rmi.RemoteException: web service invoke failed; nested exception is:
javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:
did not find needed xsi:type attribute on element <anyType>
at weblogic.jws.proxies.DataFeedSoap_Stub.getSched(DataFeedSoap_Stub.java:36)
at weblogic.jws.proxies.DataFeedSoap_Stub.getSched(DataFeedSoap_Stub.java:58)
at datafeed.Client.main(Client.java:19)
Caused by: javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:
did not find needed xsi:type attribute on element <anyType>
at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:296)
at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:359)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:465)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:359)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:205)
at weblogic.jws.proxies.DataFeedSoap_Stub.getSched(DataFeedSoap_Stub.java:33)
... 2 more
Caused by: weblogic.xml.schema.binding.DeserializationException: did not find
needed xsi:type attribute on element <anyType>
at weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec.extractType(XSDAnyCodec.java:108)
at weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec.deserialize(XSDAnyCodec.java:83)
at weblogic.xml.schema.binding.SequenceCodecBase.deserialize(SequenceCodecBase.java:118)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:310)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:286)
at weblogic.xml.schema.binding.BeanCodecBase.processElement(BeanCodecBase.java:140)
at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:125)
at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:96)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:310)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:286)
at weblogic.xml.schema.binding.BeanCodecBase.processElement(BeanCodecBase.java:140)
at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:125)
at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:96)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:310)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:266)
at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:290)
... 7 moreIndeed there is a difference in how WLS and Workshop handle
xsd:anyType. Our plan at this point is to fix this to return
javax.xml.soap.SOAPElement when we do not find the xsi:type attribute
-- probably in the next service pack release. We have entered a
change request CR082976 that you can reference with support if you
need a more urgent resolution.
--Scott
In article <[email protected]>,
Neil Hornbeck <[email protected]> wrote:
>
I have written a web service using WL Workshop, and it works fine in
the browser based test environment. When I use the client
stubsgenerated by WL, I get a serialization error:
java.rmi.RemoteException: web service invoke failed; nested exception is:
javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:
did not find needed xsi:type attribute on element <anyType>
at weblogic.jws.proxies.DataFeedSoap_Stub.getSched(DataFeedSoap_Stub.java:36)
at weblogic.jws.proxies.DataFeedSoap_Stub.getSched(DataFeedSoap_Stub.java:58)
at datafeed.Client.main(Client.java:19)
Caused by: javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:
did not find needed xsi:type attribute on element <anyType>
at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:296)
at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:359)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:465)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:359)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:205)
at weblogic.jws.proxies.DataFeedSoap_Stub.getSched(DataFeedSoap_Stub.java:33)
... 2 more
Caused by: weblogic.xml.schema.binding.DeserializationException: did not find
needed xsi:type attribute on element <anyType>
at weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec.extractType(XSDAnyCodec.java:108)
at weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec.deserialize(XSDAnyCodec.java:83)
at weblogic.xml.schema.binding.SequenceCodecBase.deserialize(SequenceCodecBase.java:118)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:310)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:286)
at weblogic.xml.schema.binding.BeanCodecBase.processElement(BeanCodecBase.java:140)
at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:125)
at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:96)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:310)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:286)
at weblogic.xml.schema.binding.BeanCodecBase.processElement(BeanCodecBase.java:140)
at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:125)
at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:96)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:310)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:266)
at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:290)
... 7 more -
Finder error in WL generated Stub code for a BMP Entity Bean
Hi,
I have a group finder error in a BMP I am writing in WL 6.1 sp3.... The
group finder is...
public Collection ejbFindByDocumentKey(DocumentPK docKey) {.....
.... // get a record set of all the interesting keys....
ArrayList retVal = new ArrayList();
while(rs.next()) {
int subDocNum = rs.getInt(1);
SubDocPK subDocPK = new SubDocPK(subDocNum);
retVal.add(subDocPK);
return retVal;
..... // Exception handling
Which works fine in the debugger, but in the session facade when I get an
Iterator on the Collection and cast the result to a SubDocPK I get a
ClassCastException. When I look at the type of the class in the Collection
returned by the container it is SubDocBean_mjdk3_EOimpl (I cannot remember
the exact name as it was at work and I am now at home)
Has anyone else found this problem or a way around, or should I just write a
DAO and get the collection myself?
Yours
Paul BrennanRight, this is how finders work in BMP.
The ejbFindXXX implementation returns a collection of primary keys. The
container then takes this and returns a collection of remote or local
references.
-- Rob
Paul Brennan wrote:
Hi all,
Just got into work and I want to add that the class inside the collection is a
cdcp.ejb.cdcp.SubDocPK
as below; and when I look in the session bean I get a type
cdcp.ejb.cdcp.SubDocBean_jktqi5_ELOImpl
I have an EAR file I am willing to share....
Any comments or suggestions are welcom
"Paul Brennan" <[email protected]> wrote:
Hi,
I have a group finder error in a BMP I am writing in WL 6.1 sp3....
The
group finder is...
public Collection ejbFindByDocumentKey(DocumentPK docKey) {.....
.... // get a record set of all the interesting keys....
ArrayList retVal = new ArrayList();
while(rs.next()) {
int subDocNum = rs.getInt(1);
SubDocPK subDocPK = new SubDocPK(subDocNum);
retVal.add(subDocPK);
return retVal;
..... // Exception handling
Which works fine in the debugger, but in the session facade when I get
an
Iterator on the Collection and cast the result to a SubDocPK I get a
ClassCastException. When I look at the type of the class in the Collection
returned by the container it is SubDocBean_mjdk3_EOimpl (I cannot remember
the exact name as it was at work and I am now at home)
Has anyone else found this problem or a way around, or should I just
write a
DAO and get the collection myself?
Yours
Paul Brennan -
About ale error handling in workflow?
Hi,
can any one explian in detail ale error handling through workflow,its urgent for me.
Regards,
phaniHi Srikanth,
follw the steps it will helpful u,
Pre-requisites.
It is assumed that the reader of this article has some knowledge in SAP workflow BOR objects and ALE Idoc process like process code, Partner Profile etc.
Description
Here, we will be discussing in details the Error handling of an Inbound Idoc through triggering an event, which in turn will be triggering a workflow attached to the workflow.
Steps:-
1. Create custom BOR object with the events, Start and Stop event
2. Create a workflow for the error handling, like generating a notification whenever an error occurred in the Inbound Idoc.
3. Creation of Function Module and attachment with the Process Code
4. Create the settings for the Inbound Process of the Idoc through the Process Code.
Creation of BOR objects. Go to the[http://www.****************/Tutorials/ALE/ErrorHandling/page3.htm] transaction SWO1.
Enter a name for the Object type and click CREATE button for creating the custom BOR object.
Enter the details required for creating the BOR objects...
Create the Key fields and events of the BOR object.
For creating the Key fields place the cursor on the Key fields and Click on the Create Button
Create events for triggering the workflow and stopping the workflow.
For creating the event place the cursor on the EVENTS and Click the create button like Key fields.
Create two events.
Enter the event name description etc and proceed further to create it.
Similarly create another event for ending the Workflow in the similar manner like that created earlier.
Now, Generate the BOR object through the generate button
Release the EVENTS and subsequently release the BOR object.
After the creation of BOR object
Create a workflow for the generation of notification whenever an error is reached in the Inbound Idoc.
Execute the transaction SWDD.
Click on the CREATE button for creating the workflow for error handling.
Choose the Step type to be inserted for the notification like here we are using Send Mail option for sending a mail to the user whenever any error occurred.
Activate the Workflow and test it whether it is working as per the requirement.
After the successful completion it is required to attach the workflow with the event.
Go to the Header section (Denoted by CAP).
Go to the Start Events TAB.
Enter the details of the event with which the workflow should be linked like the category, BOR object type and the event with which that should be linked.
Enter here the BOR object that has been created and give the name of event created for starting the workflow.
Click on the Binding Button for generating the binding between the event and the workflow.
Click on the Binding Button for generating the binding between the event and the workflow.
Generate the binding and click OK button to save the binding.
Click on Activate / deactivate button for activating the linkage.
After the successful linkage the following sign will appear on the workflow.....
This shows that the workflow has been linked to the event and it will be triggered whenever that particular event will be triggered.
After the creation and successful linkage of workflow with the event it is required it is required to generate a function module and attached it to the process code.
Go to SE37 transaction and copy a standard process code function module to a custom one. Do no delete any parameters from the function module as the SAP standard program itself is calling this.
In that function module do the required validation and whenever the validation fails set a standard parameter WORKFLOW_RESULT to 9999 from within the function module, otherwise normally proceed to set the status to 53.
After the creation of function module it is required to attach it to the process code and corresponding attached to the message type at the Partner Profile stage.
The process code is being created through the transaction WE42
Go to the change mode and click the New Entries button for creating new process code.
Enter the Process Code Name, description and choose the processing type as Processing by function module. Click on the extension button of Identification.
The details for the of the Process Code after clicking the identification button will be
Whenever idoc arrives into the Destination system then the standard SAP triggers the Process code attached to the Message type in the partner profile. The partner profile is being maintained in the transaction WE20.
Since, it is and inbound scenario so the message type and the corresponding process code will be maintained for the Inbound Parameters.
Click on Create Inbound Parameters button for creating new Inbound Message type and the corresponding message type.
Enter the process code for the corresponding message type.
Click SAVE button for saving the changes.
Whenever the IDOC arrives into the target system, it checks the partner profile and finds the corresponding process code. The process code is being linked with the function module through which the IDOC is required to be processed.
Regards,
Phani. -
I don't think that the stub I'm generating is any good. I've been having a problem for a while now, where I can't register my remote object with the registry. The stack trace is throwing out a class not found exception, referring to my generated stub class. Also, by coincidence, this time around I had my IDE open in the background while I was generating the stub in a command prompt, and when the stub class appears in the ide (it has the rmi example working dir mounted) it shows up with an error badge - symbolizing that there is something wrong with the object.
Now, the ide doesn't give me any information about what is wrong with the class, but it would make sense that the sutb is not being generated correctly, with the problems that I've been experiencing. Any ideas, as to how I could be generating a bad stub?
I'm calling:
rmic -v1.2 -classpath . test.rmi.timestamp.TimestampServer
(i'm running jsdk 1.4.0_01
Any comments would be greatly appreciated.
-d|wAre you using Eclipse as your IDE ? And are you trying to run your server from within Eclipse ?
If so (and possibly if not), you'll probably find that the problem is that you've not included your stub class files in the classpath when you run your code. Since Eclipse doesn't compile the stubs for you, this won't necessarily happen automatically.
I've not tried the following tool, but it looks like it might ease things along if you are using Eclipse:
http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id=64 -
Error while generating stub using ant generate-stubs
I am getting error while running ant "generate-stubs" for generating stub.The details of errors as below:
[exec] error: modeler error: expected root element "definitions" (in namesp
ace "http://schemas.xmlsoap.org/wsdl/"), found element "html" (in namespace "nul
l")
Any help????Perhaps there is an error while you specified the namespaces. Chk them and try............Hope that helps...............ABHI
-
How to stop execution after generating error message in an error handler?
I am working on ALSB 3.0.I have a proxy consisting of 2 stages in a pipeline pair. I have error handlers for each of the stages. The first stage contains schema validation action. Whenever the schema validation fails,control should transfer to error handler.
The error handler has a publish action and in request action I am calling an xquery transformation to generate error message.Publish action should publish message to a jms based business service configured. My questions are:
1. After getting into the error handler, the first alert msg configured inside request action (of publish action) is generated.Subsequent actions to generate error xml message and to replace the contents of errorXml in $body are not executed.And so no error message is generated or published.
2. I have also configured a reply with failure. Inspite of that,the control shifts to next stage in request pipeline and execution continues.
Can anyone tell me where I need to do the corrections.
Cheers.
Edited by: arrajago on Jun 15, 2009 11:55 PMGot the answer.Generate error xml outside publish action.Replace action has to placed inside Publish's request action.To stop execution,use Reply action after Publish.
-
DML error table intermittently fails to generate error handling in package
Hi!
In OWB 11gR2 (11.2.0.1), we're seeing an issue when setting the DML Error table name on a target table. Sometimes, mostly on older and complex mappings, the error handling logic does not get generated when we deploy the mapping, and nothing is populated in the error tables for error conditions, though the errors display as warnings in the OWB UI.
When I create a new mapping that is very simple - one table loading another - setting the DML Error table name always results in errors being put in the error table. That's great, but that doesn't help us with our more-complex mappings that aren't logging errors.
We can't determine the cause of the issue. I can't see a difference in the configuration of the mappings that work and don't work. Generation Mode is All Operating Modes. Default Operating Mode is Set based fail over to row based. We've generated the error table using DBMS_ERRLOG.CREATE_ERROR_LOG. The target tables do not have primary keys.
I've tried synchronizing the target table operator in the mapping as another forum thread suggested. No change.
Has anyone else seen this issue or know of a workaround?
Thanks,
JayceWhich logic did you talk about ?
For the version 10, you will find the error table more on the insert statement such as:
INSERT INTO "TSALES"
("PROD_ID",
"SALES"."AMOUNT_SOLD" "AMOUNT_SOLD"
FROM
"SALES" "SALES"
LOG ERRORS INTO TSALES_ERR (get_audit_detail_id) REJECT LIMIT 50;Come from here:
http://blogs.oracle.com/warehousebuilder/2007/08/set_based_errors_dml_error_log.html
Then check the insert SQL generated.
Cheers
Nico -
Xrpcc modeler error when trying to generate stub classes from a WSDL
I'm trying to generate JAX-RPC stub classes (both client and server side) from a WSDL in which one of the message parts references a complexType element defined in the <types> section of the WSDL. Here is my little WSDL document:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Book_Def"
targetNamespace="myTypes"
xmlns:tns="myTypes"
xmlns:xsd1="myTypes"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema targetNameSpace="myTypes"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Book" type="xsd1:BookType"/>
<xsd:complexType name="BookType">
<xsd:all>
<xsd:element name="authors" type="xsd:string" maxOccurs="10"/>
<xsd:element name="preface" type="xsd:string"/>
<xsd:element name="price" type="xsd:float"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
<message name="runMyPgm">
<part name="book" type="xsd1:Book"/>
</message>
<message name="getPgmResponse">
<part name="result" type="xsd:string"/>
</message>
<portType name="MyPgmIFPortType">
<operation name="runMyPgm">
<input message="tns:runMyPgm"/>
<output message="tns:getPgmResponse"/>
</operation>
</portType>
... Binding stuff
</port>
</service>
</definitions>
I've tried many combinations of defining my complex type and input message and whenever I run xrpcc using this WSDL as input, I get a Error: Modeler error: invalid entity name: Book (in namespace "myTypes"). Sorry if this is a dumb question, but what am I doing wrong in my <types> or <message> definitions to cause this error? I've had some luck generating stubs when the part types are all simple types, but I've not had any luck with getting a <complexType> definition accepted by xrpcc. Thanks in advance for any help you can offer.Yes you can specify type mapping in configuration file and probably this will solve the problem, but I've never tested this approach. Perhaps I'm not advanced user. Actually the serializerFactory and deserializerFactory are a little vague for me:(
-
Error Generating Stub With WTK 2.5.2
I have generated stub using stub generator option of wtk 2.5.2 many times before. But this time the different thing was that i have inserted & quired records to & from mysql database in my web service. it it showing some error related to hashtable element of XMLSchema. what should be the reason
Hey
I am like you having a PushRegistry. I dont get your security exception anymore :-) - but the framework doesnt seem to restart my application anybody knows why?? I dont get any Exceptions!!!!
Back to your problem!
Have you included the API Permissions, a made a Push registry entity in you project - under Properties/Application Descriptor/..??
al -
Webapp client using weblogic-generated stubs
Hi,
I have a simple webservice that has been tested for a while and works without
any trouble when
accessed from a standalone java client using the weblogic-generated webservice
stubs.
I am trying to code a webapp client (using jsp/struts) using the same stubs, and
seem to keep
getting this error. It appears on the client side, doesn't even reach the server
side.
I am using weblogic 8.1 SP1. (It is interesting that even though everything was
compiled and
deployed with weblogic 8.1, there is some reference to 7.0-- which is not even
installed on the
system, so I don't know where it is coming from.)
<May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handler weblogic.webservice.core.handler.ClientHandler
threw an exception from its handleResponse method. The exception was:
java.lang.IllegalAccessError: Already connected.>
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Exception
during processing: java.lang.IllegalAccessError: Already connected (see Fault
Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
Thanks in advance,
EHi,
Thanks for your help with this. As it turns out, I received this message from
the weblogic team here:
=======
All,
The J2EE monitoring tool OVTA rolled out to Weblogic Farm Linux QA and Stage environment
had a bug in the instrumentation. The bug induces a java.lang.IllegalAccessError.
A patch as been rolled out to fix this issue.
=======
Once the patch was rolled out and weblogic was restarted, the issue disappeared.
Thanks again for your help!
E
Bruce Stephens <[email protected]> wrote:
Hello,
What is
com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry
at the time of failure?
If you could provide a short reproducer, we could give it a spin; or
open a dialog with our support team.
Thanks,
Bruce
Elisheva G wrote:
Hi, thanks for responding.
I have precisely the same client jsp running without any errors onapache tomcat
accessing
webservices residing in weblogic 8.1 It's only when I try to migratethe client
code from tomcat
to weblogic that I see this "already connected" exception being thrownfrom within
the weblogic-
generated stubs.
I successfully get a port from the service, but when I try to executethe business
method in the
port, that is where the exception is thrown -- consistently.
Any ideas? I am seeing identical behavior on 2 different applications.
Thanks in advance,
E
Bruce Stephens <[email protected]> wrote:
Hello,
The 7.0 reference is a namespace and not a problem and not associated
with your issue. I think you are seeing normal process threading
issues
with jsp sessions. There is an example using a jsp [1] and one with
SSL
[2] that you might want to examine.
HTH,
Bruce
[1]
http://manojc.com/?sample28
[2]
http://webservice.bea.com/clientauth.zip
Elisheva G wrote:
Hi,
I have a simple webservice that has been tested for a while and
works
without
any trouble when
accessed from a standalone java client using the weblogic-generatedwebservice
stubs.
I am trying to code a webapp client (using jsp/struts) using the
same
stubs, and
seem to keep
getting this error. It appears on the client side, doesn't even
reach
the server
side.
I am using weblogic 8.1 SP1. (It is interesting that even though
everything
was
compiled and
deployed with weblogic 8.1, there is some reference to 7.0-- whichis not even
installed on the
system, so I don't know where it is coming from.)
<May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handlerweblogic.webservice.core.handler.ClientHandler
threw an exception from its handleResponse method. The exception
was:
java.lang.IllegalAccessError: Already connected.>
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:Exception
during processing: java.lang.IllegalAccessError: Already connected(see Fault
Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
Thanks in advance,
E -
Compilation failed while generating stub classes using wscompile
I am new to Web Services. I am trying to generate client stub classes from WSDL (provided by Seapine's with TestTarckPro Software), using wscompile. I am using JWSDP 1.6
====================================================================================
Here's the wscompile command,
wscompile -gen:client -d classes2 -keep -s classes2 -verbose config.xml
=========================================================================
Here's config.xml file
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<wsdl
location="./ttsoapcgi.wsdl"
packageName="testtrack_interface"/>
</configuration>
=====================================================================================
I am getting following compilation errors during stub generation. Following is the compilation error part of wscompile result output
[SOAPObjectBuilderGenerator: writing object builder for: saveLink]
[SerializerRegistryGenerator: creating serializer registry: testtrack_interface.Ttsoapcgi_SerializerRegistry]
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:10: ';' expected
protected java.lang.String m-strFileName;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:11: ';' expected
protected java.lang.String m-strFixedRevision;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:12: ';' expected
protected java.util.Calendar m-dateFixedTimestamp;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:17: ')' expected
public CSCCFileRecord(long recordid, java.lang.String m-strFileName, java.lang.String m-strFixedRevision, java.util.
Calendar m-dateFixedTimestamp) {
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord.java:47: ';' expected
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:29: ';' expected
private static final int myM-STRFILENAME_INDEX = 1;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:30: ';' expected
private static final int myM-STRFIXEDREVISION_INDEX = 2;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:31: ';' expected
private static final int myM-DATEFIXEDTIMESTAMP_INDEX = 3;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:71: not a statement
instance.setM-strFileName((java.lang.String)member);
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:87: not a statement
instance.setM-strFixedRevision((java.lang.String)member);
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPSerializer.java:96: not a statement
instance.setM-dateFixedTimestamp((java.util.Calendar)member);
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPBuilder.java:18: ';' expected
private static final int myM-STRFILENAME_INDEX = 1;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPBuilder.java:19: ';' expected
private static final int myM-STRFIXEDREVISION_INDEX = 2;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPBuilder.java:20: ';' expected
private static final int myM-DATEFIXEDTIMESTAMP_INDEX = 3;
^
D:\TestTrackApi\classes2\testtrack_interface\CSCCFileRecord_SOAPBuilder.java:29: '(' expected
public void setM-strFileName(java.lang.String mStrFileName) {
^
15 errors
error: compilation failed, errors should have been reported
==============================================================================
My understanding is, while generating stubs, dashes or hyphens in variable names m-strFileName, m-strFixedRevision, m-dateFixedTimestamp are interpreted as minus sign and hence compilation is failing.
I tried stub generation from same WSDL with Apache Axis and it's working fine. But stub generation is failing with JWSDP. Is this a problem with this WSDL file ? Am I missing something while using wscomplie command ?
Please advise.
Thanks
Here's ttsoapcgi.wsdl file
==================================================================
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ttsoapcgi"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="urn:testtrack-interface"
xmlns:tns="urn:testtrack-interface"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ttns="urn:testtrack-interface">
<types>
<schema targetNamespace="urn:testtrack-interface"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ttns="urn:testtrack-interface"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<element name="CDatabase" type="ttns:CDatabase"/>
<complexType name="CDatabase">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCDatabase">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CDatabase" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CDatabase[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CDatabaseTable" type="ttns:CDatabaseTable"/>
<complexType name="CDatabaseTable">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCDatabaseTable">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CDatabaseTable" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CDatabaseTable[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CTableField" type="ttns:CTableField"/>
<complexType name="CTableField">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCTableField">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CTableField" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CTableField[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CFieldValue" type="ttns:CFieldValue"/>
<complexType name="CFieldValue">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCFieldValue">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CFieldValue" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CFieldValue[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CTableColumn" type="ttns:CTableColumn"/>
<complexType name="CTableColumn">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCTableColumn">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CTableColumn" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CTableColumn[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CFilter" type="ttns:CFilter"/>
<complexType name="CFilter">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCFilter">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CFilter" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CFilter[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CRecordData" type="ttns:CRecordData"/>
<complexType name="CRecordData">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCRecordData">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CRecordData" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CRecordData[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CRecordRowSoap" type="ttns:CRecordRowSoap"/>
<complexType name="CRecordRowSoap">
<sequence>
<element name="row" type="ttns:ArrayOfCRecordData" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCRecordRowSoap">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CRecordRowSoap" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CRecordRowSoap[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CRecordListSoap" type="ttns:CRecordListSoap"/>
<complexType name="CRecordListSoap">
<sequence>
<element name="columnlist" type="ttns:ArrayOfCTableColumn" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="records" type="ttns:ArrayOfCRecordRowSoap" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<element name="CItemWithDBRecordId" type="ttns:CItemWithDBRecordId"/>
<complexType name="CItemWithDBRecordId">
<sequence>
<element name="recordid" type="xsd:long" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<element name="CItemToTrack" type="ttns:CItemToTrack"/>
<complexType name="CItemToTrack">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="COrderedItemWithDBRecordId" type="ttns:COrderedItemWithDBRecordId"/>
<complexType name="COrderedItemWithDBRecordId">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="order" type="xsd:long" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CSystemBase" type="ttns:CSystemBase"/>
<complexType name="CSystemBase">
<complexContent>
<extension base="ttns:CItemToTrack">
<sequence>
<element name="systemname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CSystem" type="ttns:CSystem"/>
<complexType name="CSystem">
<complexContent>
<extension base="ttns:CSystemBase">
<sequence>
<element name="location" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="computermodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="computerbrand" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="cputype" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="cpuspeed" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="harddisktype" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="harddisksize" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="ramsize" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="romsize" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="osname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="osversion" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="videoname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hascdrom" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="cdrommodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hasscanner" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="scannermodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hasmodem" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="modemmodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hasprinter" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="printermodel" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="otherhardware" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hasmultiplemonitors" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CSCCFileRecord" type="ttns:CSCCFileRecord"/>
<complexType name="CSCCFileRecord">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="m-strFileName" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="m-strFixedRevision" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="m-dateFixedTimestamp" type="xsd:dateTime" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ArrayOfCSCCFileRecord">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CSCCFileRecord" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CSCCFileRecord[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CFileAttachment" type="ttns:CFileAttachment"/>
<complexType name="CFileAttachment">
<sequence>
<element name="m-pFileData" type="xsd:base64Binary" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="m-strFileName" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="m-strArchiveName" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCFileAttachment">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CFileAttachment" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CFileAttachment[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CReportedByRecord" type="ttns:CReportedByRecord"/>
<complexType name="CReportedByRecord">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="foundby" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="datefound" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="contactinfo" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="foundinversion" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="comments" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="reproduced" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="reproducedsteps" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="standardtestconfig" type="ttns:CSystem" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="otherhardwaresoftware" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="testconfigtype" type="xsd:short" minOccurs="1" maxOccurs="1"/>
<element name="attachmentlist" type="ttns:ArrayOfCFileAttachment" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="showorder" type="xsd:short" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ArrayOfCReportedByRecord">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CReportedByRecord" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CReportedByRecord[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CField" type="ttns:CField"/>
<complexType name="CField">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CStringField" type="ttns:CStringField"/>
<complexType name="CStringField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CIntegerField" type="ttns:CIntegerField"/>
<complexType name="CIntegerField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:int" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CDecimalField" type="ttns:CDecimalField"/>
<complexType name="CDecimalField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:double" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CBooleanField" type="ttns:CBooleanField"/>
<complexType name="CBooleanField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CDateField" type="ttns:CDateField"/>
<complexType name="CDateField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CDateTimeField" type="ttns:CDateTimeField"/>
<complexType name="CDateTimeField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:dateTime" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CDropdownField" type="ttns:CDropdownField"/>
<complexType name="CDropdownField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="dropdownValues" type="ttns:ArrayOfCFieldValue" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CVersionField" type="ttns:CVersionField"/>
<complexType name="CVersionField">
<complexContent>
<extension base="ttns:CField">
<sequence>
<element name="value" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ArrayOfCField">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CField" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CField[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="ArrayOfstring">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="xsd:string[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CDefectEvent" type="ttns:CDefectEvent"/>
<complexType name="CDefectEvent">
<complexContent>
<extension base="ttns:CItemWithDBRecordId">
<sequence>
<element name="user" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="date" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="notes" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="eventaddorder" type="xsd:short" minOccurs="1" maxOccurs="1"/>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="parenteventid" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<element name="attachmentlist" type="ttns:ArrayOfCFileAttachment" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="fieldlist" type="ttns:ArrayOfCField" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="resultingstate" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="hours" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="assigntolist" type="ttns:ArrayOfstring" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ArrayOfCDefectEvent">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CDefectEvent" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CDefectEvent[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CDefectEventDefinition" type="ttns:CDefectEventDefinition"/>
<complexType name="CDefectEventDefinition">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="user" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="datetime" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="notes" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="resultingState" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="resultingStateValues" type="ttns:ArrayOfCFieldValue" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="fileattachments" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="timeTracking" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="timeSumOfAll" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="timeHoursSinceLast" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="newAssignment" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="releaseNotes" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="customFields" type="ttns:ArrayOfCField" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<complexType name="ArrayOfCDefectEventDefinition">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="ttns:CDefectEventDefinition" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ttns:CDefectEventDefinition[]"/>
</restriction>
</complexContent>
</complexType>
<element name="CDefect" type="ttns:CDefect"/>
<complexType name="CDefect">
<complexContent>
<extension base="ttns:CItemToTrack">
<sequence>
<element name="defectnumber" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<element name="summary" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="state" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="disposition" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="type" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="priority" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="product" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="component" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="reference" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="severity" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="enteredby" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="dateentered" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="locationaddedfrom" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="datetimecreated" type="xsd:dateTime" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="datetimemodified" type="xsd:dateTime" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="createdbyuser" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="modifiedbyuser" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="actualhourstofix" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="reportedbylist" type="ttns:ArrayOfCReportedByRecord" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="eventlist" type="ttns:ArrayOfCDefectEvent" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="pSCCFileList" type="ttns:ArrayOfCSCCFileRecord" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="customFieldList" type="ttns:ArrayOfCField" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="CTask" type="ttns:CTask"/>
<complexType name="CTask">
<complexContent>
<extension base="ttns:CItemToTrack">
<sequence>
<element name="status" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="priority" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="summary" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="description" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="datedue" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="dateassigned" type="xsd:date" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="versiondue" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="assignedto" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="assignedby" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="assigneddefect" type="xsd:long" minOccurs="1" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="PhoneNumber" type="ttns:PhoneNumber"/>
<complexType name="PhoneNumber">
<sequence>
<element name="numbertype" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="phonenumber" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
<element name="CUser" type="ttns:CUser"/>
<complexType name="CUser">
<complexContent>
<extension base="ttns:CItemToTrack">
<sequence>
<element name="firstname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="lastname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="usergroupname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="company" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="emailtype" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="emailaddress" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="isactive" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="iscustomer" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="isglobal" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="isactiveglobal" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="userLicense" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="password" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="loginname" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<element name="phoneone" type="ttns:PhoneNumber" minOccurs="1" maxOccurs="1"/>
<element name="phonetwo" type="ttns:PhoneNumber" mDeepank-
When generating forms from Designer, Designer attaches libraries - like ofgmes.pll, ofgnavl.pll, etc. You will need to copy these libraries to the same directory where your forms reside on your Linux box. To find out what libraries ate attached to your form, open it on your windows PC after generating it from Designer and you will see the attached libraries. Also, watch out for the case-sensitivity of Linux. If you have the Designer libraries on your linux box and you still get errors, try changing the case of the names of the libraries.
Hope this helps,
Dan -
SAXException while generating stubs from WSDL
Hi Friends
i am stuck in a problem for which i need your help.
i am using the Axis wsdl2java tool to generate the client side stub classes.
the wsdl which i was using was referring to the port http://localhost/hth/services/Client?wsdl
i was running the wsdl2java tool on this wsdl to generate stubs. it was working fine.
Now i have removed the client.wsdl from the default localhost port and
want to keep it in some location like D:\wsdl\Client.wsdl so that i don't need to depend on the Application server everytime for the wsdl to be up all the time.
when i run the wsdl2java command on this location i get the following error.
org.xml.sax.SAXException: Fatal Error: URI=file:///D:/wsdl/Client.wsdl Line=1: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:723)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:218)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(XMLScanner.java:689)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLDocumentFragmentScannerImpl.java:750)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(XMLScanner.java:664)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:845)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:595)
Please let me know what is the problem here and how can i resolve this issue.
here is bit of the sample client.wsdl
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="D:\wsdl\Client.wsdl" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="D:\wsdl\Client.wsdl" xmlns:intf="D:\wsdl\Client.wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="D:\wsdl\Client.wsdl" xmlns:tns2="http://client.hth.march.com" xmlns:tns3="http://exception.hth.march.com" xmlns:tns4="http://equipment.hth.march.com" xmlns:tns5="http://equipment.ws.hth.march.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <!--
WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)
-->
- <wsdl:types>
- <schema targetNamespace="D:\wsdl\Client.wsdl" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://equipment.ws.hth.march.com" />
<import namespace="http://xml.apache.org/xml-soap" />
<import namespace="http://exception.hth.march.com" />
<import namespace="http://client.hth.march.com" />
<import namespace="http://equipment.hth.march.com" />
<import namespace="http://localhost/hth/services/Client" />
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="HTHBaseDTO">
- <sequence>
<element name="md5Sum" nillable="true" type="xsd:string" />
<element name="primaryKey" nillable="true" type="xsd:integer" />
</sequence>
</complexType>
- <complexType name="VitalThresholdEnum">
- <sequence>
<element name="labelKey" nillable="true" type="xsd:string" />
<element name="pk" nillable="true" type="xsd:short" />
</sequence>
</complexType>
- <complexType name="VitalThresholdDTO">
- <complexContent>
- <extension base="tns1:HTHBaseDTO">
- <sequence>
<element name="categoryPk" nillable="true" type="xsd:short" />
<element name="clientCarePlanPk" nillable="true" type="xsd:long" />
<element name="clientPk" nillable="true" type="xsd:integer" />
<element name="clientVitalPrescriptionPk" nillable="true" type="xsd:integer" />
<element name="statusPk" nillable="true" type="xsd:short" />
<element name="syncStatusPk" nillable="true" type="xsd:short" />
<element name="thresholdType" nillable="true" type="tns1:VitalThresholdEnum" />
<element name="thresholdValue" nillable="true" type="xsd:double" />
<element name="unitTy
hoping for positive replies from your side.
Thanks & regards
Vikram KSo what was the problem? I am getting:
error: invalid element "{http://java.sun.com/jax-rpc-ri/xrpcc-config}configuration" in configuration file (line 3)
and I copied my config.xml from an example on xrpcc site! -
Problem generating stubs for Java EJB web service deployed in OAS
I created an EJB web service and I've successfully deployed it in my Oracle App Server. Some of the methods work fine but others produce the ff error:
org.apache.soap.SOAPException - java.lang.IllegalArgumentException: No Serializer found to serialize [classname] using encoding style [encoding]It seems that the objects specified as parameters in the web service methods exposed are the only ones that had stubs generated for them. Other objects I use, which are usually wrapped inside a Vector, did not have generated stubs.
Example:
public String loginUser(UserDTO userDTO) throws RemoteException, NamingException, SQLException;
public String addItems (Vector vecItems) throws RemoteException, NamingException, SQLException; // where vecItems is a collection of ItemDTO objects In this scenario, stubs were generated for the UserDTO class, but not for the ItemDTO class. In effect, calling the addItems method resulted to the exception I mentioned above.
I did a workaround wherein I declared a dummy method which accepted all the types of objects I needed as parameters so all the necessary stubs can be generated, but this fix doesn't feel like it's the proper solution to my problem.
If anyone can help me, it would be greatly appreciated. Thanks!Crossposted:
Problem generating stubs for Java EJB web service deployed in OAS -
I am getting the following error message when I try invoking
a webservice.
Could not generate stub objects for web service invocation.
Name: ProgrammePrivilege. WSDL:
https://clientaccweb.reseaudistinction.com/CardHolderInfo.asmx?WSDL.
org.xml.sax.SAXException: Fatal Error: URI=null Line=11: The
element type "META" must be terminated by the matching end-tag "".
It is recommended that you use a web browser to retrieve and
examine the requested WSDL document for correctness. If the
requested WSDL document can't be retrieved or it is dynamically
generated, it is likely that the target web service has programming
errors.
The problem is, the webservice is working fine, the
application was working yesterday, the error message just appears
after a couple of days and I have to refresh the service in the CF
Administrator. Once I refresh it, everything starts working again.
Anyone else got this problem? ANY help would be appreciated!
If you guys need my code anyway, I can attach it but like I
said, everything works for a couple of days, then, out of the blue,
it stops working so I doubt that it's my CFINVOKE that's the
problem...Similar kind of problems here - reported back to Adobe a
couple of months ago, so let's wait and hope for the best. My
problems have related to registering multiple web services and
executing them. One problem is that, If I register two identical
(and quite complex) web services, I can only execute either of
them. After CF restart, either of them works, but invoking the
other doesn't work.
For example; CF_Restart -> Try A first, A works -> B
doesn't. Also, CF_Restart -> Try B first, B works -> A
doesn't.
CFMX7.0.2, Apache 2.2, WinXP
Maybe you are looking for
-
Having problems creating PDF from website with query-string URLs
I have a website that I would like to create a PDF from. I am using the Create -> PDF from Web Page..., selecting the site's home page, and capturing 2 levels, with "stay on same path" and "stay on same server" checked in order to limit the scope of
-
Seeking yearbook solution in iPhoto 11
I upgraded my desktop and laptop which resulted in the installation of iPhoto 11. Missing the the Yearbook layout that I have used for years to make team roster pictures pages. I am having problems with autoflow to really flow. I create the book and
-
What is the difference using start condition and check function module
what is the difference between using start condition and check function module
-
Is it possible to exchange a 16GB ipad for a 32GB WITHOUT a refund/buying again?
I was bought a 16GB ipad yesterday, but want to trade up to the 32GB. I don't want to have to tell the person, and get them down to the store again, so is it possible to just pay the £80 myself, and not go through the process of getting a full refund
-
Won't connect to PC, but charges in wall fine.
All of a sudden my iPhone 3G wont show up as a device on my PC (windows vista 64, iTune 9.1.0.79). My wife also has an iPhone and we sync on the same machine. Her's works fine with the same USB plug I'm using. I can use the same USB plug to charge th