Problem in Parsing File

Hi,
I have one parse.PROPERTIES file.. In that all data is in key-value pair. There are some keys has multiple value, and some keys has multiline value. I want to parse that file and store result in Map depending on key....
Content of File is as FOLLOWS:
   value=server
   multilinevalue = {
            "width" : "100px",
            "values" : [ { "25GB" : "25 GB" },
                                { "50GB" : "50 GB" },
                                { "75GB" : "75 GB" },
                                { "100GB" : "100 GB" },
                                { "150GB" : "150 GB" },
                                { "200GB" : "200 GB" },
                                { "500GB" : "500 GB" },
                                { "1 TB" : "1 TB" } ] }
    multiplevalue= { "status.x" : 0, "status.y" : 30, "status.width" : 270,     "status.height" : 30 }
                              Can anyone give me code how I can parse it...
Thank u,

Can anyone give me code how I can parse it...This is not a difficult problem and I'm sure someone can help you if you show some effort.

Similar Messages

  • Problem in parsing a jar file

    Hi Friends,
    I am using Tomcat5.5 & Eclipse 3.1.2 to create jsf applications, i have added myfaces-all.jar in to my WEB-INF/lib folder and started the server.
    While starting the server it gives message like following, i can't figure it out, can anyone help me in this regard.
    WARNING: Can't parse file: 'jar:file:/.../eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/jsfMyfaces/WEB-INF/lib/myfaces-all.jar!/META-INF/faces-config.xml'.
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.Socket.connect(Socket.java:507)
         at java.net.Socket.connect(Socket.java:457)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
         at sun.net.www.http.HttpClient.New(HttpClient.java:287)
         at sun.net.www.http.HttpClient.New(HttpClient.java:299)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:905)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:872)
         at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:282)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1021)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.apache.commons.digester.Digester.parse(Digester.java:1548)
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1182)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Mar 22, 2006 5:48:14 PM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: Can't parse file: 'jar:file:/.../eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/jsfMyfaces/WEB-INF/lib/myfaces-all.jar!/META-INF/faces-config.xml'.
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:240)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.Socket.connect(Socket.java:507)
         at java.net.Socket.connect(Socket.java:457)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
         at sun.net.www.http.HttpClient.New(HttpClient.java:287)
         at sun.net.www.http.HttpClient.New(HttpClient.java:299)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:905)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:872)
         at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:282)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1021)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.apache.commons.digester.Digester.parse(Digester.java:1548)
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1182)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
         ... 15 more
    Note: When i removed this myfaces-all.jar from my lib folder, the application executes without any error.
    Thanks & Regards,
    Sella

    try to open the jar and see if contains no errors. For example with winrar.

  • Problem with parsing large xml files

    Hello All,
    I am parsing a large xml file of 20MB and I use DocumentBuilder.parse(File). This method works for small xml files with size less than 20MB but the application hangs and doesn't through any error message when parsing 20MB xml files. Please let me know what I have to do at this point ?
    Thanks & Regards,
    Kumar.

    Well... i can't agree.
    If you have such structure:
    <task>
      <task/>
      <task>
         <task>
            <task/>
         </task>
         <task/>
      </task>
    </task>
    ...you may always keep stack of tasks (at startElement push to top, and at endElement pop), so at every leaf of tree you will have all parents of that leaf.
    for such structure:
    <task id="1" parent="0"/>
    <task id="2" parent="1"/>
    <task id="3" parent="1"/>
    <task id="4" parent="2"/>
    <task id="5" parent="3"/>
    ...it will be much faster to go thro document by sax several times to build tree of tasks, than to load all document into memory...

  • Problems with parsing and display a XML-File

    Hi,
    I'm working on an applet to read a XML-file, display the content in a JTree, in order to modify and save it again. I found this tutorial: http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/dom/index.html
    I took this example http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/dom/work/DomEcho02.java and modified it, to run it as an applet.
    I changed the method main into:
    public class EditorTest extends JApplet {
    public void init(){
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         try {
              DocumentBuilder builder = factory.newDocumentBuilder();
              File file = new File("/path/inhalt.xml");
              document = builder.parse(file);
         } catch (SAXException sxe) {
              // Error generated during parsing)
              Exception     x = sxe;
              if (sxe.getException() != null)
                   x = sxe.getException();
              x.printStackTrace();
         catch (ParserConfigurationException pce) {
              // Parser with specified options can't be built
              pce.printStackTrace();
         } catch (IOException ioe) {
              // I/O error
              ioe.printStackTrace();
         makeWindow(); //equals makeFrame(); in the tutorial
    } //initThe method makeWindow() looks like this:
    private Container container;
    private void makeWindow(){
         container = getContentPane();
         JDesktopPane desktop = new JDesktopPane();
         final EditorTest echoPanel = new EditorTest();
         JMenuBar menuBar = MakeMenuBar();  //returns a JMenuBar with a few items in it
         container.add(menuBar, BorderLayout.NORTH);
    }The constructor:
    public DomEcho02() {
         // Set up the tree
         JTree tree = new JTree(new DomToTreeModelAdapter());
         // Build left-side view
         JScrollPane treeView = new JScrollPane(tree);
         treeView.setPreferredSize( new Dimension( leftWidth, windowHeight ));
         // Build right-side view
         final JEditorPane htmlPane = new JEditorPane("text/html","");
         htmlPane.setEditable(true);
         JScrollPane htmlView = new JScrollPane(htmlPane);
         htmlView.setPreferredSize(new Dimension( rightWidth, windowHeight ));
         // Build split-pane view
         JSplitPane splitPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT, treeView, htmlView );
         splitPane.setContinuousLayout( true );
         splitPane.setDividerLocation( leftWidth );
         splitPane.setPreferredSize( new Dimension( windowWidth + 10, windowHeight+10 ));
         // Add GUI components
         this.setLayout(new BorderLayout());
         this.add("Center", splitPane );
    } // ConstructorI didn't change the class AdapterNode and DomToTreeModelAdapter. When I change the line "JTree tree = new JTree(new DomToTreeModelAdapter());" into "JTree tree = new JTree();", the applet starts and display a standard-JTree, as it ist generated by the constructor. If I want to display my own Tree the applet fails. When I start it with the appletviewer I get this message:
    java.lang.NullPointerException
    at DomEcho02$AdapterNode.childCount(DomEcho02.java:151)
    at DomEcho02$DomToTreeModelAdapter.isLeaf(DomEcho02.java:167)
    at javax.swing.JTree.setModel(JTree.java:704)
    at javax.swing.JTree.<init>(JTree.java:511)
    at DomEcho02.<init>(DomEcho02.java:51)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:721)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:650)
    at sun.applet.AppletPanel.run(AppletPanel.java:324)
    at java.lang.Thread.run(Thread.java:595)
    Is there anyone out there, who knows how to fix it?
    Thanks in advance.

    I found out, how it was going wrong.
    When the applet started, it didn't start with the method init(), as it should do, it started with the constructor. Because there was no document the method childCount() throws a exception. After this, the method init() startet reading the file and started the constructor again, but the results were not shown.
    After knowing this I decided to write the Applet again and now it's working fine.

  • Encoding problem (c++ parser v2).

    Hi,
    I have problems with parsing XML that contains locale specific chars.
    My ORACLE_HOME and ORA_NLS env. vars are set correctly.
    Here is a sample:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ROOT>
    <TEST>i</TEST>
    </ROOT>
    After xmlparse() method call I get LPX-00225 error. But when I add two SPACES or non-locale specific characters in front of </TEST> tag xmlparse() works fine.
    Any suggestion?
    I'm using Oracle 8.1.7, 2.0.4.0.0 version of XDK for C++ on AIX4.3 and Compaq Tru64
    An other sample :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ROOT>
    <TEST att="i">bla bla bla</TEST>
    </ROOT>
    I get LPX-00244 error.
    If i add two spaces after non-locale specific character it works fine.
    I've read that 2.0.7.0.0 version solve this problem, so when this version will be available on AIX4.3 and Compaq Tru64 ?
    I've read that you are planning on shipping the NLS datafile along with the XDK in a future release. I'm intersted to known when, because I don't want to install the Oracle 8i client on all the machine wich run Xml application.
    Thanks
    Didier

    I verified that your test case is fixed in 2.0.7. You will get that version with Oracle 9.0.0 on AIX and Compaq Unix.
    Unfortunately, there is no schedule for shipping the NLS data files with the XDK.

  • Problem in parsing white spaces using if_ixml_parser

    Hello People,
    I have a problem in parsing XML file in one of my programs.
    The program uses the method get_value( ) of class if_ixml_node to fetch a value. In the XML file when the value is spaceA, then after parsing, the value fetched is A and not spaceA.
    Is there any way to fetch the white spaces also?
    Here is the sample tag. The value inside the tags is " A" and after parsing I get "A" the blank is ignored.
    <ns1:IndiceCible> A</ns1:IndiceCible>
    DATA : l_node_fils       TYPE REF TO if_ixml_node.
    indice_val = l_node_fils->get_value( ).
    In some XML parsing forums I saw that if we add the option as shown below, then the parsing works properly. But this did not work in my case.
    <ns1:IndiceCible xml:space="preserve"> A</ns1:IndiceCible>
    The input XML file is as follows.
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><env:Flow xmlns:env="http://xml.inetpsa.com/Structure/Informatique/DeveloppementSI/ReferentielEchange"><env:MessageID>0414
    2636F4888F4B4A579A21E10000000A52931C</env:MessageID><env:From>R3P INTERFACES</env:From><env:To>SAP</env:To><env:TimeStamp>2010-03-04T14:26:36.672+01:00</env:TimeStamp></env:Flow></SOAP-ENV:Header><SOAP-ENV:Body><env:Response xmlns:env="http://xml.inetpsa.
    com/Structure/Informatique/DeveloppementSI/ReferentielEchange"><env:Values><ns1:ListeTranscodifications xmlns:ns1="http://xml.inetpsa.com/ProduitProcess/Produit/Transcodification"><ns1:Transcodification id="1 "><ns1:Statut>KO</ns1:Statut><ns1:Message>ERRO
    R : Indice incorrect</ns1:Message><ns1:ReferenceCible>969099979A</ns1:ReferenceCible><ns1:IndiceCible> A</ns1:IndiceCible><ns1:ColoreCible>SS_TEINTE</ns1:ColoreCible></ns1:Transcodification></ns1:ListeTranscodifications></env:Values><env:Status><env:Code>
    0</env:Code><env:Label></env:Label></env:Status></env:Response></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Regards,
    Praveen

    use IF_XML_PARSER~CL_ADD_PRESERVE_SPACE_ELEMENT method:
    PARAMETERS preserve TYPE flag AS checkbox.
      DATA lo_ixml          TYPE REF TO if_ixml.
      DATA lo_streamfactory TYPE REF TO if_ixml_stream_factory.
      DATA lo_parser        TYPE REF TO if_ixml_parser.
      DATA lo_istream       TYPE REF TO if_ixml_istream.
      DATA lo_document      TYPE REF TO if_ixml_document.
      DATA lo_node          TYPE REF TO if_ixml_node.
      DATA l_node_value          TYPE string.
      lo_ixml = cl_ixml=>create( ).
      lo_streamfactory = lo_ixml->create_stream_factory( ).
      lo_istream = lo_streamfactory->create_istream_string(
            string = '<?xml version="1.0" encoding="iso-8859-1"?><DATA>  WAAA</DATA>' ).
      lo_document = lo_ixml->create_document( ).
      lo_parser = lo_ixml->create_parser( stream_factory = lo_streamfactory
                                          istream        = lo_istream
                                          document       = lo_document ).
    IF preserve = 'X'.
      lo_parser->ADD_PRESERVE_SPACE_ELEMENT( ). "<========= HERE
    ENDIF.
      lo_parser->parse( ).
      lo_node = lo_document->find_from_name( name = 'DATA').
      l_node_value = lo_node->get_value( ).
      ASSERT ( preserve = 'X' AND l_node_value = '  WAAA' )
            OR ( preserve = space AND l_node_value = 'WAAA' ).

  • Wrong result then parsing file in applet

    My applet is parsing a 3ds-file and it's working good in both applet viewer and as a stand alone application but then i try it as an applet in a browser it sometimes parses wrong.
    This is the printout i get then parsing is correct:
    Found data/model/chest.3ds in jar file.
    main chunk
    unused chunks : 2 with length: 10
    3d editor chunk
    unused chunks : 3d3e with length: 10
    unused chunks : ffffafff with length: 170
    unused chunks : 100 with length: 10
    object chunk
    Namnet p� objektet �r inl�st: Chest01
    triangular mesh chunk
    vertices list chunk
    Antalet vertices 424
    Antalet uv-koordinater 424
    unused chunks : 4160 with length: 54
    Antalet faces 168
    unused chunks : 4130 with length: 349
    unused chunks : 4150 with length: 678
    unused chunks : ffffb000 with length: 221
    This is the printout then run in an applet:
    Found data/model/chest.3ds in jar file.
    main chunk
    unused chunks : 2 with length: 10
    3d editor chunk
    unused chunks : 3d3e with length: 10
    unused chunks : ffffafff with length: 170
    unused chunks : 100 with length: 10
    object chunk
    Namnet p� objektet �r inl�st: Chest01
    triangular mesh chunk
    vertices list chunk
    Antalet vertices 424
    Antalet uv-koordinater 424
    unused chunks : ffffed3e with length: -1572921687
    unused chunks : 7856 with length: 1381233982
    This problem only occurs in some files.
    I'm parsing it by reading in the correct number of bytes and converting them to the correct type (int, char ..ect).
    Is there any difference in parsing files in a browser than in an application? The only difference I had so far is the browser beeing case sensitive in the filenames then the appletviewer isn't.
    I can post the code if you want to.
    Please help me, thanks.
    / Robert

    Ifanyone else having the same trouble I'm publishing the wrapper I used successfully.
    private static void read(InputStream in, byte[] buffer) throws IOException
            int bytesRead = 0;
            int bytesToRead = buffer.length;
            while (bytesToRead > 0)
                int read = in.read(buffer, bytesRead, bytesToRead);
                bytesRead += read;
                bytesToRead -= read;
        }

  • Problem with Local File Identification in RFC

    Dear all,
    We are working on a scenario where we have to integrate an external application with SAP system. The external application would use SAP DMS as document repository; It will send us a local file path and we have to upload the document located in that path as an attachment to a DMS Document Info Record. We have designed a wrapper RFC for this purpose, which encapsulates the standard Fm BAPI_DOCUMENT_CREATE2. This BAPI takes a file path input under table parameter DOCUMENTFILES. Problem is, when we are running the RFC from SAP GUI, the document info record is created correctly with the document as attachment, but when we invoke the RFC from the external application, the process fails and we get an error message stating:"Error while checking in Original Files". We debugged the scenario and found out that, while running under SAP GUI, the BAPI is able to identify a GUI Link, and hence succeeds; but while calling from the external application, the BAPI fails to find a GUI Link, tries to start a FTP Server using RFC Destination SAPFTP, and fails. So, obviously, the BAPI is not able to parse the local file path because of non-existence of GUI Link. So,in this regard, my question is: is there no way that we can pass a local file path from an external application to SAP, and get the same identified and get the document uploaded? Is there any alternative to our approach?
    Awaiting answers.
    Regards,
    Sid

    Solved the problem by:
    Converting file content to binary->transferring binary content to a wrapper RFC->writing the content into a temporary file in application server->then calling BAPI_DOCUMENT_CREATE2 to create the document without attachment->then calling CVAPI_DOC_CHECKIN to checkin the temporay file from application server.
    Related references:
    http://wiki.sdn.sap.com/wiki/display/PLM/DMSandbackground+processing
    https://websmp130.sap-ag.de/sap/support/notes/504692
    How to upload file from Web Dynpro into R/3 (BAPI_DOCUMENT_CREATE2)
    Thanks to All who have contributed to the Solution.
    Sincere Regards,
    Sid

  • Parsing file more than 64k

    Hi All
    In ORACLE XML DB ,
    I m getting problem to parse XML files (ORACLE 10g R2 stored Procedure).
    I have created Node to parse XMl files ,but as per as Node memory limitation (64KB) maximum.
    I am not able to parse XML files those have data more then 64KB.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00007: unexpected end-of-file encountered
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 935
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 963
    ORA-06512: at "TARGET.KEYSTONE_ORDER_EXTRACT_TEST", line 290
    ORA-06512: at line 1
    Please give me your suggestion as soon as possible.
    Thanks

    This error does not look like it is related to the size of a text() node within your document. It looks like the XML or XSL you are parsing with DBMS_XSLPROCESSOR is incomplete or malformed.
    Can you post the code you are using, and the XSL and XML that is being processed.

  • Problem with locating file with windows

    Hi,
    I tried to use SAX parser to read some files through network using windows 2000.
    I use parser.parse("\\\\Some directory\\some file");
    when I try to execute program, SAX translates \\ to / and it can't locate the file.
    Is there solution for this problem or should I install http server on far end machine and use http:....
    Thanks.

    use this syntax:
    parse("file:////server_name/share_name/path/your.
    ml");
    I came to the same conclusion. But the "file://" prefix may only be present in front of a UNC file spec (\\server\share\...). If I use a drive letter (c:\mydir), it works without (and only without!)the "file://" prefix.
    I am also using NT4, but would be very interested:
    a.) if this is the same for Win2000 and XP
    b.) if this is documented somewhere (I find this behavious rather strange)
    Regards,
    Bernhard

  • Drawing graphic component using parsed file

    hi,
    I have a problem in drawing the graphic components like rectangle,oval etc. I need to draw them on a panel after selecting a xml file from menu,parse it first, based on the contents of the parsed file the dimentions of the component should change.
    however i am able to parse the file and save the parsed contents in a separate file, but unable to draw components using its contents

    this is the module given to me where i am supposed to
    draw the graphic components using the contents of a
    xml file. I was told to parse the xml file to get
    some values that would represent parameters like
    packet size, length etc.. and using these values
    draw a data packet representation. But prob here is
    the i am able to parse file but not pass its values
    simultaneously to draw image on the panel
    immediately after parsing. i am storin the contents
    in the text format.
    ya i have good knowlege of swings,IO and awt...Parse the XML file filling a model that allows listeners (Observer/Observable is one approach). When the parsing is complete fire an event to indicate that the model has changed. Have your GUI listen to the model and when it receive the 'changed' event it updates it's display according to the content of the model.

  • DNG error parsing file (Fuji S100fs)

    Windows Vista Home Premium, DNG Converter 3.7, Fuji S100fs
    I tried to convert Raw-files into DNG-files but got an error message (literally translated from German): "error parsing file".
    The Fuji S100fs has been included in the latest RAW Update so I assume the DNG-Converter should recognize the format.
    What else could be the reason?
    Thanks.
    Hans

    The problem is DNG Converter 3.7 is NOT the most recent version of the DNG Converter. You need to use the DNG Converter that is included in the latest raw update.

  • Problems with .ARW files and auto toning

    problems with .ARW files and auto toning
    let me try to explain this because this has happened in past and never found a way to resolve but i lived with it
    now that I have a Sony A7R the problem is more serious
    Firstly i take pride it making the picture happen all in camera, i use DRO lvl 5 to get enough light, like when i'm shooting at dusk. DRO its like doing HDR but in a single file, it lightens the darks. in my camera i'm happy with results
    but when I upload them to lightroom, they come out near black.
    allow me to explain
    lets say I import 100 images
    i double check my preferences and everything is UNCHECKED when it comes to importing options, there is no auto toning, nothing.
    as the images import i see a preview in the thumbnail which looks fine.
    i double click on one to enlarge it, hence leave grid view.
    for a brief 1 or 2 seconds, i see the full image in all its glory but than lightroom does something funny, it darkens the image
    one by one as it inspects each image, if it was a DRO image it makes it too dark.
    to make this clear, the image is perfect as it was in the beginning but after a few seconds lightroom for some reason thinks it needs to correct it.
    how to prevent lightroom from doing this, i want the image exactly as it is, why must lightroom apply a correction>?
    i think it has to do something with interpreting the raw file and lightroom applies its own algorithm.
    but here is what i dont get.....before lightroom makes the change i'm able to witness the picture exactly as it was taken and want it unchanged..
    now i have to tweak each file or find a profile for it which is added work.
    any ideas how to prevent lightroom from ruining my images and just leave them as they were when first detected...
    there are 2 phases...one is when it originally imports and they look fine
    second is scanning each image and applying some kind of toning which darkens it too much.
    thanks for the help

    sorry thats the auto reply message from yahoo email.
    i've disabled it now
    thing is, there is no DRO jpg to download from the camera
    its only ARW. so my understanding is when i use DRO setting, the camera makes changes to the ARW than lightroom somehow reads this from the ARW.
    but then sadly reverts it to no DRO settings.
    because i notice if i take normal picture in raw mode its dark but if i apply dro to it, it comes out brighter, yet when i d/l the image from camera to lightroom, which is an ARW - there are no jpgs. lightroom decides to mess it up
    so in reality there is no point in using DRO because when i upload it lightroom removes it.
    is there a way to tell lightroom to preserve the jpg preview as it first sees it.
    its just lame, picture appears perfect...than lightroom does something, than bam, its ruined,.
    what do i need to do to prevent lightroom from ruining the image? if it was good in the first place.

  • Problems with compressing  files with right hand click. it does not work.

    Problems with compressing files with right hand click.
    I am using the compress function in the Mac OS (File > Compress XX) from time to time. Today it does not work anymore. OS 10.5.6
    I get a message: The content list cannot be created for compressing.
    I tried it with files and folders and keep getting this message. Anybody any idea as to how to fix this

    Thanks I love my macbook!!!!
    I also got further problems such as copy-paste not working etc.
    so I fixed it just this morning by running Applejack 1.5 and am back up running noticing your post.
    thanks for helping though!

  • Problem inporting raw files from my Nikon D3200

    i have problems importing raw files from my Nikon D3200, i have tried some of the suggestions such as
    removing the RawCamera.bundle and RawCameraSupport.bundle from the System Library and downloading a newer version (OS X Yosemite: Supported digital camera RAW formats - Apple Support)
    The problem is  --  the latest RAW Compatibility Update version for Yosemite 6.02 appears to be the one I currently am using (in my System Folder).
    In that same article referenced above, my Nikon D800 is listed in an earlier version simply titled "Supported by Yosemite 10.10".
    This had some success but is not working after trying it several times, i am currently on version  OSX Yosemite 10.10.1 and the version of iphoto is 9.6
    any help would be greatly received as i only shoot in Raw

    Remove the RawCamera.bundle and RawCameraSupport.bundle again and update the system to 10.10.2 via the App Store.  That contains the bundles that will support that camera: OS X Yosemite: Supported digital camera RAW formats - Apple Support.  The 6.01 and 6.02 updates are not needed for that camera. Be sure to repair disk permissions after the update.
    As usual be sure you have a backup of your hard drive before applying any such update.

