Jcomgen doesn't generate classes for FineReader 7 engine
Hi,
currently I'm using njawin 1.1.34 to control FineReader 6 Scripting Edition which works quite well :-)
Recently we tried to upgrade to FineReader 7 engine which offers several additional features we'd like to use. Unfortunately jcomgen.exe doesn't generate all the necessary classes; only a few are created although there are lots of entries in the ProgID combobox, the TypeLib GUID seems to be corrent, and the typelib module is selected correctly.
Example:
The FineReader engine exports an object called "Block" and one called "BlocksCollection"; the latter is - as the name suggests - a collection of objects of type "Block ". jcomgen only generates a class for the collection.
Do you have any idea why jcomgen doesn't want to generate all the available classes?
Regards
Thorsten
Do you ever figure this out?
I'm trying to use FineReader engine too.
I've tried with 7 to no avail.
Am stuck at the 2nd step with 6, too, though. How do you create the Engine? I'm creating a FuncPtr, but can't figure out how to invoke things and get the created engine back.
Would REALLY appreciate your help!
thanks,
David
Similar Messages
-
Reusing JAXB generated classes for XSDs included in other XSDs
Hi,
I use xsds with jaxb in a number of related projects. To avoid duplication I've factored out commonly used elements into their own xsd in a separate project. I then include these in the xsds that need them.
I generate classes with jaxb for each project. I'm now trying to get jaxb so far as to reuse the already generated classes for the common elements.
For example: I have a general xsd Person.xsd for which I generate classes in common.xsd. I have another xsd Project.xsd that includes a reference to the Person element. When i let jaxb generate classes for Projects.xsd, it will also generate a project.xsd.PersonType and so on.
Is there any way to tell JAXB to use the existing classes? I've played around with the <jxb:javaType> bindings, but I can't get it to work yet. It gives me a "bindings not used" warning and doesn't compile. Also, if this is in fact the way to go, what do I specify as the parseMethod and printMethod attributes for the javaType element?
Thx for any helpJAXB questions should be better directed to the users list of http://jaxb.dev.java.net/
you should subscribe to the 'users' mailing list, then post a question there.
Thank you! -
Failed to generate classes for home
Using RMI we successfully connected Oracle OC4j 9.0.3 EJB to WL7.0 EJB but since
our upgrade we are getting the following
Any Ideas
Cheers
Bruce
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate
class for com.towertechnology.wc.sis.ejb.lette
rurl.LetterURL_aleqcw_HomeImpl_811_WLStub ]
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:662)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:651)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:59)
at weblogic.common.internal.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:249)
at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:134)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectStreamClass.invokeMethod(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:140)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:91)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:161)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:264)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at com.workcover.proc.SeraphApplication.getHome(SeraphApplication.java:144)
at com.workcover.proc.SeraphApplication.call(SeraphApplication.java:85)
at com.workcover.proc.SeraphApplication.call(SeraphApplication.java:77)
at com.workcover.proc.RMIProxyBean.call(RMIProxyBean.java:56)
at RMIProxy_StatelessSessionBeanWrapper24.call(RMIProxy_StatelessSessionBeanWrapper24.java:117)
at com.workcover.proc.HttpCallProxy.invokeEJB(HttpCallProxy.java:129)
at com.workcover.proc.HttpCallProxy.doPost(HttpCallProxy.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Unknown Source)Anyone have an answer for this problem? I'm getting it with 7.0 SP3. Not helpful that WLS doesn't not give any reason why it fails.
-
Generating classes for all types in WSDL
Is there a way to get Flash Builder to generate classes for all the complex types found in a WSDL?
The web service I am trying to connect to essentially has one method that takes a BaseRequest object and returns a BaseResponse object. If passed a DerivedRequest object (extending BaseRequest), it returns a DerivedResponse (extending BaseResponse). However, Flash Builder only generates classes for BaseRequest and BaseResponse, and not DerivedRequest or DerivedResponse.
Thanks for any helpThe Web Service import wizard generates Value Object classes for all the associated data types required by the imported operations. Say you imported only 2 out of 10 operations mentioned in the WSDL, you will have classes generated for only those data typed required by the 2 imported operations, which may not result in generation of all data types.
In the case mentioned by you, what I assume is that, the operations are mentioned in the WSDL to return the BaseResponse and take BaseRequest as param.
Now using the above mentioned logic the introspector does not know that the derivedResponse may be required and does not import it. Had the operation pointed to the DerivedResponse directly it would have got imported.
A suggested workaround can be that you implement the custom properties in the generated Is there a way to get Flash Builder to generate classes for all the complex types found in a WSDL?
Currently there is no such switch in FB. You may log an enhancement request at http://bugs.adobe.com/jira for the same.
Thanks,
- Gaurav -
Wscompile only generates classes for the first wsdl:portType encountered
Greetings.
When
compiling a WSDL with port types as follows below;
classes are generated for port type: AccountsManagement only.
<portType name="AccountsManagement">
<operation name="CreateAccount" parameterOrder="Account">
<input message="tns:CreateAccountReq"/> <!-- name defaults to CreateAccountReqRequest -->
<output message="tns:CreateAccountReqResponse"/>
</operation>
<operation name="CreateAccountForPerson" parameterOrder="Account UniqueId">
<input message="tns:CreateAccountForPersonReq"/>
<output message="tns:CreateAccountForPersonReqResponse"/>
</operation>
</portType>
<portType name="PersonsManagement">
<operation name="AddPerson" parameterOrder="Person">
<input message="tns:AddPersonReq" name="AddPersonReq"/>
<output message="tns:AddPersonReqResponse" name="AddPersonReqResponse"/>
</operation>
<operation name="AddPersonWithAccount" parameterOrder="Person Account">
<input message="tns:AddPersonWithAccountReq" name="AddPersonWithAccountReq"/>
<output message="tns:AddPersonWithAccountReqResponse" name="AddPersonWithAccountReqResponse"/>
</operation>
</portType>
<portType name="TellersOperations">
<operation name="ListAccountsForPerson" parameterOrder="UniqueId">
<input message="tns:ListAccountsForPersonReq"/>
<output message="tns:ListAccountsForPersonReqResponse"/>
</operation>
</portType>Netbeans output:
init:
wscompile-init:
Created dir: C:\PROJECTS\WSTest\build\generated\wsclient
Created dir: C:\PROJECTS\WSTest\build\generated\wsservice
Created dir: C:\PROJECTS\WSTest\build\generated\wsbinary
TestBankingService_wscompile:
command line: wscompile "C:\Program Files\Java\jdk1.5.0_03\jre\bin\java.exe" -classpath "C:\Program Files\Java\jdk1.5.0_03\lib\tools.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\j2ee.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\saaj-api.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\saaj-impl.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\jaxrpc-api.jar;C:\Program Files\netbeans-4.1\SunAppServer8.1\lib\jaxrpc-impl.jar" com.sun.xml.rpc.tools.wscompile.Main -d "C:\PROJECTS\WSTest\build\generated\wsbinary" -features:wsi,strict -import -keep -mapping "C:\PROJECTS\WSTest\web\WEB-INF\TestBankingService-mapping.xml" -nd "C:\PROJECTS\WSTest\build\web\WEB-INF\wsdl" -s "C:\PROJECTS\WSTest\src\java" -verbose -Xprintstacktrace "C:\PROJECTS\WSTest\src\java\bankers\server\TestBankingService-config.xml"
[ServiceInterfaceGenerator: creating service interface: bankers.server.TestBankingService]
[CustomClassGenerator: generating JavaClass for: Account]
BUILD SUCCESSFUL (total time: 2 seconds)There should be a class for Person as well. If I move port type:
PersonsManagement to the top no Account class will be generated, but
instead the Person class will be generated.
Loading up the WSDL in Netbeans (client) works and shows
all three Ports with their respective operations.
Is there a reason for only allowing more than one port type per WSDL?
Checked the man page for switches to "loop" though all portTypes but noluck.
A bug?
Thanks,
WSDL for reference
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="BankingService" targetNamespace="http://www.mycomp.org/schemas/MyWebService"
xmlns:tns="http://www.mycomp.org/schemas/MyWebService"
xmlns:ns1="urn:WS/types"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- Type definitions -->
<types>
<xsd:schema targetNamespace="urn:WS/types">
<xsd:element name="Person" type="ns1:Person"/>
<xsd:element name="Account" type="ns1:Account"/>
<xsd:element name="ListOfAccounts" type="ns1:ListOfAccounts"/>
<xsd:element name="ResultCode" type="xsd:unsignedInt"/>
<xsd:element name="AccountNumber" type="xsd:string"/>
<xsd:element name="UniqueId" type="xsd:string"/>
<xsd:complexType name="Person">
<xsd:sequence>
<xsd:element name="DisplayName" type="xsd:string"/>
<xsd:element name="UniqueId" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Account">
<xsd:sequence>
<xsd:element name="Number" type="xsd:string"/>
<xsd:element name="Type" type="xsd:token"/>
<xsd:element name="Amount" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ListOfAccounts">
<xsd:sequence>
<xsd:element name="Account" type="ns1:Account" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>
<message name="AddPersonReq">
<part name="Person" element="ns1:Person"/>
</message>
<message name="AddPersonReqResponse">
<part name="ResultCode" element="ns1:ResultCode"/>
</message>
<message name="AddPersonWithAccountReq">
<part name="Person" element="ns1:Person"/>
<part name="Account" element="ns1:Account"/>
</message>
<message name="AddPersonWithAccountReqResponse">
<part name="AccountNumber" element="ns1:AccountNumber"/>
</message>
<message name="CreateAccountReq">
<part name="Account" element="ns1:Account"/>
</message>
<message name="CreateAccountReqResponse">
<part name="AccountNumber" element="ns1:AccountNumber"/>
</message>
<message name="CreateAccountForPersonReq">
<part name="Account" element="ns1:Account"/>
<part name="UniqueId" element="ns1:UniqueId"/>
</message>
<message name="CreateAccountForPersonReqResponse">
<part name="AccountNumber" element="ns1:AccountNumber"/>
</message>
<message name="ListAccountsForPersonReq">
<part name="UniqueId" element="ns1:UniqueId"/>
</message>
<message name="ListAccountsForPersonReqResponse">
<part name="Accounts" element="ns1:ListOfAccounts"/>
</message>
<!--
NOTE THAT wscompile WILL PICK THE FIRST AND ONLY FIRST portType
IS THIS A BUG OR A FEATURE?
-->
<portType name="AccountsManagement">
<operation name="CreateAccount" parameterOrder="Account">
<input message="tns:CreateAccountReq"/> <!-- name defaults to CreateAccountReqRequest -->
<output message="tns:CreateAccountReqResponse"/>
</operation>
<operation name="CreateAccountForPerson" parameterOrder="Account UniqueId">
<input message="tns:CreateAccountForPersonReq"/>
<output message="tns:CreateAccountForPersonReqResponse"/>
</operation>
</portType>
<portType name="PersonsManagement">
<operation name="AddPerson" parameterOrder="Person">
<input message="tns:AddPersonReq" name="AddPersonReq"/>
<output message="tns:AddPersonReqResponse" name="AddPersonReqResponse"/>
</operation>
<operation name="AddPersonWithAccount" parameterOrder="Person Account">
<input message="tns:AddPersonWithAccountReq" name="AddPersonWithAccountReq"/>
<output message="tns:AddPersonWithAccountReqResponse" name="AddPersonWithAccountReqResponse"/>
</operation>
</portType>
<portType name="TellersOperations">
<operation name="ListAccountsForPerson" parameterOrder="UniqueId">
<input message="tns:ListAccountsForPersonReq"/>
<output message="tns:ListAccountsForPersonReqResponse"/>
</operation>
</portType>
<binding name="AccountsManagementBinding" type="tns:AccountsManagement">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="CreateAccount">
<soap:operation soapAction=""/>
<input name="CreateAccountReq">
<soap:body use="literal"/>
</input>
<output name="CreateAccountReqResponse">
<soap:body use="literal"/>
</output>
</operation>
<operation name="CreateAccountForPerson">
<soap:operation soapAction=""/>
<input name="CreateAccountForPersonReq">
<soap:body use="literal"/>
</input>
<output name="CreateAccountForPersonReqResponse">
<soap:body use="literal"/>
</output>
</operation>
</binding>
<binding name="PersonsManagementBinding" type="tns:PersonsManagement">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="AddPerson">
<soap:operation soapAction=""/>
<input name="AddPersonReq">
<soap:body use="literal"/>
</input>
<output name="AddPersonReqResponse">
<soap:body use="literal"/>
</output>
</operation>
<operation name="AddPersonWithAccount">
<soap:operation soapAction=""/>
<input name="AddPersonWithAccountReq">
<soap:body use="literal"/>
</input>
<output name="AddPersonWithAccountReqResponse">
<soap:body use="literal"/>
</output>
</operation>
</binding>
<binding name="TellersOperationsBinding" type="tns:TellersOperations">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="ListAccountsForPerson">
<soap:operation soapAction=""/>
<input name="ListAccountsForPersonReq">
<soap:body use="literal"/>
</input>
<output name="ListAccountsForPersonReqResponse">
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="BankingService">
<port name="AccountsManagementService" binding="tns:AccountsManagementBinding">
<soap:address location="__URL__"/>
</port>
<port name="PersonsManagementService" binding="tns:PersonsManagementBinding">
<soap:address location="__URL__"/>
</port>
<port name="TellersOperationsService" binding="tns:TellersOperationsBinding">
<soap:address location="__URL__"/>
</port>
</service>
</definitions>I saw this post elsewhere:
JAXRPC specification required support for only subset of schema types. Abstract schema type support was not required. For the schema types that are not supported, the spcification requires that they should be mapped to javax.xml.soap.SOAPElement.
This is what jaxrpc wscompile tool does. At tool time, the type in the sample code posted is extended frm an abstract type so it should be getting mapped to SOAPElement. SOAPElement extends Node and Element. You may like to see its javadoc.
-vivek.
This is basically the behavior I am seeing, but I don't see this as being extended from an abstract type. if someone can see that and explain that to me I would appreciate it....if this is even the right path to the answer to my problem. -
Problem facing while generating classes for mixed="true" in jaxb
<complexType name="ANY" abstract="true"></complexType>
<complexType name="BIN" abstract="true" mixed="true">
<complexContent>
<extension base="tns:ANY"></extension>
</complexContent>
</complexType>
When JAXB is generating the classes for above complex types. It is not generationg java.util.List
getContent() method for BIN complex type.
Can Someone please tell me how can i generate that method . without changing the sche[POI FAQ|http://poi.apache.org/faq.html]
[POI Mailing Lists|http://poi.apache.org/mailinglists.html] -
I just upgraded from Elements+Premiere 11 to version 12, on Windows 8.1 x64.
I produced a 1st .mpg file (HDTV 1080p 25 img/s), and imported it in Elements Organizer.
Unfortunately, the Organizer doesn't generate any thumbnail for the file.
This is a new "behavior" of the Organizer 12, because the Organizer 11 use to generate thumbnails properly.
I tried to manually update the thumbnail (right click), but after waiting several seconds, there is still no thumbnail appearing.
OlivierOlivier
Here are the results from my test of your situation where you tried to import 3 Premiere Elements 12 created files into the Elements Organizer 12 after their creation and save to the hard drive.
The 3 files from Premiere Elements 12 were
Publish+Share/Computer/MPEG with Presets = HDTV 1080p25 High Quality
Publish+Share/Computer/MPEG with Presets = HDTV 720p25 High Quality
Publish+Share/Computer/MPEG with Presets = HD 720p25
The same scheme was used for each, and the results were the same for each...
Imported into Elements Organizer 12, File Menu/Photos and Videos/Files and Folders.
In the Elements Organizer 12, each imported with a thumbnail displaying only a filmstrip icon.
Next I double click the thumbnail and got playback of the video in the Elements Organizer 12 without issue.
Next I right clicked the thumbnail and selected Update Thumbnail. It did within a few seconds. The thumbnail then displayed the first frame of the video.
I ran this test on a laptop with Windows 8.1 64 bit computer operating system. Installed on this computer along with Premiere Elements 12...QuickTime latest version, iTunes latest version, a PowerDVD player. Windows Media Player 12 appeared to be there but not yet activated. No VLC player or other.
For the moment I am assuming that codec were essentially from QuickTime and from what Premiere Elements 12 brought along.
More later.
ATR -
Syntax error for automatic generated class for object MAS_AUTH_CUST
Hi,
I am configuring the mobile sales scenario. I encountered a weird problem. Basically the automatically generated class ZDOECL_013_00H_MWSR can not be activated. If you activate it manually it will give you the below error. Looks like the entity structure is too big. So the generated code has a very big loop which causes the dump. I found the issue when try to run the function module CRM_AUTH_CUST_INSERTCDS as suggested in the configuration guide.
I have tried to regenerate the object. But it still give me the same error.
Internal error occured during runtime generation of Class ZDOECL_013_00H_MWSR (Dump ID: GEN_BRANCHOFFSET_LIMIT_REACHED)
Message no. OO053
Diagnosis
An internal error occurred when the system tried to generate the runtime objects of the class. A dump has been created with the given dump ID. It can be analyzed using transaction ST22.
Our Netweaver version as below. It should contain already the latest patch etc.
SAP_ABA 711 0006 SAPKA71106
SAP_BASIS 711 0006 SAPKB71106
PI_BASIS 711 0006 SAPK-71106INPIBASIS
ST-PI 2008_1_710 0004 SAPKITLRE4
SAP_BW 711 0006 SAPKW71106
CRMSPGWY 110 0004 SAPK-11004INCRMSPGWY
CRM version.
SAP_ABA 702 0006 SAPKA70206
SAP_BASIS 702 0006 SAPKB70206
PI_BASIS 702 0006 SAPK-70206INPIBASIS
ST-PI 2008_1_700 0002 SAPKITLRD2
SAP_BS_FND 702 0004 SAPK-70204INSAPBSFND
SAP_BW 702 0006 SAPKW70206
LCAPPS 2005_700 0009 SAPKIBHD09
SAP_AP 700 0022 SAPKNA7022
WEBCUIF 701 0003 SAPK-70103INWEBCUIF
BBPCRM 701 0003 SAPKU70103
WFMCORE 200 0016 SAPK-20016INWFMCORE
VIRSANH 530_700 0011 SAPK-53311INVIRSANH
Any advice is appreciated.
Thanks
Hansen ChenHi,
Gateway1.1 to SAP Netweaver mobile is not supported with EHP1 of SAP Netweaver Mobile 7.10.
Please check the release information note: 1539681
So, i suggest you to install SAP Netweaver Mobile 7.10 with Gateway addon.
Regards,
Siva. -
QR Code/Datamatrix Generator Class for Java
Hi
i want to implement QR Code/Datamatrix in my Application.
Goolging for around 2 hours couldnt give me any results.
Is there a class, api, library, that could help me generating Images out of strings?
Nam"i want to implement QR Code/Datamatrix in my Application."
Then just pick one of the libraries, I rand across literally a dozen while I was looking for that how to implementation for you to code.
Please note for future use--implement has specific meaning to programmers--usually having a do it yourself connotation--as in: I want to build my own package to do this. -
How to use JAXB generated classes with SOAP
hello,
I have a library of JAXB generated classes for my web service. There is a Java class for each web method defined in my schema. For example, my getLocation method is mapped to GetLocation.class.
However my web service is SOAP based, so I am having to manually strip off the SOAP elements to be able to unmarshall the getLocation xml to a GetLocation class.
I am noticing a disconnect between JAXB and other Java SOAP and RPC libraries. Does anyone know how to create a JAXB class for SOAP Envelopes and Bodys? Does anyone have any ideas how to incorporate the existing Java web service libraries with JAXB?
Thanks in advance.Have you found a method to integrate SAAJ and JAXB? Or
is better to use SAAJ only ?If I had to choose I'd go with SAAJ. It seems to me that's theoretically possible to use JAXB classes with SAAJ but I imagine if it is possible it would be a big pain in the ass. -
Help!: ERASED BADI generated class
Hello, thank you for Reading.
It seems that I have erased the SAP generated class for a BADI (CL_EX_FI_TAX_BADI_016), all other objects are still right, when verifying the BADI in SE18 message is: class CL_EX_FI_TAX_BADI_016 does not exist.
Also in SE80 the class BADI is not present in inside its packet.
All implementations of the BADI are actives and gives "OK" when verified, it seems that only the main class is erased.
Don't know what could I have done!!!! :-( , but I did again in quality machine when trying to fix!!!
Please could anybody help me, to recover or regenerate the class in both machines/environtments?
Thank you in advance
JoanHi,
Please go through the SAP Note 1109827 - BADI regeneration which can solve your problem by regenerating the BADI.
steps :
Regenerate the BAdI to solve the problem.
1)Execute transaction se18
2)Enter the BAdI name
3)Click on the Menu option 'utilities' and in the drop down on the 'regeneration' option.
Thanks.,
Kishor. -
hi
i have a need wherein i need to create/host jax-ws webservice ( starting from wsdl) and in that service translate the xml using xsl to a different structure and call another webservice hosted to another server ( non-weblogic).
so my approach is as soon as request comes to the service impl, i marshal the object to a xml then apply the required xsl transformation and then unmarshal the transformed xml to the object which can be used to trigger another webservice.
This approach works fine for the xmls without list tags/unbounded elements , however it gives marshal exception whenever the xmls has list/unbounded elements.
i am using jaxb and jax-ws generated class for marshalling and unmarshalling.
so need some help on how to deal in this scenario?
any help is appreciatedhi
i have a need wherein i need to create/host jax-ws webservice ( starting from wsdl) and in that service translate the xml using xsl to a different structure and call another webservice hosted to another server ( non-weblogic).
so my approach is as soon as request comes to the service impl, i marshal the object to a xml then apply the required xsl transformation and then unmarshal the transformed xml to the object which can be used to trigger another webservice.
This approach works fine for the xmls without list tags/unbounded elements , however it gives marshal exception whenever the xmls has list/unbounded elements.
i am using jaxb and jax-ws generated class for marshalling and unmarshalling.
so need some help on how to deal in this scenario?
any help is appreciated -
Hi,
I am moving an legacy application which consist of EJB 2.0 from Weblogic 9 to weblogic 10.3.4 and I am facing following problem:
Caused by: java.lang.AssertionError: Failed to generate class for com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:786)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:74)
at weblogic.rmi.internal.StubInfo.resolveObject(StubInfo.java:267)
at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:199)
at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1762)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at weblogic.rmi.extensions.server.CBVInputStream.readObject(CBVInputStream.java:64)
at weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:100)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_HomeImpl_1034_WLStub.create(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.callCreateMethod(ServiceLocatorImp.java:246)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.getBean(ServiceLocatorImp.java:211)
at com.sky.jak.common.servicelocator.RemoteInvocationHandler.doReinitializeDelegate(RemoteInvocationHandler.java:155)
at com.sky.jak.common.proxy.RecoverableInvocationHandler.reinitializeDelegate(RecoverableInvocationHandler.java:357)
... 13 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:795)
... 37 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub.ensureInitialized(Unknown Source)
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub.<init>(Unknown Source)
... 42 more
When I run appc at compile time I am getting the reported error. What strang is that if I disable appc at compile time, weblogic performs appc on the fly and all works fine. The same error I get even when I do run appc externaly to final ear.
Can someone please assist to troubleshoot that?
Thanks
Edited by: user13047709 on Dec 12, 2012 2:26 AMHi,
the full stack trace follows:
2012-12-11 13:54:53,411 ERROR [MSR !f6251134-4a63-49f9-9366-ee1713fa9bbb,f6251134-4a63-49f9-9366-ee1713fa9bbb,2370dbe6-f974-426d-8191-459f9cbd233a,JSP,JSKY,SKY,1,3! ] msengine.MSEngineBean - JSKY SKY error
com.sky.jak.marketstructure.universe.UniverseRetrieverException: [Market Structure Exception] Market Structure Wrapped Exception cause: Throwable thrown within Portfolio: 6
at com.sky.jak.marketstructure.universe.UniverseRetriever.getPortfolioUniverse(UniverseRetriever.java:638)
at com.sky.jak.marketstructure.report.StatsFieldCalculator.loadData(StatsFieldCalculator.java:162)
at com.sky.jak.marketstructure.report.UniverseFieldCalculator$CalcThread.run(UniverseFieldCalculator.java:167)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at com.sky.jak.common.concurrent.ExecutorFacade$1.call(ExecutorFacade.java:127)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.sky.jak.common.servicelocator.ServiceLocatorException: com.sky.jak.portfolio.exception.PortfolioThrowableWrapperException: 6
at com.sky.jak.common.servicelocator.ServiceLocator.getPortfolioRetriever(ServiceLocator.java:769)
at com.sky.jak.marketstructure.universe.UniverseRetriever.getPortfolioUniverse(UniverseRetriever.java:584)
... 9 more
Caused by: com.sky.jak.portfolio.exception.PortfolioThrowableWrapperException: 6
at com.sky.jak.common.proxy.PointExceptionFactory.getDefaultCheckedException(PointExceptionFactory.java:195)
at com.sky.jak.common.proxy.PointExceptionFactory.getCheckedException(PointExceptionFactory.java:100)
at com.sky.jak.common.proxy.RecoverableOperationState.throwThrowable(RecoverableOperationState.java:349)
at com.sky.jak.common.proxy.RecoverableOperationState.throwThrowable(RecoverableOperationState.java:339)
at com.sky.jak.common.proxy.RecoverableOperationState.getEntry(RecoverableOperationState.java:277)
at com.sky.jak.common.proxy.RecoverableOperationState.processThrowable(RecoverableOperationState.java:175)
at com.sky.jak.common.proxy.RecoverableOperationState.processThrowableAndThrowIfMaxReached(RecoverableOperationState.java:132)
at com.sky.jak.common.proxy.RecoverableInvocationHandler.reinitializeDelegate(RecoverableInvocationHandler.java:380)
at com.sky.jak.common.servicelocator.RemoteInvocationHandler.<init>(RemoteInvocationHandler.java:59)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.getLocatableService(ServiceLocatorImp.java:134)
at com.sky.jak.common.servicelocator.ServiceLocator.getPortfolioRetriever(ServiceLocator.java:765)
... 10 more
Caused by: java.lang.AssertionError: Failed to generate class for com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:786)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:74)
at weblogic.rmi.internal.StubInfo.resolveObject(StubInfo.java:267)
at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:199)
at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1762)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at weblogic.rmi.extensions.server.CBVInputStream.readObject(CBVInputStream.java:64)
at weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:100)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_HomeImpl_1034_WLStub.create(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.callCreateMethod(ServiceLocatorImp.java:246)
at com.sky.jak.common.servicelocator.ServiceLocatorImp.getBean(ServiceLocatorImp.java:211)
at com.sky.jak.common.servicelocator.RemoteInvocationHandler.doReinitializeDelegate(RemoteInvocationHandler.java:155)
at com.sky.jak.common.proxy.RecoverableInvocationHandler.reinitializeDelegate(RecoverableInvocationHandler.java:357)
... 13 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:795)
... 37 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub.ensureInitialized(Unknown Source)
at com.sky.jak.portfolio.beans.PortfolioRetriever_dqv50s_EOImpl_1034_WLStub.<init>(Unknown Source)
... 42 more
Ant appc targed follows:
<target name="appc" unless="skip-appc">
<property name="appc.target" value="${svc.jar.name}.ear"/>
<echo message="${toString:wl.class.path}"/>
<mkdir dir="${appc.dir}"/>
<java classname="weblogic.appc" dir="${dist.dir}" fork="true" failonerror="true">
<jvmarg value="-Djava.io.tmpdir=${appc.dir}"/>
<arg line="-verbose"/>
<classpath>
<path refid="wl.class.path"/>
</classpath>
<arg value="${appc.target}"/>
</java>
<delete dir="${appc.dir}"/>
</target>
While running ant JAVA_HOME is set to JDK 1.6, wl.class.path is pointing to weblogic 10.3.4 libraries. Now I am just thinking of that ear is compiled by JDK 1.6 with target specified to 1.5. Do I somehow specify the same option for appc ? -
Best Practice for WSDL Generate Proxy Class for Web Service with Two Versions
Dear All
Thank you in advance for you help.
I would like to generate proxy classes for same function but with two versions.
Old version web service (v23.2) is used for stable modules in a project which is not going to modify.
However, enhancement is added in new version web service (v24) and is going to use in any future modules.
For example,
wsdl.exe -o="TestProxy.cs" -l:CS -n:Test -sharetypes https://community.workday.com/custom/developer/API/Notification/v23.2/Notification.wsdl https://community.workday.com/custom/developer/API/Notification/v24.0/Notification.wsdl
It generates similar classes with an '1' added at the end of the class name.
ublic partial class Event_TargetObjectType {
private Event_TargetObjectIDType[] idField;
public partial class Event_TargetObjectType1 {
private Event_TargetObjectIDType1[] idField; ...}
Since the function inside some class is the same, is it possible for WSDL.exe to generate proxy classes automatically that if the class is the same, then generate one class only (sameFunction()) but if it detects the class is different, then add '1'
to the end of class name (differentFunction() and differentFunction1())
i.e.
public class sameFunction()
public class differentFunction()
private int a;}
public class differentFunction1()
{ private int b;
Best Regards
mintssoulHi mintssoul,
As per this case, I have shared corresponding details below :
1.As far as I know, WCF doesn’t support method overloading directly
2.Because WSDL doesn’t support method overloading (not OOPs).
3.WCF generates WSDL which specifies the location of the service and the operation or methods the service exposes.
4.WCF use Document/Literal WSDL Style : Microsoft proposed this standard where the soap body element will contain the web method name.
5.By default all the WCF services conform to the document literal standard where the soap body should include the method name.
6.but you can differ the method in the same manually by using Name attribute like below
For example:
[OperationContract(Name="Integers")]
int Display(int a,int b)
[OperationContract(Name="Doubles")]
double Display(double a,double b)
7. Or I suggest you that can use svcutil to map multiple namespaces for generating wcf service proxies .
for more information about this, refer here :
http://stackoverflow.com/questions/1103686/use-svcutil-to-map-multiple-namespaces-for-generating-wcf-service-proxies -
JAXB to generate java classes for XSD.
Hi
I have a XSD, which is importing other couple of xsds in it, tried to generate java classes using xjc, it is throwing error.
C:\vittal\Project\received\development-1\da_xsd>xjc -p com daAuthoring.xsd
parsing a schema...
[ERROR] Property "Alt" is already defined. Use <jaxb:property> to resolve thi
s conflict.
line 42 of file:/C:/vittal/Project/received/development-1/da_xsd/commonElement
s.xsd
[ERROR] The following location is relevant to the above error
line 2205 of file:/C:/vittal/Project/received/development-1/da_xsd/daCommonEle
ments.xsd
Failed to parse a schema.Please let me know how to fix this issue.Thanks for information,
I do understand xml well, and having basic knowledge on XSD.
1. can i generate a java classes for a xsd which is including other XSDs.
2. how to overwrite the issue, using annotation, point me to a location where i will get more information, that will be great help.
here is my xsd.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" xmlns:dctm="http://www.documentum.com" elementFormDefault="qualified">
<xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="ditaarch.xsd"/>
<xs:import namespace="http://www.documentum.com" schemaLocation="dctmAttrs.ent.xsd"/>
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
<xs:group name="alt">
<xs:sequence>
<xs:element ref="alt"/>
</xs:sequence>
</xs:group>
<xs:group name="desc">
<xs:sequence>
<xs:element ref="desc"/>
</xs:sequence>
</xs:group>
<xs:group name="title">
<xs:sequence>
<xs:element ref="title"/>
</xs:sequence>
</xs:group>
<!-- Elements in tblDecl.mod -->
<xs:group name="colspec">
<xs:sequence>
<xs:element ref="colspec"/>
</xs:sequence>
</xs:group>
<xs:group name="entry">
<xs:sequence>
<xs:element ref="entry"/>
</xs:sequence>
</xs:group>
<xs:group name="row">
<xs:sequence>
<xs:element ref="row"/>
</xs:sequence>
</xs:group>
<xs:group name="tbody">
<xs:sequence>
<xs:element ref="tbody"/>
</xs:sequence>
</xs:group>
<xs:group name="tgroup">
<xs:sequence>
<xs:element ref="tgroup"/>
</xs:sequence>
</xs:group>
<xs:group name="thead">
<xs:sequence>
<xs:element ref="thead"/>
</xs:sequence>
</xs:group>
</xs:schema>
Maybe you are looking for
-
Create AP payment via Cash Management
Hi all, In EBS 12.1.3 i try to create an AP Payment via Cash Management Responsibility. But when the forms redirects me where i should create the payment - one of the field/BANK_ACCOUNT_NAME/ is populated by default with strange value. I suppose it s
-
Reg: consistency check in recordset structure validation
Hi all, I am doing FCC to FCC scenario, i am getting this error. Help me out, it is very urgent for me. Sender Adapter v2723 for Party '', Service 'bs_text2text': Configured at 2007-08-21 08:00:49 UTC History: - 2007-08-21 09:29:06 UTC: Retry interva
-
Flash Player update w/ expressInstall
Hello everyone, We've just launched a website which needs FP 10.1 and ran into this situation: If you have FP 10,0,45,2 installed, the expressInstall tries kicking in (I use SWFObject for implementation) but coughs up a security error when loading ht
-
EM failed to show any charts on home screen with "Unhandled exception..."
Hello, I have a 11gr2 2-node RAC on Linux environment. At this time, emctl status dbconsole shows it's up and running. But upon logging in, the main page give error "Unhandled exception during generation of chart Host CPU. 1. java.lang.Exception: Inv
-
Multiple CRM clients (MCRM) pricing and lean order management
Hi CRM experts, We have a scenario where two CRM CLIENTS (not different systems/boxes) (lets say 100 and 110) are connected to two different SAP ECC systems (NOT different clients but different ECC systems). Both CRM clients have interaction center s