Building XML document error

Hi.
I am bulding a XML Document but i am getting this error: Error in building: Not logged in. Why? In my PC it works well, but when I try run on NT server I get the error.
The class is very simple:
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import org.xml.sax.InputSource;
public class ReadXmlDocument {
private Document objXmlDocument;
public void setXmlDocument() throws JDOMException {
if ( getFileName() != null ) {
SAXBuilder builder = new SAXBuilder();
objXmlDocument = builder.build( getFileName() );
} else {
throw new NullPointerException("File name has not been setted");
Thanks.

For those that care, I found the solution/workaround.
This is an actually bug........... http://developer.java.sun.com/developer/bugParade/bugs/4880236.html
THe workaround is listen in the prroblem statement and is really simple.
Instead of passing a File into the pass a FileInputStream
CUSTOMER SUBMITTED WORKAROUND :
/** Since the java 2 sdk java.io.* package is keen on UNC paths the following
workaroung is quite simple and effective*/
java.io.File fileHandler = new
java.io.File("\\\\Network_name\\Share_name\\file_name.xml");
javax.xml.parsers.DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
try {
javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder();
//Create a new FileInputStream from the file handler
java.io.FileInputStream FIS = new java.io.FileInputStream(fileHandler);
//The parse function takes an InputStream as well
org.w3c.dom.Document xmlDoc = builder.parse(FIS);
catch (SAXException sxe) {
System.err.println("SaxException");
} catch (ParserConfigurationException pce) {
System.err.println("ParserConfigurationException");
} catch (IOException ioe) {
System.err.println("IOException");
This worked for me with SAXBuilder too

Similar Messages

  • Error while building xml document

    Hi Everyone,
    I have a problem while building xml document.
    I have developed my java files using IBM Eclipse 3.0 and i had no problem while executing the files.
    But while i am trying to execute the same code in jdk/bin, xml document is not working..
    No error encountered while compiling but while executing when i try to print the xml string it just gives the root element name like [root : null]
    Can anyone suggest some solution?

    To the values element add xmlns:xsi and xsi:noNamespaceSchemaLocation.
    <values xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:noNamespaceSchemaLocation="file:///c:/schema.xsd">schema.xsd is schema file.

  • Large XML Document Error

    We are using Oracle's XSQL servlet engine 9.0.2.0.0A to query an Oracle Database using xsql:include-owa. This xsql document uses a custom serializer to write the resulting XML to a file on the webserver. We have run into a problem with writing XML documents larger than approximatly 7MB. The file is written but just contains a Malformed XML Document error. We have tried tracking down the problem and it seems to be occuring before the custom serializer is given control of the document. Attached below is the xsql document and the Java source of our serializer if it would be of any help.
    -Eric Dalquist
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="simple_transform_xml.xsl" serializer="XMLWriter"?>
    <BASE_TAG connection="XXXXXXXX" xmlns:xsql="urn:oracle-xsql">
        <xsql:set-page-param name="save-file" value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/applInfo.xml"/>
        <xsql:include-owa >
            STUDEV.STUADMSDSET.P_GET_RECRUIT_INFO('A','C');
        </xsql:include-owa>
    </BASE_TAG>-----------------------------------------
    * Author:        Eric Dalquist
    * E-Mail:        [email protected]
    * Date Created:  10-03-2001
    * Last Modified: 10-03-2001
    * Modified By:   Eric Dalquist
    * Description:   This class writes out the contents of the final document produced by the xsql servlet.
    package com.mtu.XSQLSerializers;
    import java.io.FileOutputStream;
    import oracle.xml.xsql.*;
    import oracle.xml.parser.v2.XMLDocument;
    import org.w3c.dom.Document;
    * <P>
    *    XMLWriter is an implementation of the abstract XSQLDocumentSerializer class. It is passed a refrence to a DOM Document
    *    and the servlet environment. The XMLWriter takes the document and writes it out to the servlet's output stream. There
    *    is also the option that the saveFile xsql page parameter can be set to a fully qualified path and file name to write the
    *    document to.
    * </P>
    * <P>
    *    Here is an example of setting the saveFile page paramter. This line would be the first tag inside the root xsql servlet tag.
    * </P>
    * <PRE>
    *    &#060;xsql:set-page-param name="save-file" value="/u01/oracle/ias10210/xdk/java/xsql/Repository/Course_List/XMLDocument.xml"/&#062;
    * </PRE>
    * @author  Eric B. Dalquist
    * @version 1.0 10/03/2001
    public class XMLWriter implements XSQLDocumentSerializer
        /** the header we send if we are returning XML */
        private static final String MIME_XML = "text/xml";
        /** the name of the page parameter we look for to get the path and name to save the XML document to */
        private static final String ATTR_FILE = "save-file";
         * The serialize is called by the servlet engine and is passed the DOM Docuement result
         * from the XSLT transformation if there was one and a refrence to the XSQL servlet environment
         * @param doc The document representation of the XML output of the xsql servlet.
         * @param env A refrence to the servlet's environment.
         * @throws Throwable Any unhandled error is handled by the servlet by default.
        public void serialize(Document doc, XSQLPageRequest env) throws Throwable
            System.out.print("start ... ");
            FileOutputStream fos = null;
            String reqType = env.getRequestType();
            String saveFile = env.getParameter(ATTR_FILE);
            if (!reqType.equals("Command Line"))
                env.setContentType(MIME_XML);
                ((XMLDocument)doc).print(env.getOutputStream());
                env.getOutputStream().close();
            if (saveFile != null && !saveFile.equals("") && saveFile.indexOf("..") == -1 && saveFile.indexOf("~") == -1)
                fos = new FileOutputStream(saveFile);
                ((XMLDocument)doc).print(fos);
                fos.close();
            System.gc();
            System.out.println("end");
    }

    Technically DBMS_XMLSAVE and it's alter ego DBMS_XMLQUERY are not considered part of XML DB. DBMS_XMLSAVE and DBMS_XMLQUERY are legacy Java implementations.
    In 9.2.x these routines were replaced by DBMS_XMLSTORE and DBMS_XMLGEN which are written in 'C' and should be much faster in most cases and address a number of limitations inherant in the older implementations. DBMS_XMLSTORE and DBMS_XMLGEN are part of XML DB and the minimum supported release for XML DB is 9.2.0.3.0.
    DBMS_XMLSAVE issues are addressed in the TECH/XML forum
    http://forums.oracle.com/forums/category.jspa?categoryID=51

  • JDBC - No 'action' attribute found in XML document - error

    Hi,
    I'm trying to write to SQL Server form File
    I successfully read from file, but fail to write.
    <b>My XML is :</b>
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:SD_NEZIGA_OUT_MT xmlns:ns0="ssss.co.il:SD:Office_core_Neziga"><statement2 action="INSERT"><table>Employees</table><access><ID>000009</ID><Name>&#1497;&#1493;&#1504;&#1505;&#1497; &#1512;&#1493;&#1514;&#1497;</Name><Phone>972528288840</Phone><Manager>001037</Manager><DistManager>001037</DistManager><Password>D</Password><UserType>0</UserType><miskalID>0000</miskalID></access></statement2></ns0:SD_NEZIGA_OUT_MT>
    <b>Error from JDBC adapter:</b>
    TransformException error in xml processor class: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
    Help me please.
    Best regards, Natalia.

    Hey
    Ur XML is not correct,it must be something like this
    <root>
    <StatementName1>
    <dbTableName action=”UPDATE” | “UPDATE_INSERT”>
    <table>realDbTableName</table>.....
    </StatementName1>
    if u look at the receiver structure of /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 this blog,action is an attribute of TEST and not STATEMENTNAME,for ur structure its an attribute of Statement2
    can u send ur receiver structure?
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • XML document error - ELEARNING TRAINING MATERIAL

    Hi,
    Using SOLAR_LEARNING_MAP i was trying to create Training Material for a particular process (creating sales order as example). I attached a SAP Tutor also for that. The document is displaying from the tcode without any issue, but if i click OPEN BROWSER the following error is coming:
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://hostname.domain:8002/sap/bc/solman/defaul...
    Anybody tried this feature ?
    Thanks,
    Murali.

    Since no answer for long time, i am closing it now

  • Build XML Document in Servlet use JSTL xml tags in JSP

    Is it possible to build an XML document either org.w3c.dom.Document or preferably org.jdom.Document in a Servlet and pass it as a Bean or Bean property to a JSP and use it in the JSTL xml tags? If so how is it done? I don't want to write the document out to a file.
    Thanks
    Mark

    Both DOM and JDOM allow you to serialize XML to an output stream. Use the StringWriter as the output stream and when its finished you will have the XML in a String. Put the String in the Request scope and your JSP should be able to see it.

  • Compilation problem in build.xml

    Hi,
    This is my build.xml
    <?xml version="1.0"?>
    <project name="TestApp" default="compile">
    <description>TestApp</description>
    <property name="J2EE_HOME_13" value="/usr/testapp/bea921/jdk150_06"/>
    <property name="J2EE_HOME" value="${J2EE_HOME_13}"/>
    <property name="WL_HOME" value="/usr/testapp/bea921/weblogic92"/>
    <property name="WLLIB" value="${WL_HOME}/server/lib"/>
    <property name="CPATH1" value="${J2EE_HOME}/lib/tools.jar:${J2EE_HOME}/lib/j2ee.jar"/>
    <property name="CPATH2" value="${WL_HOME}/server:${WLLIB}/weblogic_sp.jar:${WLLIB}/weblogic.jar"/>
    <property name="CPATH" value="${CPATH1}:${CPATH2}"/>
    <property name="src.dir" location="/home/mashan/WEB-INF/classes/com/data" />
    <property name="classes.dir" location="/home/mashan/WEB-INF/classes/com/data" />
    <property name="javac.debug" value="on" />
    <target name="compile" description="Compile TestApp">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${CPATH}" debug="${javac.debug}">
    </javac>
    </target>
    </project>
    Here both source and dest. dir are same.My build.xml is in WEB-INF/classes , when i run the build.xml it is generating a folder at /home/mashan/WEB-INF/classes/com/data/com/data/*.class files.
    Where i want to generate the class files at /home/mashan/WEB-INF/classes/com/data/*.class.
    So that the server can pick up the file from the root directory. Please do rectify this problem.
    Where i am going wrong with this build.xml. Im using weblogic server.Please do update the build.xml.
    Thanks

    I also have this problem. When I build the build.xml file, errors happen:
    Buildfile: D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\Ant\build.xml
    createDatabase:
    refreshSchema:
    BUILD FAILED
    D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\Ant\build.xml:20: The following error occurred while executing this line:
    D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\DBSchema\build.xml:89: The following error occurred while executing this line:
    D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\DBSchema\build.xml:54: The following error occurred while executing this line:
    D:\soft\jdevstudio1111TP2\mywork\storefront_techpreview2\Infrastructure\DBSchema\build.xml:26: D:\softjdevstudio1111TP2\jdbc\lib not found.
    Total time: 0 seconds
    My build.properties is set as following (meanwhile, I can connect database 10gR2):
    # Master Ant properties file for Fusion Order Demo
    # All build files refer to this master list of properties
    # $Id: build.properties 812 2007-02-20 07:14:33Z lmunsing $
    # Base Directory for library lookup
    jdeveloper.home=D:\soft\jdevstudio1111TP2
    src.home=..//..
    # JDBC info used to create Schema
    jdbc.driver=oracle.jdbc.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@localhost
    jdbc.port=1521
    jdbc.sid=orcl
    # Information about the default setup for the demo user
    db.adminUser=system
    db.adminUser.password=welcome1
    db.demoUser=FOD
    db.demoUser.password=welcome1
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMP
    --------------------------------------------------------------------------------------

  • How to extract the nodes of any given XML document ???

    Hello,
    Greetings! It is an interesting forum.
    A Snippet of XML Schema PurchaseOrder.xsd as given in user guide is as follows
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xdb="http://xmlns.oracle.com/xdb"
    version="1.0" xdb:storeVarrayAsTable="true">
    <xs:element name="PurchaseOrder" type="PurchaseOrderType"
    xdb:defaultTable="PURCHASEORDER"/>
    <xs:complexType name="PurchaseOrderType" xdb:SQLType="PURCHASEORDER_T">
    <xs:sequence>
    <xs:element name="Reference" type="ReferenceType" minOccurs="1"
    xdb:SQLName="REFERENCE"/>
    <xs:element name="Actions" type="ActionsType" xdb:SQLName="ACTIONS"/>
    <xs:element name="Reject" type="RejectionType" minOccurs="0"
    xdb:SQLName="REJECTION"/>
    <xs:element name="Requestor" type="RequestorType"
    xdb:SQLName="REQUESTOR"/>
    <xs:element name="User" type="UserType" minOccurs="1"
    xdb:SQLName="USERID"/>
    <xs:element name="CostCenter" type="CostCenterType"
    xdb:SQLName="COST_CENTER"/>
    <xs:element name="ShippingInstructions" type="ShippingInstructionsType"
    xdb:SQLName="SHIPPING_INSTRUCTIONS"/>
    <xs:element name="SpecialInstructions" type="SpecialInstructionsType"
    xdb:SQLName="SPECIAL_INSTRUCTIONS"/>
    <xs:element name="LineItems" type="LineItemsType"
    xdb:SQLName="LINEITEMS"/>
    </xs:sequence>
    </xs:complexType>
    full schema is available in url
    http://download-west.oracle.com/docs/cd/B12037_01/appdev.101/b10790/xdb03usg.htm#BABBGIED
    The views use XPath expressions and functions such as extractValue() to define the mapping between columns in the view and nodes in the XML document. The following view is created on purchase order schema.
    Creating Relational Views On XML Content
    CREATE OR REPLACE view PURCHASEORDER_MASTER_VIEW
    (REFERENCE, REQUESTOR, USERID, COSTCENTER,
    SHIP_TO_NAME,SHIP_TO_ADDRESS, SHIP_TO_PHONE,
    INSTRUCTIONS)
    AS
    SELECT extractValue(value(p),'/PurchaseOrder/Reference'),
    extractValue(value(p),'/PurchaseOrder/Requestor'),
    extractValue(value(p),'/PurchaseOrder/User'),
    extractValue(value(p),'/PurchaseOrder/CostCenter'),
    extractValue(value(p),'/PurchaseOrder/ShippingInstructions/name'),
    extractValue(value(p),'/PurchaseOrder/ShippingInstructions/address'),
    extractValue(value(p),'/PurchaseOrder/ShippingInstructions/telephone'),
    extractValue(value(p),'/PurchaseOrder/SpecialInstructions')
    FROM PURCHASEORDER p;
    When we register XML Schema in Oracle 9i, the schema elements of XML documents are stored as XMLType, that is, stored using object-relational storage techniques.
    For a small schema, we could build the above view manually, but for large/nested schema, if we have query to build XML documents node list, it will help us to build Relational Views on XML Content.
    How do we extract the nodes of any given XML document through O-R structures or XML DB using XML DB functions?
    Any alternate thoughts are welcome.
    I appreciate your help.
    Regards
    Ram

    Ram
    Once again, I do not think that you can solve the problem you are trying to solve. Fundamentally you need to determine for a given element of a given complex type what are it's child elements. For each of those elements you then need to find out whether or not it in turn has child elements...
    Then you have to think about elements defined as ref rather than type, elements that are substituteable, and the rest of possibilities that can be described with XML Schema.
    If you can solve that problem you're a better man than I as the saying goes. Anyone rather than give you a fish, I'll show you how to at least put a worm on the hook..
    The following query gets the names of the elements inside a each of the global complex types
    Good luck, if you come up with a query to do this I'd love to see it...
    SQL> column COMPLEX_TYPE format A32
    SQL> column ELEMENT format A32
    SQL> --
    SQL> select extractvalue
    2 (
    3 value(ct),
    4 '/xs:complexType/@name',
    5 'xmlns:xs="http://www.w3.org/2001/XMLSchema"'
    6 ) COMPLEX_TYPE,
    7 extractvalue
    8 (
    9 value(et),
    10 '/xs:element/@name',
    11 'xmlns:xs="http://www.w3.org/2001/XMLSchema"'
    12 ) ELEMENT
    13 from resource_view,
    14 table
    15 (
    16 xmlsequence
    17 (
    18 extract
    19 (
    20 res,
    21 '/r:Resource/r:Contents/xs:schema/xs:complexType',
    22 'xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd"
    23 xmlns:xs="http://www.w3.org/2001/XMLSchema"')
    24 )
    25 ) ct,
    26 table
    27 (
    28 xmlsequence
    29 (
    30 extract
    31 (
    32 value(ct),
    33 '/xs:complexType/*/xs:element',
    34 'xmlns:xs="http://www.w3.org/2001/XMLSchema"'
    35 )
    36 )
    37 ) et
    38 where equals_path(res,'/home/SCOTT/poSource/xsd/purchaseOrder.xsd') = 1
    39 /
    COMPLEX_TYPE ELEMENT
    -------------------------------- ------------------------PurchaseOrderType Reference
    PurchaseOrderType Actions
    PurchaseOrderType Reject
    PurchaseOrderType Requestor
    PurchaseOrderType User
    PurchaseOrderType CostCenter
    PurchaseOrderType ShippingInstructions
    PurchaseOrderType SpecialInstructions
    PurchaseOrderType LineItems
    LineItemsType LineItem
    LineItemType Description
    LineItemType Part
    ActionsType Action
    RejectionType User
    RejectionType Date
    RejectionType Comments
    ShippingInstructionsType name
    ShippingInstructionsType address
    ShippingInstructionsType telephone
    19 rows selected.