Maybe you are looking for

  • Need Help with QuickTime to Apple TV Export Weirdness

    I am having a problem using QuickTime Player 7 Pro to convert a movie file in its original 1280x720 size for use with Apple TV. (iMovie creates a 960x540 file for Apple TV by default and the only way to get a 1280x720 file is to have iMovie use Quick

  • Duplicate all-day events on calendar

    I noticed that on my iPod Touch calendar, all of my all-day events go on for two days. For example, a person's birthday is showing up as going from Dec. 1-Dec. 2. On my computer's iCal, all of my all-day events look normal. What could be causing this

  • I am runnung FF 4.0.1, I cannot uphgrade.because FF is not compatible with some programs I have..is there any thing I can do??

    I keep getting notifications to upgrade to FF 8.0.1. However that version of FF will not run several programs I have, for which I paid good money Also...when I went from FF 3.6 to FF 4.all my bookmarks disappeared...and two other major programs cease

  • My iTunes Store will not update any apps

    Everything in my iTunes Store works properly, except when trying to update an app. It is showing that I have multiple app updates but when I go to the update tab in the store it is a blank page.

  • X-Fi Xtrememusic Driver installation hangs

    Hello to everyone who had the intrest in taking a look at my thread, Four years have passed now since the day I left my last replay on Creative Support forums, back then I was interested in acquiring a sound card that would support EAX HD (v4.0). I d