JAXB Binding problem

Am having trouble building an external binding file to cope with the following xsd extract
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="urn:hl7-org:v3" xmlns="urn:hl7-org:v3" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:hl7="urn:hl7-org:v3" xmlns:xlink="http://www.w3.org/TR/WD-xlink" xmlns:gsd="http://aurora.regenstrief.org/GenericXMLSchema" elementFormDefault="qualified">
     <xsd:complexType name="ANY" abstract="true">
          <xsd:attribute name="nullFlavor" type="cs_NullFlavor" use="optional"/>
     </xsd:complexType>
     <xsd:simpleType name="cs_NullFlavor">
          <xsd:restriction base="cs">
               <xsd:enumeration value="NI"/>
               <xsd:enumeration value="NA"/>
               <xsd:enumeration value="UNK"/>
          </xsd:restriction>
     </xsd:simpleType>
     <xsd:simpleType name="cs_AddressPartType">
          <xsd:restriction base="cs">
               <xsd:enumeration value="DEL"/>
               <xsd:enumeration value="STTYP"/>
               <xsd:enumeration value="STR"/>
               <xsd:enumeration value="ADDRK"/>
          </xsd:restriction>
     </xsd:simpleType>
     <xsd:complexType name="AD" mixed="true">
          <xsd:complexContent mixed="true">
               <xsd:extension base="ANY">
                    <xsd:sequence>
                         <xsd:choice minOccurs="0" maxOccurs="unbounded">
                              <xsd:element name="streetName">
                                   <xsd:complexType mixed="true">
                                        <xsd:complexContent mixed="true">
                                             <xsd:restriction base="ADXP">
                                                  <xsd:attribute name="partType" type="cs_AddressPartType" fixed="STR"/>
                                             </xsd:restriction>
                                        </xsd:complexContent>
                                   </xsd:complexType>
                              </xsd:element>
                              <xsd:element name="streetNameType">
                                   <xsd:complexType mixed="true">
                                        <xsd:complexContent mixed="true">
                                             <xsd:restriction base="ADXP">
                                                  <xsd:attribute name="partType" type="cs_AddressPartType" fixed="STTYP"/>
                                             </xsd:restriction>
                                        </xsd:complexContent>
                                   </xsd:complexType>
                              </xsd:element>
                         </xsd:choice>
                    </xsd:sequence>
               </xsd:extension>
          </xsd:complexContent>
     </xsd:complexType>
     <xsd:simpleType name="cs_BinaryDataEncoding">
          <xsd:restriction base="xsd:NMTOKEN">
               <xsd:enumeration value="B64"/>
               <xsd:enumeration value="TXT"/>
          </xsd:restriction>
     </xsd:simpleType>
     <xsd:complexType name="BIN" abstract="true" mixed="true">
          <xsd:complexContent mixed="true">
               <xsd:extension base="ANY">
                    <xsd:attribute name="representation" type="cs_BinaryDataEncoding" use="optional" default="TXT">
                    </xsd:attribute>
               </xsd:extension>
          </xsd:complexContent>
     </xsd:complexType>
     <xsd:complexType name="ED" mixed="true">
          <xsd:complexContent mixed="true">
               <xsd:extension base="BIN">
                    <xsd:attribute name="mediaType" type="cs" use="optional" default="text/plain">
                    </xsd:attribute>
                    <xsd:attribute name="language" type="cs" use="optional">
                    </xsd:attribute>
               </xsd:extension>
          </xsd:complexContent>
     </xsd:complexType>
     <xsd:complexType name="ST" mixed="true">
          <xsd:complexContent mixed="true">
               <xsd:restriction base="ED">
                    <xsd:attribute name="mediaType" type="cs" use="optional" default="text/plain">
                    </xsd:attribute>
                    <xsd:attribute name="language" type="cs" use="optional">
                    </xsd:attribute>
               </xsd:restriction>
          </xsd:complexContent>
     </xsd:complexType>
     <xsd:complexType name="ADXP" mixed="true">
          <xsd:complexContent mixed="true">
               <xsd:extension base="ST">
                    <xsd:attribute name="partType" type="cs_AddressPartType">
                    </xsd:attribute>
               </xsd:extension>
          </xsd:complexContent>
     </xsd:complexType>
     <xsd:simpleType name="cs">
          <xsd:restriction base="xsd:token">
               <xsd:pattern value="[^\s]*"/>
          </xsd:restriction>
     </xsd:simpleType>