  • Problem in building build.xml in JDO

    Hi,
    I am writting an application using JDO,While building build.xml an error occured like this.
    so can u pls help me to resolve this problem.
    Error........
    Buildfile: C:\NewWorkSpaceForPractice\GettingStartedJDOWeb\build.xml
    enhance:
    enhance.Employee:
            [java] java.lang.NoClassDefFoundError: com/sap/tc/logging/LogController
            [java]      at com.sap.jdo.common.model.jdo.JDOModelFactoryImpl.createJDOModel(JDOModelFactoryImpl.java:66)
            [java]      at com.sap.jdo.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.<init>(EnhancerMetaDataJDOModelImpl.java:64)
            [java]      at com.sap.jdo.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.<init>(EnhancerMetaDataJDOModelImpl.java:85)
            [java]      at com.sap.jdo.enhancer.Main.initEnhancerMetaData(Main.java:446)
            [java]      at com.sap.jdo.enhancer.Main.createEnhancer(Main.java:461)
            [java]      at com.sap.jdo.enhancer.Main.process(Main.java:152)
            [java]      at com.sap.jdo.enhancer.Main.main(Main.java:117)
            [java] Exception in thread "main"
            [java] BUILD FAILED: file:C:/NewWorkSpaceForPractice/GettingStartedJDOWeb/build.xml:52: Java returned: 1
    Total time: 1 second
    Regards,
    Kiran.

