Parser Generator - bug in generating classes

If there are two elements defined in a DTD that are only different in capitalisation of the first letter (e.g. Event and event) - then the Weblogic Parser Generator generates duplicate method names for getEvent and getEventAttributes and fails to build the code.
I did not see this limitiation declared in the documentation and thought it would be useful to make it known.

[http://ccby88.com] I am Richard who work on women's clothing wholesale in China.I am wondering whether we have chance to do business.I am in Shanghai City.Please have a look at my site:[http://ccby88.com]*There maybe some products you are interested in .Many thanks for your time.You can contact me at :[email protected] if you have any questions.*
Best regards

Similar Messages

  • Jaxb. Problem in generating classes

    I am using wsad 5.1.1 and java web services developers pack 1.5.
    I am trying to generate classes from xml schema but i am getting following error. please help.
    parsing a schema...
    compiling a schema...
    generated\impl\runtime\ContentHandlerAdaptor.java
    generated\impl\runtime\GrammarInfo.java
    generated\impl\runtime\SAXUnmarshallerHandler.java
    generated\impl\runtime\GrammarInfoFacade.java
    generated\impl\runtime\UnmarshallingEventHandlerAdaptor.java
    generated\impl\runtime\SAXMarshaller.java
    generated\impl\runtime\ValidatingUnmarshaller.java
    generated\impl\runtime\AbstractUnmarshallingEventHandlerImpl.java
    generated\impl\runtime\GrammarInfoImpl.java
    generated\impl\runtime\Util.java
    generated\impl\runtime\ValidationContext.java
    generated\impl\runtime\UnmarshallerImpl.java
    generated\impl\runtime\UnmarshallingEventHandler.java
    generated\impl\runtime\NamespaceContext2.java
    generated\impl\runtime\SAXUnmarshallerHandlerImpl.java
    generated\impl\runtime\XMLSerializable.java
    generated\impl\runtime\DefaultJAXBContextImpl.java
    generated\impl\runtime\UnmarshallableObject.java
    generated\impl\runtime\PrefixCallback.java
    generated\impl\runtime\NamespaceContextImpl.java
    generated\impl\runtime\ErrorHandlerAdaptor.java
    generated\impl\runtime\ValidatableObject.java
    generated\impl\runtime\Discarder.java
    generated\impl\runtime\MSVValidator.java
    generated\impl\runtime\UnmarshallingContext.java
    generated\impl\runtime\ValidatorImpl.java
    generated\impl\runtime\InterningUnmarshallerHandler.java
    generated\impl\runtime\MarshallerImpl.java
    generated\impl\runtime\XMLSerializer.java
    generated\impl\CommentImpl.java
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.NullPointerException
         at com.ibm.nio.cs.SBCS_Encoder.canEncode(SBCS_Encoder.java:199)
         at com.sun.codemodel.JPackage$1.requireEscaping(JPackage.java:356)
         at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.java:28)
         at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.java:54)
         at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.java:66)
         at java.io.PrintWriter.newLine(PrintWriter.java(Compiled Code))
         at java.io.PrintWriter.println(PrintWriter.java(Compiled Code))
         at com.sun.codemodel.JFormatter.nl(JFormatter.java:159)
         at com.sun.codemodel.JPackageMemberClass.declare(JPackageMemberClass.java:60)
         at com.sun.codemodel.JPackage.build(JPackage.java:364)
         at com.sun.codemodel.JCodeModel.build(JCodeModel.java:157)
         at com.sun.tools.xjc.Driver.run(Driver.java:235)
         at com.sun.tools.xjc.Driver._main(Driver.java:80)
         at com.sun.tools.xjc.Driver.access$000(Driver.java:46)
         at com.sun.tools.xjc.Driver$1.run(Driver.java:60)

    Use the Sun 1.4.2 JDK instead of the IBM WSAD 5.1.1 built-in JDK.

  • 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 help

    The 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

  • User defined data type generated class

    Hi
    When defining a new data type in the local dictionary, one has to option of generating a representation class.
    I have done this and indeed received the class in my app.
    However, I fail to understand how I can use this class to retrieve values set in the data type.
    Thank you for your assistance
    Regadrs
    yuval

    Hello Y PEERY
    I am not clear which context you are talking about .
    Are you taking about simple type inside local dictonary ?
    or
    A project with data dictonary type ?
    (for webdynpro only)
    In both the case no need to deal with internal generated class, this is somethig which is requrired to framework itself , end developer not at all using /modifiying it.
    or
    Might you are dealing with EJB so in this case representation class is generated once we provide the basic(name , package etc) to it , further you can modify it according to your use.
    Please clarify
    BR
    Satish Kumar

  • At the time of generating .class files i got below warning.

    Hi all,
    i develop one oaf page and move to server and generate .class files.
    at the time of generate .class files i got below error.
    plz help me.
    *[appldev@wnsfinapp webui]$ javac AgingBucketsCO.java -deprecation*
    AgingBucketsCO.java:114: warning: setRedirectURL(java.lang.String) in oracle.apps.fnd.framework.webui.OAPageContext has been deprecated
    pageContext.setRedirectURL(
    *^*
    *1 warning*
    Thanks
    Seshu
    Edited by: its urgent on Jan 30, 2012 4:47 AM

    Hi Pratap,
    thanks for your replay,
    i register the page in apps its working fine.
    but my page having go button.normally whenever goto the GO button it display hyperlink.
    in my local machine displays hyperlink.after move to server it displays cursor.
    Plz help me
    Thanks
    Seshu.

  • Getting generated class files using the compiler api??

    I am writing a compiler/IDE for java, and i use the new JavaCompiler API
    (javax.tools.JavaCompiler)
    i want to ask, is it possible to get the generated class file(compiled file) names??
    can anyone help me with this, read at the documentation and i have no idea which one is used to do such thing..
    Or is it impossible??
    Thanks, please guide me on this..

    E.D.-inc wrote:
    I am writing a compiler/IDE for java, and i use the new JavaCompiler API
    don't.
    i want to ask, is it possible to get the generated class file(compiled file) names??
    yes, probably (after all, other tools can do it). Don't ask me how though, I've never had a need to.
    can anyone help me with this, read at the documentation and i have no idea which one is used to do such thing..
    no. Someone else reading the documentation for you won't help you any. Read it yourself, you might learn something.

  • 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 help

    JAXB 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!

  • Namespace issue with oracg generated classes

    Hi,
    I'm having problems generating classes with oracg from the Java Xdk from an XML schema. All classes are generated, but do not compile. In some sources (mostly in the type classes) "public void addSomething(null.Something theSomething)" is generated as the method declaration, and that doesn't compile. When I add a targetnamespace to the xsd file, the generated sources compile (the 'null.' is replaced with 'myPackage.', but when I generate an XML document, I contains a namespace reference (ns1) like this:
    <ns1:Note xmlns:ns1 = "http://www.somewhere.org">
    <ns1:Form>
    <ns1:Reference>
    <ns1:ReferenceNbr>1</ns1:ReferenceNbr>
    <ns1:ReferenceType>1</ns1:ReferenceType>
    </ns1:Reference>
    </ns1:Form>
    </ns1:Note>
    What I want is this:
    <Note>
    <Form>
    <Reference>
    <ReferenceNbr>1<ReferenceNbr>
    <ReferenceType>1<ReferenceType>
    </Reference>
    </Form>
    </Note>
    How can I get this result ?
    Kind regards.

    Did you try adding the the XmlSeeAlso annotation to the webservice
    @XmlSeeAlso({<package.name>.AccountIC.class})
    This will add the schema for the data type (AccountIC) to the WSDL.
    Hope this helps.
    -Ajay

  • 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.

  • Generated Class is not called by Inbound Proxy

    Uploading data to Ztable of ECC by using inbound proxy.
    The messages are tranfered to SAP ECC from SAP XI.
    Monitoring in SXMB_MONI in SAP XI DEV can see Success flag
    Monitoring in SXMB_MONI in SAP ECC can see inbound message stored in QUEUES only.
    I configured the Application Integration Engine as per the help document.
    In Reciever XI Adapter set the addressing type URL.
    Coding is correct in the method of the generated class.
    Let me know if any configurations yet to be done.
    Let me know how to proceed furthur.
    ThankYou in Advance.

    hi
    Go to SMQR of the ECC and register and activate the queues again.
    Also ensure that u are implementing the correct methods of the proxy
    EXECUTE-SYNCHRONOUS / EXECUTE-ASYNCHRONOUS
    rgds
    Arun

  • How to change generated class name when create binding files.

    I have a dtd file, which has lines like this:
    <!ELEMENT rights (
         %plain-text;
         | rights.owner
         | rights.startdate
         | rights.enddate
         | rights.agent
         | rights.geography
         | rights.type
         | rights.limitations
         )*>
         <!ELEMENT rights.type (%plain-text;)*>
    when i use xjc to create binding files, I got an error:
    trying to create the same field twice: value.
    I suspect that the reason is because the name of rights and rights.type.
    so, i'd like to know how can i control the generated class name. for example, i want to generate a class RightTypeEle for element rights.type. how can do that?
    btw, i use latest version of jaxb.
    Thanks in advance.

    hi Vincentq,
    What function are you using to create the attachment?  Have you looked at SAP_WAPI_ATTACHMENT_ADD?
    Cheers,
    Sue

  • Calling Stored Procedure w/JPublisher generated classes

    Hi,
    We are trying to pass Oracle nested tables as input/output parameters to several of our stored procedures to support bulk binding operations in the database from our applications. We have some database defined types and stored procedures that use these as input/output parameters which have been tested and working at the database level. I managed to get JPublisher to create these classes and compile fine, but I am not sure exactly how to register these classes as parameters with the stored procedure Java call. Any assistance is appreciated.
    Here is a sample of the db types/procedures:
    TYPE USER_APP_TYPE IS OBJECT
        User_ID             VARCHAR2(50), -- input fields
        App_ID              VARCHAR2(50),
        App_Type            VARCHAR2(50),
        App_Obj_ID          VARCHAR2(50),
        Status              VARCHAR2(30),   -- output fields
        Desc_String         VARCHAR2(255),
        Comments            VARCHAR2(255)
    TYPE USER_APP_LIST IS TABLE OF USER_APP_TYPE;
    CREATE OR REPLACE
    PACKAGE BODY PKG_MOD_BULK
    AS
        PROCEDURE LOOKUPAPPBYUSER_BULK(
            p_InOutRS   IN OUT  USER_APP_LIST)
        IS
            BEGIN
            ... do work - fill in output fields ...
            END LOOKUPAPPBYUSER_BULK;
    END PKG_MOD_BULK;So using JPublisher 3 classes were generated with constructors and getter/setter methods:
    UserAppType.java
    UserAppTypeRef.java
    UserAppList.java
    My consumer POC code looks like this:
    public class BulkBindingDemo
        @SuppressWarnings("CallToThreadDumpStack")
        public static void main(String[] args) 
            Connection conn = null;
            try
                String UserName = "user";
                String Password = "pass";
                // Load JDBC driver
                Class.forName("oracle.jdbc.OracleDriver");
                conn = DriverManager.getConnection("jdbc:oracle:thin:@mydatabse.com:1521:mysid", UserName, Password);           
                // Create instances of custom database UDT classes.
                UserAppList myAppList = new UserAppLicList();
                UserAppType[] myAppArr = new UserAppType[2];
                // Populate UDTs          
                myAppArr[0] = new UserAppType("bob" ,"acct","fiscal","1FG452ABC",null,null,null,null,null,null,null);
                myAppArr[1] = new UserAppType("joe","hr","benefits","89JTYG671",null,null,null,null,null,null,null);
                myAppList.setArray(myAppArr);                                               
                // Not sure how to set parameter as input/output.
                CallableStatement cs = conn.prepareCall("BEGIN MY_SCHEMA.PKG_MOD_BULK.LOOKUPAPPBYUSER_BULK(?); END;");
                cs.setObject("p_InOutRs", myAppLicList);
                cs.execute();
                ResultSet rs = cs.getResultSet();
                // Get results - null fields from above should be populated
                if (rs.first())
                    myAppList = (UserAppList)rs.getObject("p_InOutRs");
                    myAppArr = myAppList.getArray();
                    System.out.println("status:   " + myAppArr[0].getStatus());
                    System.out.println("desc str: " + myAppArr[0].getDescString());
                    System.out.println("comments: " + myAppArr[0].getComments());
                    // additional fields here..
                //MyObject[] myObjectAry = (MyObject[])p_myObjectArray.getArray();
                //cs.registerOutParameter(1,Types.CHAR);                      
            catch (Exception e)
                e.printStackTrace();
            finally
                if (conn != null)
                try { conn.close(); }
                catch (Exception e) {}
    }So this code will compile and run up to the stored procedure call itself, but I'm not sure how to set the parameters for in/out with these generated classes. Any ideas?

    Anyone? Still haven't figured this one out...

  • J2SE 1.4 generated classes on older JRE versions

    Maybe a newbie topic but is it normal that JDK 1.4 generated classes only work on the JRE 1.4 runtime environment ?
    If so, how do I compile to work on older runtime environments ?
    A link to a page with info on this would be most appreciated...

    Thanks,
    That was the link I was looking for.
    FYI : To make my applet run with the default JVM for Internet Explorer I had to compile to target 1.1 and strip the code from all Java 2 code. Strange, as I have IE 6.0 and you would expect it to come with a Java 2 runtime...
    Anyway, my first applet is on the Net now : http://www.ebo.bewoner.antwerpen.be/Shift/Game.html .
    I wonder if it works from other clients than mine...and especially other machines that a Windows PC !

  • 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 Chen

    Hi,
    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.

  • Problems generating classes with JAXB

    Does anyone know where there might be a list of known problems with generating classes from an xsd with JAXB? I have a very deep and pretty complicated xsd, and it seems some elements get generated correctly and some don't. It's very hard to find any pattern of why. Is there a limit to the number of levels deep it will go?

    Try here as well
    https://jaxb.dev.java.net/

Maybe you are looking for

  • How Can I Create an Event Link to a Page Tab?

    I have a portlet in one tab that generates an event. I want to be able to send this event to the same page but to another tab where another portlet resides. Here's the code snippet that creates the link. This code is part of a custom JSP tag. // Atte

  • Is there a way to listen to radio on iPod nano 7th gen with Bluetooth headphones?

    I know the iPod nano 7th gen uses the headphones as an antenna. I know there will need to be some sort of antenna attached. Does anybody know if there is an antenna on the market that can be plugged into the headphone jack that will allow audio to be

  • Strange circles in After Affects

    Hi, so i have been using after effects for quite a while, and sometimes there are these circles that appear on the layer and I cant get rid of them unless I restart after effects. Does anybody know why this is happening? Here is a screen shot, I was

  • Updater failed to install

    All, I am having a problem with the Adobe Updater. The following banner message is received on my Mac: A new version of the adobe updater is available for installation. Click OK to install it now Note: you may be required to authenticate in order to

  • Installation of this package failed (Service Pack 2 for Microsoft Office Web Apps (KB2687470) 64-bit edition

    Hi there, On my SharePoint 2010 server I have Office Web Apps 2010 installed (NOT Microsoft Office). When I try to install OWA SP2 (KB2687470) I get this error: --- Logs show some errors at C:\Users\ext.magryan\AppData\Local\Temp\3\Wac Server Setup(2