</xsd:schema>
Above is a very much truncated extract of our xsd file
I get XJC errors around 'streetNameType'
any ideas on a binding definition that works with this ??
Thanks

This is the SAMPLE schema - that includes the earlier post
(ie the earlier post shows datatypes.xsd)
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:hl7-org:v3" xmlns="urn:hl7-org:v3" xmlns:hl7="urn:hl7-org:v3" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
     <xs:include schemaLocation="datatypes.xsd"/>
     <xs:element name="rootTest" type="test.smTest"/>
     <xs:complexType name="test.smTest">
          <xs:sequence>
               <xs:element name="id" type="xs:anySimpleType"/>
               <xs:element name="addr" type="AD" minOccurs="0"/>
          </xs:sequence>
     </xs:complexType>
</xs:schema>

Similar Messages

  • Can't create a JAXB binding for ejb-jar.xml using xjc

    Hi all,
    I have been trying to build a JAXB binding for EJB deployment descriptors, mainly because I have to update a hand-cranked ejb-jar.xml file on the fly with some additions that have come from a code generator.
    I have tried to use
    xjc ejb-jar_2_1.xsd j2ee_1_4.xsd ejb-jar_2_1.xsd
    xjc on the schema definitions I found at http://java.sun.com/xml/ns/j2ee/ but I can't get it to work. It produces reams of errors, see below for a short extract.
    Of course, someone could put me out of my misery and tell me where to find a binding that someone else has done. I can't be the first chimp on the planet that has wanted to do this!
    Any help much appreciated.
    errors:
    [WARNING] warning: "blockDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: "finalDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 117 of j2ee_web_services_client_1_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 115 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 129 of ejb-jar_2_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 145 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 159 of ejb-jar_2_1.xsd

    Exception initializing 'oracle.dbtools.raptor.MonitorJDBCAddin' in extension 'Oracle SQL Developer': oracle.classloader.
    util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.jdbc.OracleDriverThe Oracle driver is not on the classpath.

  • JAXB binding schema problem

    hi friends,
    i didn't get implementation classes for xsd during the binding schema.i insatlled Jwsdp2.0and j2sdk1.5.Is any give me me an idea

    Hi
    Go through the sun website for doing so. This would give you a clue as to how to.
    http://java.sun.com/xml/jaxb/jaxb-docs.pdf
    It teaches you a step by step procedure to go ahead.

  • JAXB binding list of doubles

    Hi, I have a problem in binding elements containing a list of doubles. The elements may occur many times. In the generated code, doubles from different elements are returned in the same list. Is there any way to force the creation of a new java type, so that doubles from different elements can be accesed separately?
    Example:
    XSD:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         elementFormDefault="qualified">
         <xsd:element name="main">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element name="foo" type="foo"/>
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:complexType name="foo">
              <xsd:sequence>
                   <xsd:element name="bar" type="doubleArray" minOccurs="1" maxOccurs="unbounded"/>
              </xsd:sequence>
         </xsd:complexType>
         <xsd:simpleType name="doubleArray">
              <xsd:list itemType="xsd:double"/>
         </xsd:simpleType>
    </xsd:schema>
    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <main xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="forum.xsd">
         <foo>
              <bar>1 2 3</bar>
              <bar>4 5 6</bar>
              <bar>7 8 9</bar>
         </foo>
    </main>Generated code:
         * Objects of the following type(s) are allowed in the list
         * double
        java.util.List getBar();Method getBar returns a list containing all the doubles from all the bar elements, instead of returning a list of objects of type Bar, where each object at its turn contains a list of doubles.
    Thank you

    Rogier_de_Groot wrote:
    So if you wanted to generate an XML document like I wanted to do, you'd use something other then JAXB?I have no idea. I haven't ever had any use for XML-to-Java mappings like that. And I don't know what your requirements are; it seems to me like JAXB would do but you have some complaints which appear in my opinion to be non-critical. I certainly wouldn't start writing a JAXB clone just based on what you posted here. For me, if it works and removes the requirement for me to do 6 months of design and development, I'm willing to overlook a few things.

  • XML JAXB Binding issue

    Hi All
    Im using Webservices in which i need to Bind my XML to Java objects and reverse. Im trying to use JAXB (1.0) Ref Imp from SUN as binding framework. The problem which im facing is that for elements like:
    <xs:element name="inputRequests">
    <xs:complexType>
    <xs:sequence>
    <xs:element maxOccurs="unbounded" name="inputData" type="data" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    JAXB genetrates:
    1. InputRequest - Interface
    2. InputRequestImpl - Class
    3. InputRequestType - Interface
    4. InputRequestTypeImpl - Class
    in InputRequestType it has generated a getter method
    public java.util.List getInputData();
    but no setter method for 'inputData'.
    Can any one help on that how we can set a sequence element in JAXB classes. I even used JAXB 2.0, but faced same issue...
    No Setter for a LIST :-(((

    That method, getInputData() is returning a reference to a List Object that is already instantiated. Once you retrieve the reference, you can invoke all the methods in the List interface, but if there is a way to reassign the reference to refer to a different list, I'm not aware of one.
    I believe that limitation is necessary my the nature of JAXB. A JAXB Object, in your case a List, is guaranteed to be marshaled and unmarshaled to XML, if you redefine the reference to some arbitrary List, how could JAXB guarantee its functionality?
    I may be way off base here, I'm no JAXB expert by any means.
    Rather than redefining the reference to a different List, you have to manipulate the List
    ...getInputData().clear();
    ...getInputData().addAll(myRequestList);Right?

  • JAXB-marshalling problem

    I am trying to use JAXB for binding. The schema compiler works ok i.e i have got the classes generated but when now when i try to apply marshalling i get an error
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableObject
    could anyone help what could be the problem with this.
    Any help is appreciated.
    satya

    i am also getting the same error
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at NodeLister.main(NodeLister.java:46)
    i do not know what to do now...i am stuck

  • Toplink-JAXB Unmarshal problem :SAXPlatform  createPlatformDefaultSequence

    Hi All,
    I'm trying to import some classes (generated by JAXB out of an XSD) into Toplink-Relational project and unmarshal the XML contents. But I get the following exception.
    07/01/22 13:13:18 javax.xml.bind.JAXBException: Provider oracle.toplink.ox.jaxb.JAXBContextFactory could not be instantiated: Exception [TOPLINK-7147] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationException
    Exception [TOPLINK-7147] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationException
    Exception Description: Platform SAXPlatform cannot create platform default sequence - it doesn't override createPlatformDefaultSequence method
         at oracle.toplink.exceptions.ValidationException.createPlatformDefaultSequenceUndefined(ValidationException.java:1515)
         at oracle.toplink.internal.databaseaccess.DatasourcePlatform.createPlatformDefaultSequence(DatasourcePlatform.java:540)
         at oracle.toplink.internal.databaseaccess.DatasourcePlatform.getDefaultSequence(DatasourcePlatform.java:479)
         at oracle.toplink.internal.sequencing.SequencingManager.getDefaultSequence(SequencingManager.java:917)
         at oracle.toplink.internal.sequencing.SequencingManager.onConnectAllSequences(SequencingManager.java:713)
         at oracle.toplink.internal.sequencing.SequencingManager.onConnect(SequencingManager.java:602)
         at oracle.toplink.publicinterface.DatabaseSession.initializeSequencing(DatabaseSession.java:115)
         at oracle.toplink.publicinterface.DatabaseSession.initializeDescriptors(DatabaseSession.java:341)
         at oracle.toplink.publicinterface.DatabaseSession.initializeDescriptors(DatabaseSession.java:330)
         at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:512)
         at oracle.toplink.ox.XMLContext.buildSession(XMLContext.java:120)
         at oracle.toplink.ox.XMLContext.<init>(XMLContext.java:73)
         at oracle.toplink.ox.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:9)
         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:585)
         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:96)
         at javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:229)
         at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
         at oracle.epcis.services.queryservice.executor.ScheduledQueryExecutor.parseXML(ScheduledQueryExecutor.java:111)
         at oracle.epcis.services.queryservice.EPCISServicePortTypeImpl.subscribe(EPCISServicePortTypeImpl.java:36)
         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:585)
         at oracle.j2ee.ws.server.ImplInvocationHandler.invoke(ImplInvocationHandler.java:126)
         at $Proxy1.subscribe(Unknown Source)
         at oracle.epcis.services.queryservice.runtime.EPCISServiceBinding_Tie.invoke_subscribe(EPCISServiceBinding_Tie.java:450)
         at oracle.epcis.services.queryservice.runtime.EPCISServiceBinding_Tie.processingHook(EPCISServiceBinding_Tie.java:952)
         at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:287)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:356)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:283)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:272)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:94)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:128)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:170)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    07/01/22 13:13:18 --------------- linked to ------------------
    Can anyone please let me know the solution for this..?
    Thanks
    Rajasekaran

    Adding some more information for the same problem.....
    I tried to add the sequence like this.. But It doesnt helps..
    DatasourceLogin login = (DatasourceLogin)session.getDatasourceLogin();
    TableSequence seq = new TableSequence();
    seq.setName("OBJECT_EVENT_SEQ");
    seq.setTableName("OBJECTEVENT");
    seq.setNameFieldName("GUID");
    seq.setCounterFieldName("GUID");
    login.setDefaultSequence(seq);
    Can any one please throw some light into this problem ASAP..?
    Thanks
    Rajasekaran

  • JAXB unmarshall problem - beginner

    Hi Im having real pain trying to get unmarshall to work with JAXB with a very simple set up..
    My DTD looks like
    <!ELEMENT CXMLRESULT (MESSAGE)>
    <!ELEMENT MESSAGE (#PCDATA)>
    and xjs like
    <xml-java-binding-schema version="1.0ea">
    <element name="CXMLRESULT" type="class" root="true">
    </xml-java-binding-schema>
    I create an object marshall it and output to a file.. All looks good. This results in the following in the file..
    <CXMLRESULT>
    <MESSAGE>hello</MESSAGE></CXMLRESULT>
    However when I try to read in that file and unmarshall it I run into problems.. Although I receive NO error during the unmarshall, when I do a toString() afterwards then it does not display the MESSAGE element, and similarly trying to validate the object says that MESSAGE hasn't been detected.. I cannot figure out why this is.. The file was written out by JAXB so how come it cant read it back in.. For my unmarshall I do ...
    CXMLRESULT cxmlresult=new CXMLRESULT();
    try{
    try{
    input=new File("/in.xml");
    fileInputStream=new FileInputStream(input);
    } catch (IOException e)
    { System.out.println("error with file"); }
    cxmlresult.unmarshal(fileInputStream);
    } catch(UnmarshalException e) {
    e.printStackTrace();
    System.out.println(cxmlresult.toString());
    Doing this just shows a CXMLRESULT and not the MESSAGE element..
    Any ideas ?
    Mark

    Try this:
    CXMLRESULT cxmlresult = CXMLRESULT.unmarshal(fileInputStream);Dave

  • Read only inputText binding problem

    Hi all
    I have a h:inputText like below
    <h:inputText readonly="true" id="txtStudentId" value="#{student.id}"/>then using a Java script I change the value of this textbox.
    But when retrieve the value from backbean It's not changed. The problem is associated with read only attribute.
    When it's not read only it works.
    Can some one explain this?

    Thank You BALUSC, Your solution worked!
    Nice idea
    JSP
    <script>
                            function changeTest()
                                document.getElementById("form1:textField1").value = "text Changed";
                                document.getElementById("form1:hidden1").value = "text Changed";
                                return false;
    </script>
    <webuijsf:form id="form1">
                            <h:inputText id="textField1" readonly="true" />
                            <h:inputHidden binding="#{ReadOnly_inputField.hiddenField}" id="hidden1" />
                            <h:commandButton id="button1" value="Channge Value" onclick="return changeTest();"/>
                            <h:commandButton action="#{ReadOnly_inputField.button2_action}" id="button2"value="Check Value"/>
                        </webuijsf:form>ReadOnly_inputField.java
    private HtmlInputHidden hiddenField;
        public HtmlInputHidden getHiddenField()
            return hiddenField;
        public void setHiddenField(HtmlInputHidden hiddenField)
            this.hiddenField = hiddenField;
        public String button2_action()
            System.out.println("This is the value : "+ hiddenField.getValue());
            return null;
        }And your Blog. It's really really helpful.

  • JAXB compiler problem in handling xsd:any and nillble = "true"

    Dear all,
    i am using jdeveloper 10.1.3.1 production release version.
    i am designing a xml schema that contain element of attribute nillable="true", for extensible, contain tag <xsd:any>.
    but i encounter 2 problem:
    1. for xml schema element with attribute nillable="true", no corresponding isNil(), setNil
    method is generated (refer to jaxb 1.0 spec. 5.7.1)
    2. cannot handle tag <xs:any> that generate incorrect java source code (cannot compile) [refer to jaxb 1.0 spec 5.9.5)
    *** i have add jaxb customization tag inside the <xs:any> tag
    ***   <xs:annotation><xs:appinfo>
    ***               <jaxb:property name="Extension"/>
    ***</xs:appinfo></xs:annotation>
    Does oracle's JAXB implementation conform to the JAXB 1.0 spec?
    Is it a known bug?
    Could anybody help me?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Refer to section
    E.2 Not Required XML Schema
    concepts
    "A JAXB implementation is not required to support the following XML Schema
    concepts for this version of the specification. A JAXB implementation may
    choose to support these features in an implementation dependent manner."
    E.2.2 Not supported while manipulating the XML
    content
    Schema component: wildcard
    (any)
    how can i know if an xml element with xsi:nil="true" (unmarshal)
    and set xsi:nil="true" for an element (marshal) ?
    According to the JAXB 1.0 specification:
    If {nillable} is "true", the methods setNil() and isNil() are
    generated.

  • 10g Signal Handlers and Dynamic Binding Problems on Mac OS X

    I have the following env vars set up, and it seems the client libs show a deadl\
    ock behavior post installation. SqlPlus exhibits a similar problem with 10g cli\
    ent libs on the Mac, since it simply hangs for 20 secs before returning the pro\
    mpt. I have G4 10.3.4 Mac, and 3.3 (1640) gcc, and still haunted by this probl\
    em...
    ORACLE_HOME=/Users/Oracle/10g/orahome
    ORACLE=ORACLE_HOME/bin
    ORACLE_BASE=/Users/Oracle/10g
    DYLD_LIBRARY_PATH=/Users/Oracle/10g/orahome/lib
    a) ktrace sqlplus user/pass@db
    b) kdump -R | grep sigaction gives:
    885 sqlplus 5.877734 CALL sigaction(0x2,0xbffff500,0xbffff570)
    885 sqlplus 0.001252 RET sigaction 0
    885 sqlplus 0.002032 CALL sigaction(0xd,0xbfff90f0,0xbfff9160)
    885 sqlplus 0.001831 RET sigaction 0
    885 sqlplus 0.001293 CALL sigaction(0x12,0xbfffb6e0,0xbfffb750)
    885 sqlplus 0.001234 RET sigaction 0
    885 sqlplus 0.001551 CALL sigaction(0x12,0xbfffbda0,0xbfffbe10)
    885 sqlplus 0.001401 RET sigaction 0
    885 sqlplus 0.001331 CALL sigaction(0x2,0xbfffd090,0xbfffd100)
    885 sqlplus 0.001333 RET sigaction 0
    This shows a 5.9 sec delay for the first sigaction, and a full response is received some long 20 secs later on the prompt.
    Some feedback from engineering regarding this issue since the 9i release has been:
    "This is a known problem with signal handlers and the lazy binding we have on Mac OS X. A small change to how Oracle library's signal
    handler is installed using _signal_nobind(3) and
    _dyld_lookup_and_bind_fully(3) could help to solve this problem.
    The problem that we are trying to avoid is a possible dead lock from
    code that could be called in a signal handler when the thread that
    gets the signal is in the middle of lazy binding a symbol. So when a
    signal handlers installed the default action is to cause it to be
    bound fully. This is made very expensive by the mismatch of the
    interfaces to signal(3) and segvec(2) like routines which are passed
    an address and the dynamic linker that wants a global symbol name. So the end result is to call the routine _dyld_bind_fully_image_containing_address(3) with the address of the signal handler to be bound. Which binds everything in the image (in this case the Oracle shared library).
    We have had problems like this before. For example: [This is what is
    done in usleep(3)]
    usleep()
    /* code removed for this example */
    setvec(vec, sleepx);
    #ifdef __DYNAMIC__
    _dyld_lookup_and_bind_fully("_usleep", NULL, NULL);
    (void) _sigvec_nobind(SIGALRM, &vec, &ovec);
    #else
    (void) sigvec(SIGALRM, &vec, &ovec);
    #endif
    static void sleepx(int unused)
    ringring = 1;
    The use of _sigvec_nobind(2) (or _signal_nobind(3) ) and the use of
    _dyld_lookup_and_bind_fully(3) will cause just the needed symbols used by the signal handler. "
    It seems this issue hasn't been resolved in the most recent 10g client release.Can anyone shed some light one this issue?
    For better demonstration, here is a series of steps we took here:
    sigaction.c - C file produced by "proc sigaction.pc"
    sigaction.pc - ProC source file
    gcc_sig* - Shell script to compile sigaction.c
    ktrace.sigtest - raw ktrace output from running sigtest
    ktrace.sqlplus - raw ktrace output from running sqlplus
    kdump.sqlplus - output of kdump -R on ktrace.sqlplus
    kdump.sigtest - output of kdump -R on ktrace.sigtest
    sigaction.lis - auxiliary file produced by proc
    1. sigaction.pc:
    #include <stdio.h>
    #include <stdlib.h>
    #include "/Users/oracle/10g/orahome/precomp/public/sqlca.h"
    int main(int argc, char **argv) {
    char user[30], passwd[30], db[40];
    char con_str[100], date[10], *icp;
    strcpy(user, "XXXXXXXX");
    strcpy(passwd, "XXXXXXXX");
    strcpy(db, "db_name");
    sprintf(con_str,"%s/%s@%s",user,passwd,db);
    EXEC SQL CONNECT :con_str;
    EXEC SQL SELECT SYSDATE INTO :date FROM DUAL;
    printf("SYSTEM DATE = %s\n",date);
    EXEC SQL COMMIT RELEASE;
    2. gcc_sig:
    #!/bin/sh
    CFLAGS="-I$ORACLE_HOME/precomp/public -I/usr/include"
    CFLAGS="$CFLAGS -I$ORACLE_HOME/lib -L$ORACLE_HOME/lib"
    ORALIBS="-L$ORACLE_HOME/lib -lclntsh $ORACLE_HOME/lib/nautab.o $ORACLE_HOME/lib/naeet.o"
    CC="gcc -g"
    PROG=$1
    OUTPUT=$2
    $CC $CFLAGS $PROG -o $OUTPUT $ORALIBS
    3. Generate the rest of the output files for your viewing of the results based on the commands provided above.
    Thanks!

    It's a delay, not a deadlock, that originatesfrom the way Oracle
    libraries handle dymaic bindings.to "dynamic" bindings. Maybe prebinding could help ?
    export DYLD_PREBIND_DEBUG=1ronr@[email protected]:/Users/ronr
    sqlplus "/ as sysdba"dyld: sqlplus: prebinding disabled because library: /Users/oracle/product/server/10.1/lib/libsqlplus.dylib got slid
    dyld: in map_image() determined the system shared regions ARE used
    dyld: 2 two-level prebound libraries used out of 5
    Ronald
    http://homepage.mac.com/ik_zelf/oracle/

  • Error in Jaxb binding for wsdl document

    Hello
    below is my wsdl and binding.xjb that I am using. I want to rename the " <element name="getRelatedAssets">" name from 'getRelatedAssets' to 'getRelatedAssetsX'.
    But when I run it i got the following error
    [ERROR] compiler was unable to honor this property customization. It is attached to a wrong place, or its inconsistent with other bindings.
    [ERROR] (the above customization is attached to the following location in the schema)
    line 16 of file:/C:/Users/syedf/Documents/Checkers/4842/sample.wsdl
    Here is my wsdl:
    <wsdl:definitions targetNamespace="http://services.external.dmh.ibm.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.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:types>
    <schema elementFormDefault="qualified" targetNamespace="http://services.external.dmh.ibm.com"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <complexType name="WsaaAuthToken">
    <sequence>
    <element name="authToken" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    <element name="getRelatedAssets">
    <complexType>
    <sequence>
    <element name="token" nillable="true" type="impl:WsaaAuthToken"/>
    <element name="anchorAsset" nillable="true" type="impl:WsaaAssetKey"/>
    <element name="relationshipName" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    </wsdl:definitions>
    and here is my binding file:
    <jaxws:bindings
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    wsdlLocation="C:\Users\syedf\Documents\Checkers\4842\sample.wsdl">
         <jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema">
              <jaxb:bindings node="//xsd:element[@name='getRelatedAssets']">
    <jaxb:property name="getRelatedAssetsX"/>
    </jaxb:bindings>               
    </jaxws:bindings>
    </jaxws:bindings>
    Can anyone help me out in finding what wrong I am doing.
    I appreciate.

    Well, As I mentioned There is an element named 'getRelatedAssets' and I want to rename it to some other name like 'getRelatedAssetsXXXXX' which would not be in Schema using jax binding.
    Note. When I manually change the name to 'getRelatedAssetsXXXXX' in WSDL, it works. but I want to make it using jaxbinding.
    Anyways,Thanks for the reply.

  • Binding Problem in web dynpro ABAP

    Hi
    I have problem in table binding. I have created node and added attributes from ztable. The node is binded with the view table. Now my requirement is one field should be drop down in table and it should be binded with one attribute but that binded attribute is indifferent table. Is it possible? .. I have tried this but dump occured. Please guide me to get this.
    Thanks
    Indiranjithn

    nope, i don't have an ebook for WD.. but if you explain your issue, someone here may be able to help.

  • JAXB (XJC) problem with Java 1.4.2_02

    Hi,
    I am trying to migrate our system to Java version 1.4.2_02 (currently using 1.4.1_02). We use XJC from JAXB to compile XML schema files into java classes. JAXB is packaged in JWSDP (we are using version 1.3). I am currently experiencing a problem whereby if I use java version 1.4.2_02 and run XJC on the xml schema file its not generating any of the inner classes. All classes including inner are generated properly if I am pointing 1.4.1_02.
    Just wondering if you came across this problem before and would know of a possible solution.
    thanks for your help
    Manish

    I was having this problem as well. I extracted the MSI from the InstallShield and found that it's looking for a property called "SystemFilesLocked" to equal 1. If you pass it as a parameter and give it a value of 0, this error message doesn't appear. I've installed now to 15 W2K desktops without any issues.
    The 'silent installation' documentation for this product is sorely lacking. The install string I'm using is below:
    j2re-1_4_2_03-windows-i586-p.exe /S /v/qn"ADDLOCAL=jrecore SYSTEMFILESLOCKED=0 CONTROLPANELLOCKED=1 SKDSILENT=1 IEXPLORER=0 SYSTRAY=0 REBOOT=Suppress JAVAUPDATE=0 JAVAJAVAWLOCKED=0 WEBSTARTICON=0 /L C:\TEMP\LogFiles\JRE_JWS_142_03.log"
    Hope this helps...

  • Flashbuilder 4 Beta 2 / Data binding problems

    Hello,
    i´m trying the first time FB 4 beta and i have a problem with the data services.
    I have cerated a cfc on coldfusion 8 returning data from an SQL-Server. The service is imported well and also the test works an returns the right data.
    But when i bind this service to any Control like a data grid, i get an error by compiling:
    Error 1180 datagrid_creationCompleteHandler not defined
    The code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" xmlns:st_gruppeservice="services.st_gruppeservice.*">
    <fx:Script>
      <![CDATA[
       import mx.controls.Alert;
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:CallResponder id="getAllST_GRUPPEResult"/>
      <st_gruppeservice:ST_GRUPPEService id="sT_GRUPPEService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:DataGrid x="82" y="145" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllST_GRUPPEResult.lastResult}">
      <mx:columns>
       <mx:DataGridColumn headerText="NAME" dataField="NAME"/>
       <mx:DataGridColumn headerText="INFO" dataField="INFO"/>
      </mx:columns>
    </mx:DataGrid>
    </s:Application>
    I think, i have build the project the same way as in adobe labs described. And also, the test works so the service is configured right.
    Any Idea?
    Regards

    Sunil,
    attached the two log files.
    If i remove the CDATA-Block, i get also the error 'Property alert not found'.
    Additional Infos:
    Environment: German
    Client system: Windows 7
    Server: Coldfusion 8 on IIS (Windows 2003)
    Regards
    Thomas

Maybe you are looking for

  • Xf86-video-intel disable tv

    I am on a lenovo T61 laptop.  I was running xorg 1.2 (current) without any xorg.conf with kde and everything worked fine, i had the right resolution of 1440x900, except i had no video acceleration ( intel 965 chipset/X3100). I did Xorg -configure to

  • Late 2007 Macbook hangs or stutters following recent Leopard update

    After running the software update process on my late 2007 Macbook, the computer seems to stutter. It will do something like respond to a mouse click for a very brief period of time, then hang for 20 to 30 seconds. Just trying to open Safari takes a h

  • Air Tunes or Something Similar on a B&W G3

    Hi, I'm looking for a way to wirelessly transmit music from my B&W G3 to my stereo or a set of powered speakers. Would Air Tunes be the answer, and is it compatible with my Mac? Thanks. Werz

  • Message Queuing in XI

    Hello We are having multiple interfaces going through XI connecting multiple legacy systems to R/3. Message exchange occurs from multiple systems to and fro to R/3. Can it be possible to have a dedicated queues to individual legacy systems e.g. AS/40

  • What happens to the cube performance when you have too many UDAs?

    Hi, what's the impact on the cube performance if you have too many UDAs associated with the same level of members? Let's say 15 UDAs for each member If attribute is not an option, what's another way to help alleviate the data load?