    Hi,
      I have copied those jars as u have said then the error has rectified but there is a new error.
    Error.......
    Buildfile: C:\NewWorkSpaceForPractice\GettingStartedJDOWeb\build.xml
    enhance:
    enhance.Employee:
            [java] com.sap.jdo.enhancer.meta.EnhancerMetaDataUserException: nested exception: com.sap.jdo.model.jdo.JDOModelException: Error during reading XML meta data.
            [java] NestedException: org.xml.sax.SAXParseException: Relative URI "jdo.dtd"; can not be resolved without a base URI.
            [java]      at com.sap.jdo.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.getJDOClass(EnhancerMetaDataJDOModelImpl.java:167)
            [java]      at com.sap.jdo.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.isPersistenceCapableClass(EnhancerMetaDataJDOModelImpl.java:323)
            [java]      at com.sap.jdo.enhancer.core.Analyzer.initPersistenceType(Analyzer.java:595)
            [java]      at com.sap.jdo.enhancer.core.Analyzer.scan(Analyzer.java:517)
            [java]      at com.sap.jdo.enhancer.core.Controller.scan(Controller.java:169)
            [java]      at com.sap.jdo.enhancer.core.Controller.enhanceClass(Controller.java:124)
            [java]      at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile1(Enhancer.java:185)
            [java]      at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile(Enhancer.java:232)
            [java]      at com.sap.jdo.enhancer.Main.enhanceClassFile(Main.java:583)
            [java]      at com.sap.jdo.enhancer.Main.enhanceInputFiles(Main.java:539)
            [java]      at com.sap.jdo.enhancer.Main.process(Main.java:157)
            [java]      at com.sap.jdo.enhancer.Main.main(Main.java:117)
            [java] Fatal error while enhancing: JDO ENHANCER: An internal error occurred while enhancing input class; detailed message: nested exception: com.sap.jdo.model.jdo.JDOModelException: Error during reading XML meta data.
            [java] NestedException: org.xml.sax.SAXParseException: Relative URI "jdo.dtd"; can not be resolved without a base URI.
            [java] com.sap.jdo.enhancer.EnhancerFatalError: JDO ENHANCER: An internal error occurred while enhancing input class; detailed message: nested exception: com.sap.jdo.model.jdo.JDOModelException: Error during reading XML meta data.
            [java] NestedException: org.xml.sax.SAXParseException: Relative URI "jdo.dtd"; can not be resolved without a base URI.
            [java] aborted with errors.
            [java]      at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile(Enhancer.java:247)
            [java]      at com.sap.jdo.enhancer.Main.enhanceClassFile(Main.java:583)
            [java]      at com.sap.jdo.enhancer.Main.enhanceInputFiles(Main.java:539)
            [java]      at com.sap.jdo.enhancer.Main.process(Main.java:157)
            [java]      at com.sap.jdo.enhancer.Main.main(Main.java:117)
            [java] BUILD FAILED: file:C:/NewWorkSpaceForPractice/GettingStartedJDOWeb/build.xml:35: Java returned: 1
    Total time: 1 second
    pls help me to resolve this problem.
    Regards,
    Kiran.

  • SOA Order Booking build properites - BindWebApp error: javax.management.Ref

    Hi All,
    I am trying to understand the "SOA Order Booking Application" which is given as part of example in SOA Demo.
    I tried to follow all the steps as per the user guide for this example, but when I am trying to build XML for SOA Order Booking, I get the following error
    Buildfile: C:\Pratap\SOA_DEMO\SOADEMO\SOAOrderBooking\build.xml
    java Java Result: 1
    pre-deploy:
    validateTask:
    echo-----
    | Validating workflow
    validateTask url is file:/C:/Pratap/JDeveloper/jdevstudio10134/integration/bpm/support/files/WorkflowTaskDefinition.xsd
    validateTask Validation of workflow task definitions is completed without errors
    deployDecisionServices:
    echo
    | Deploying decision services for SOAOrderBooking on uspg2-10-032, port 8888
    deployDecisionServices 08/10/10 15:29:48 Notification ==&gt;Application Deployer for rules_default_SOAOrderBooking_1_0_DecisionService STARTS.
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:48 Notification ==&gt;Undeploy previous deployment
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Initialize C:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\rules_default_SOAOrderBooking_1_0_DecisionService.ear begins...
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Initialize C:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\rules_default_SOAOrderBooking_1_0_DecisionService.ear ends...
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Starting application : rules_default_SOAOrderBooking_1_0_DecisionService
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Initializing ClassLoader(s)
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Initializing EJB container
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Loading connector(s)
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Starting up resource adapters
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Initializing EJB sessions
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Committing ClassLoader(s)
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Initialize DecisionService-web begins...
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Initialize DecisionService-web ends...
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Started application : rules_default_SOAOrderBooking_1_0_DecisionService
    deployDecisionServices
    deployDecisionServices 08/10/10 15:29:49 Notification ==&gt;Application Deployer for rules_default_SOAOrderBooking_1_0_DecisionService COMPLETES. Operation time: 922 msecs
    deployDecisionServices
    deployDecisionServices
    deployDecisionServices *{color:#ff0000}BindWebApp error: javax.management.ReflectionException*
    *{color}*
    deployDecisionServices
    *{color:#ff0000}BUILD FAILED*
    **C:\Pratap\SOA_DEMO\SOADEMO\SOAOrderBooking\build.xml:126: Error while deploying decision services on server "uspg2-10-032"*{color}*
    Total time: 6 seconds
    deployDecisionServices BindWebApp error: javax.management.ReflectionException
    I have the build properties file
    domain=default
    rev=1.0
    admin.user=oc4jadmin
    admin.password=oc4jadmin
    hostname=uspg2-10-032
    http.port=8888
    rmi.port=12401
    oc4jinstancename=home
    asinstancename=
    opmn.requestport=6003
    platform=ias_10g
    #platform=oc4j_10g
    same every where.
    C:\Pratap\SOA_DEMO\SOADEMO\SOAOrderBooking\build.xml:126: Error while deploying decision services on server "uspg2-10-032"
    Kindly let me know what should be done to resolve errors.
    Regards,
    Pratap
    Edited by: user10244582 on Oct 10, 2008 4:00 PM
    Edited by: user10244582 on Oct 10, 2008 4:02 PM

    Thanks!! absolutely spot on solution.
    I developed in 10.1.3.4, got this error, then deployed using 10.1.3.1. Fantastic.
    Just that build.xml generated by 10.1.3.4 contains isSSL attribute, which seems is not supported by 10.1.3.1. So I created a dummy project in 10.1.3.1, and replaced the build.xml of my rules project with the one generated by 10.1.3.1 jdev

  • Heap space error while creating XML document from Resultset

    I am getting Heap space error while creating XML document from Resultset.
    It was working fine from small result set object but when the size of resultset was more than 25,000, heap space error
    I am already using -Xms32m -Xmx1024m
    Is there a way to directly write to xml file from resultset instead of creating the whole document first and then writing it to file? Code examples please?
    here is my code:
    stmt = conn.prepareStatement(sql);
    result = stmt.executeQuery();
    result.setFetchSize(999);
    Document doc = JDBCUtil.toDocument(result, Application.BANK_ID, interfaceType, Application.VERSION);
    JDBCUtil.write(doc, fileName);
    public static Document toDocument(ResultSet rs, String bankId, String interfaceFileType, String version)
        throws ParserConfigurationException, SQLException {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            DocumentBuilder builder = factory.newDocumentBuilder();
            Document doc = builder.newDocument();
            Element results = doc.createElement("sims");
            results.setAttribute("bank", bankId);
            results.setAttribute("record_type", "HEADER");
            results.setAttribute("file_type", interfaceFileType);
            results.setAttribute("version", version);
            doc.appendChild(results);
            ResultSetMetaData rsmd = rs.getMetaData();
            int colCount = rsmd.getColumnCount();
            String columnName="";
            Object value;
            while (rs.next()) {
                Element row = doc.createElement("rec");
                results.appendChild(row);
                for (int i = 1; i <= colCount; i++) {
                    columnName = rsmd.getColumnLabel(i);
                    value = rs.getObject(i);
                    Element node = doc.createElement(columnName);
                    if(value != null)
                        node.appendChild(doc.createTextNode(value.toString()));
                    else
                        node.appendChild(doc.createTextNode(""));
                    row.appendChild(node);
            return doc;
    public static void write(Document document, String filename) {
            //long start = System.currentTimeMillis();
            // lets write to a file
            OutputFormat format = new OutputFormat(document); // Serialize DOM
            format.setIndent(2);
            format.setLineSeparator(System.getProperty("line.separator"));
            format.setLineWidth(80);
            try {
                FileWriter writer = new FileWriter(filename);
                BufferedWriter buf = new BufferedWriter(writer);
                XMLSerializer FileSerial = new XMLSerializer(writer, format);
                FileSerial.asDOMSerializer(); // As a DOM Serializer
                FileSerial.serialize(document);
                writer.close();
            } catch (IOException ioe) {
                ioe.printStackTrace();
            //long end = System.currentTimeMillis();
            //System.err.println("W3C File write time :" + (end - start) + "  " + filename);
        }

    you can increase your heap size..... try setting this as your environment variable.....
    variable: JAVA_OPTS
    value: -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m

  • Error in webservice call | Error in XML Document(1,358)

    Hi all,
    We currently have a web service developed in Java, which we're calling from
    a dot net coded windows form. this web service is returning an object of type
    abc (say). Now, when we try and get a response from java server on the form,
    i'm getting the following error:
    There is an error in XML document (1, 358)
    Does this have something to do with a java serialised object not being able
    to get deserialised in dot net? Or is it something else?
    Also, I have a web reference that has been created on this java web service.
    This I believe means that the object that we're trying to get on the dot net
    client would be the java object that is being sent from the web service.
    Point to be noted is the fact that this web service was working absolutely fine till about 2 days ago.
    Any pointers are gladly appreciated.
    Cheers!
    Nick

    Sorry for not mentioning the product versions:
    The bpel process was build and deployed with Jdeveloper Studio edition version 10.1.3.1.0.3984 on a Bpel server/Application Server with version 10.1.3.1 (NT).

  • Error in tutorial: Could not create XML document carrying AQ Headers

    Hi,
    We try to run the AQOutboundCorrelation tutorial. After running the enqueue_reply.sql script the message was placed from the request to the reply queue and read by the AQ inbound adapter.
    Nothing happened in the flow. The following error occured in the domain log:
    Could not create XML document carrying AQ Headers
    Please help!!
    See log messages below
    <2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_addPrimitive: field = PAYLOAD, value = Hallo
    <2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_addPrimitive: field = RESULT, value = request received
    <2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_getAsXML message:<<<<<<<
    <?xml version = '1.0' standalone = 'yes'?>
    <CORRELATIONREPLY_TYPE xmlns="http://xmlns.oracle.com/xdb/ANDRE">
    <PAYLOAD xmlns="">Hallo</PAYLOAD>
    <RESULT xmlns="">request received</RESULT>
    </CORRELATIONREPLY_TYPE>
    >>>>>>>>
    <2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_readMessage: aqHeader = oracle.xml.parser.v2.XMLDocument@eabad
    <2007-01-18 13:58:59,187> <DEBUG> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_readMessage:Header<<<<<<<
    <?xml version = '1.0' standalone = 'yes'?>
    <Header xmlns="http://xmlns.oracle.com/pcbpel/adapter/aq/inbound/">
    <MessageId>CA714367FA1B4BB3B2AC0211C9ECF2DB</MessageId>
    <Priority>1</Priority>
    <Correlation>209EE57CB6AC4B2FA2034C6FA58AD24B</Correlation>
    <Attempts>0</Attempts>
    <EnqueueTime>2007-01-18T13:58:59.000+01:00</EnqueueTime>
    <OrigMessageId></OrigMessageId>
    </Header>
    >>>>>>>>
    <2007-01-18 13:58:59,187> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_ReadMessage: Could not create XML document carrying AQ Headers: [Ljava.lang.StackTraceElement;@12916fe
    <2007-01-18 13:58:59,187> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound>
    java.lang.NullPointerException
         at java.lang.String.<init>(String.java:479)
         at oracle.tip.adapter.aq.database.MessageReader.readMessage(MessageReader.java:573)
         at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:183)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
         at java.lang.Thread.run(Thread.java:595)
    Message was edited by:
    rverbeea1

    Sorry for not mentioning the product versions:
    The bpel process was build and deployed with Jdeveloper Studio edition version 10.1.3.1.0.3984 on a Bpel server/Application Server with version 10.1.3.1 (NT).

  • ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element 'model'. Nested exception: Can not find the declaration of element 'model'.

    I have install flash builder 4 beta 2 + blazeds 4.00.7548. While try to connect to data service and face a problem.
    When i use a beta 1 that no such probem. please help.
    ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element ‘model’. Nested exception: Can not find the declaration of element ‘model’.

    Hello All!
    I'm just getting started with Flash Builder 4 and BlazeDS and I'm having this same issue.     I have installed the FlashBuilder 4 beta 2  Build 253292, and Blaze 4  ( blazeds-turnkey-4.0.0.14341 ).       I have also installed the livecycle_dataservices3_modelerplugin_100509.      Upon clicking Data-Connect to data/service and then Blazeds,   I can see my DAO object listed.   However, if I select it I receive the dreaded error.       Now if I code in the remote object manually, in the  .mxml file and run it, all works just fine.        It's only while trying to use the object within Flashbuilder that I have the problem.     I see lots of ideas kicked around for this, and it seems that various solutions have worked for different users.    Can somebody put together a 'cookbook' of just exactly how to set things up to make this work? 
    Thanks

  • Error: No valid XML document received*_

    Hi All,
    We are connecting our CCMS system to NetWeaver J2EE engine on which E-Sourcing is running.
    For this we registered java component and hosts in cen.
    But we are getting error as : No valid XML document received
    Please can anyone tell me how to overcome this error.
    Thank you .
    Regards
    Mahesh

    Hi,
    Please re-read the answer from Marc carefully.  He was in the exact same situation as yours: 
    - Monitored system: NW CE 7.1
    - CEN: NW 7.01 (same as NW 7.0 EhP1)
    The link you posted is for CEN with NW 7.3 and monitored systems from NW 7.02 (and up).  Read the paragraph below the Caution sign:
    If you want to centrally monitor any system with a central monitoring system with release SAP NetWeaver 7.0, this procedure is not applicable. In this case, follow the procedure described in the newest Monitoring Setup Guide for SAP NetWeaver 7.0 instead. You can obtain the Monitoring Setup Guide at the Internet address service.sap.com/operationsnw70 in the Monitoring area.
    You should look for (and follow) the right Monitoring Setup Guide as mentioned.
    Regards,
    Dao
    Edited by: Dao Ha on Sep 19, 2011 10:38 AM

Maybe you are looking for

  • Demo - Extraction of Customer Master Data from SAP R/3 ECC6 to MDM5.5

    Hello, I am new to MDM . Would appreciate if someone can give a solution to the below request. We are doing a demo project in our Company to extract all the master data related to SALES cycle. We are doing an extraction of Customer Master Data. Curre

  • Primary Keys and VARCHAR2 vs CHAR datatypes???

    Could someone please tell me if there is documentation concerning the performance implications of creating a Primary Key using a VARCHAR2 datatype vs a CHAR datatype?

  • DUMP when execute any tasks - OBJECTS_OBJREF_NOT_ASSIGNED_NO

    Hi Experts, I need help. When we try to execute any tasks at UCMON we have the following DUMP: Erro tpo.exec.         OBJECTS_OBJREF_NOT_ASSIGNED_NO                                               Exceção                CX_SY_REF_IS_INITIAL            

  • Importing objects

    Hi! I have imported my Software Component using file transfer to another PI system. I have imported Software Component, Product, Business System and Technical System too. Now I'm trying to import Integration Builder objects to new PI system, but I ha

  • How to force note attachment in an approval process ?

    Hello experts, I am trying to find a solution in order to force an agent to write a note as attachment, during an approval workflow process, especially when the agent rejects. Does somebody already implement such solution, and how ? Thanks in advance