Error "XML tag Main/@versionMinor has incorrect value 001; expected value."

I'm going to describe our scenario.
We have created an Abap proxy in a BW system to run a XI interface. The abap proxy in BW is connected to the IE of a XI 3.0 system. That scenario runs without problems with BW 3.5 (basis 6.40). Now, we are migrating the release of BW to 7.30. we have created the Abap proxy in the migrated BW system but when we run the interface the next message is returned:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Call Integration Server
  -->
- <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
  <SAP:Category>XIProtocol</SAP:Category>
  <SAP:Code area="PARSER">UNEXPECTED_VALUE</SAP:Code>
  <SAP:P1>Main/@versionMinor</SAP:P1>
  <SAP:P2>001</SAP:P2>
  <SAP:P3>000</SAP:P3>
  <SAP:P4 />
  <SAP:AdditionalText />
  <SAP:Stack>XML tag Main/@versionMinor has the incorrect value 001. Value 000 expected</SAP:Stack>
  <SAP:Retry>N</SAP:Retry>
  </SAP:Error>
does anyone know what the problem is? is there a version conflict between BW 7.3 and XI 3.0?
Thanks very much

Hi,
I'm not an expert, but it might be that you would also need to update the XI content to match the new release and then regenerate the proxy.
It does indeed seem to be a difference in the version of the proxies between BW 3.5 and BW 7.3.
Regards,
Horia

Similar Messages

  • XML tag Main/@versionMajor has incorrect value 002; expected value is 003

    Dear experts!
    I have created a file to proxy scenario. When sent out of XI the following message occurs:
    O, btw, I have tried both XI 2.0 and 3.0 in the comm. channel and a fault message is present.
    What's the matter???
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSER">UNEXPECTED_VALUE</SAP:Code>
      <SAP:P1>Main/@versionMajor</SAP:P1>
      <SAP:P2>002</SAP:P2>
      <SAP:P3>003</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>XML tag Main/@versionMajor has incorrect value 002; expected value is 003</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks for your suggestions!
    <i>Will reward points if answers are helpful</i>

    Hi.
    Can you copy past your xml input payload...
    Check out this thread...he has same issue...n its resolved..
    XI 3.0 and external Java client/web service
    Use the url:
    http://hostname:port/XISOAPAdapter/MessageServlet?version=3.0&channel=:SOAPRequest:SOAPIn
    Nilesh
    Message was edited by:
            Nilesh Kshirsagar

  • SAP PI 7.31 / Sender SOAP Channel Issue with XML tag Main/@versionMajor has incorrect value 000; expected value is 003

    Hi PI Experts,
    We are on SAP PI 7.31 SP 10.
    We are in the process of integrating ARIBA P2P solution using SOAP Adapter as sender to connect Ariba with our PI system.
    We have configured all required components in ESR and ID(Most of them are content provided by Ariba).When we try to post a message into PI using SOAP UI we are ending with below error.

    http://<host name> : <port name> /XISOAPAdapter/MessageServlet?channel= <party name> : <service name> : <channel name>
    For the above issue we had configured SOAP Sender channel as above,and the URL we are using to hit PI is as above screenshot.
    We have followed the note on this topic with out any luck.
    1378872
    We are not sure where is problem.As the issue is not reaching to PI not able to see the messages in SXMB_MONI.
    and in the SXMB_ADM PI has been configured as Integration Server.
    I had even tried to change the message protocol as XI3.0 in SOAP sender channel and noluck.
    I have tried to ximessage=true query also in URL and noticed that not working.This is clear that the message we are trying to send from Ariba is not compatible with XI3.0 protocol,Ariba is not having any option to change at their end as it is a cloud application and many customers have been using same with out any issues.
    We have tried maintain the Java System properties in NWA as XPI.Adapter.Version.Major = 3 but no luck.
    Can some one provide us the solution to get rid of this issue?

  • Xilinx Compilation Error: HDLCompiler:432 Formal eiosignal has no actual or default value

    Hi,
    I have compiled several programs for sbRIOs previously but have not run into compilation errors before. I can't seem to find any support to see what is actually going poorly. Any help with this would be appreciated!
    The Compilation Status summary is as follows: 
    LabVIEW FPGA: The compilation failed due to a xilinx error.
    Details:
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" Line 87: Formal <eiosignal> has no actual or default value.
    INFO:TclTasksC:1850 - process run : Synthesize - XST is done.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000032_CustomNode.vhd" Line 18. eiosignal is declared here
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" Line 106: Formal <eiosignal> has no actual or default value.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000033_CustomNode.vhd" Line 18. eiosignal is declared here
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" Line 125: Formal <eiosignal> has no actual or default value.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000034_CustomNode.vhd" Line 18. eiosignal is declared here
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" Line 144: Formal <eiosignal> has no actual or default value.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000035_CustomNode.vhd" Line 18. eiosignal is declared here
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" Line 163: Formal <eiosignal> has no actual or default value.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000036_CustomNode.vhd" Line 18. eiosignal is declared here
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" Line 182: Formal <eiosignal> has no actual or default value.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000037_CustomNode.vhd" Line 18. eiosignal is declared here
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" Line 201: Formal <eiosignal> has no actual or default value.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000038_CustomNode.vhd" Line 18. eiosignal is declared here
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" Line 220: Formal <eiosignal> has no actual or default value.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000039_CustomNode.vhd" Line 18. eiosignal is declared here
    ERROR:HDLCompiler:854 - "C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd" Line 50: Unit <vhdl_labview> ignored due to previous errors.
    VHDL file C:\NIFPGA\jobs\R6n310u_Z1R8lYC\NiFpgaAG_00000031_SequenceFrame.vhd ignored due to errors
    -->
    Total memory usage is 189944 kilobytes
    Number of errors : 9 ( 0 filtered)
    Number of warnings : 4 ( 0 filtered)
    Number of infos : 0 ( 0 filtered)
    Process "Synthesize - XST" failed
    Solved!
    Go to Solution.

    Hi DiracDeltaForce,
    As a first pass, I would recommend disabling or deleting a section of code that you suspect may cause the compile error and see if you can get through synthesis.  Once you get through a compile, you have at least isolated the trouble spot.
    Something I would look for in your code is attempts to access the same IO node in multiple clock domains, ie inside and outside of SCTL (single-cycle timed loops), timed sequence structures, or in muliple timed structures with different clock rates.  Attempting this would force LabVIEW to create arbitraion and hand-shaking logic to safely pass data between clock domains.  This type of logic doesn't work in a timed structure because the hand-shaking operation takes multiple clock cycles.
    If you are only using traditional sequence structures (rather than the timed sequence structures) I wouldn't suspect this type of issue.
    -spex
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • Error - xml tags not proprely ended

    HI Friends,
    i have wrote an xml package for oracle apps report. After runing my concurrent program it will through an error
    The following tags were not closed: payrollstart, locsummary. Error processing resource 'http://hrmstest.vra.com:8000/OA_CG...
    this is my xml begin part package
    l_business_group_id NUMBER;
         BEGIN
              SELECT TO_NUMBER(p_business_group_id)
                  INTO l_business_group_id
                   FROM DUAL;
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0"?>');
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<payrollstart>');
              FND_FILE.PUT_LINE(FND_FILE.LOG,'XX_PAYROLL_REG_REPORT Report');
              FND_FILE.PUT_LINE(FND_FILE.LOG,'---------------------------------------------');
              FND_FILE.PUT_LINE(FND_FILE.LOG,'Parameters of XX_PAYROLL_REG_REPORT Report is');
              FND_FILE.PUT_LINE(FND_FILE.LOG,'business group id '||p_business_group_id);
              FND_FILE.PUT_LINE(FND_FILE.LOG,'pay date '||p_paydate);
              FND_FILE.PUT_LINE(FND_FILE.LOG,'Department name'||p_department);
              FND_FILE.PUT_LINE(FND_FILE.LOG,'Payroll id '||p_payroll_id);
              /*opening the cursour's one by one */
              FOR i IN csr_get_loc_summary(l_business_group_id,p_paydate,p_department,p_payroll_id) LOOP
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<locsummary>');
             FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<location_code>'||i.location_code||'</location_code>');
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<counts>'||i.counts||'</counts>');
               FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<loc_basic_sal>'||i.loc_basic_sal||'</loc_basic_sal>');
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<loc_Salary_Arrears>'||i.loc_Salary_Arrears||'</loc_Salary_Arrears>');
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<loc_Over_time>'||i.loc_Over_time||'</loc_Over_time>');
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<loc_Other_Allowance>'||i.loc_Other_Allowance||'</loc_Other_Allowance>');
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<loc_Income_tax>'||i.loc_Income_tax||'</loc_Income_tax>');
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<loc_Other_deductions>'||i.loc_Other_deductions||'</loc_Other_deductions>');
            FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<loc_Net_Salary>'||i.loc_Net_Salary||'</loc_Net_Salary>');
                   FOR j IN cur_get_payroll_summary(l_business_group_id,i.location_id,p_paydate,p_department,p_payroll_id) LOOP
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<paysummary>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<employee_number>'||j.employee_number||'</employee_number>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<full_name>'||REPLACE(j.full_name,'&','and')||'</full_name>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<payroll_name>'||REPLACE(j.payroll_name,'&','and')||'</payroll_name>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<ORGANIZATION>'||REPLACE(j.ORGANIZATION,'&','and')||'</ORGANIZATION>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<basic_sal>'||j.basic_sal||'</basic_sal>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Salary_Arrears>'||j.Salary_Arrears||'</Salary_Arrears>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Over_time>'||j.Over_time||'</Over_time>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Other_Allowance>'||j.Other_Allowance||'</Other_Allowance>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Income_tax>'||j.Income_tax||'</Income_tax>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Other_deductions>'||j.Other_deductions||'</Other_deductions>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Net_Salary>'||j.Net_Salary||'</Net_Salary>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Month_of>'||j.Month_of||'</Month_of>');
                    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<SYS_DATE>'||j.SYS_DATE||'</SYS_DATE>');
                      FOR k IN cur_get_report_summary(l_business_group_id,p_paydate,p_department,p_payroll_id) LOOP
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<reportsummary>');
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<tot_count>'||k.tot_count||'</tot_count>');
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<tot_basic_sal>'||k.tot_basic_sal||'</tot_basic_sal>');
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<tot_Salary_Arrears>'||k.tot_Salary_Arrears||'</tot_Salary_Arrears>');
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<tot_Over_time>'||k.tot_Over_time||'</tot_Over_time>');
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<tot_Other_Allowance>'||k.tot_Other_Allowance||'</tot_Other_Allowance>');
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<tot_Income_tax>'||k.tot_Income_tax||'</tot_Income_tax>');
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<tot_Other_deductions>'||k.tot_Other_deductions||'</tot_Other_deductions>');
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<tot_Net_Salary>'||k.tot_Net_Salary||'</tot_Net_Salary>');
                        FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</reportsummary>');
                        END LOOP;
                   FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</paysummary>');
                   END LOOP;
              FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</locsummary>');
            END LOOP;          
         FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</payrollstart>');
              EXCEPTION
                   WHEN OTHERS THEN
                   FND_FILE.PUT_LINE(FND_FILE.LOG,'NO DATA FOUND ');
         END XX_PAYROLL_REG_REPORT;
    end XX_PAYROLL_REGISTER;
    /could you please any body tell me any body why it will show an error?
    thank and regards
    rkrao

    To me, it is not clear what the error you encountered was or where in the code that error was coming from.
    I would approach it a different way entirely instead of trying to manually build up some XML with repeating/nested nodes and writing it to a file one line at a time (or so it appears).
    Not tested and not complete since many of the details are hidden but gives you some insight since this structure is complete.
       SELECT XMLElement("payrollstart",
                XMLAgg(
                  XMLElement("locsummary",
                    XMLForest(location_code AS "location_code",
                              counts AS "counts",
                              --- more columns
                              loc_next_salary AS "loc_Next_Salary"),
                    (SELECT XMLAgg(XMLElement("paysummary",
                                    XMLForest(employee_number AS "employee_number",
                                              --- more columns
                                              sys_date AS "SYS_DATE"),
                                    (SELECT XMLAgg(XMLElement("reportsummary",
                                                    XMLForest(tot_count AS "tot_count",
                                                              --- more columns
                                                              tot_Net_Salary AS "tot_Net_Salary")))
                                              FROM table3
                                             WHERE 1=1) -- whatever the join conditions are
                             FROM table2
                            WHERE 1=1) -- whatever the join conditions are
                 ))).getClobVal()
         INTO l_clob
         FROM table1
        WHERE 1=1
        dbms_xslprocessor.clob2file(l_clob, <dir_object>, <file_name>);That uses SQL/XML to build up the XML in the format needed, converts it to a clob and then uses Oracle built in tools to write the clob to disk.
    Another option instead of using SQL/XML would be to use DBMS_XMLGEN (http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xmlgen.htm#CHEJCICB). I don't use that approach but plenty of examples of it on the forums.

  • VersionMajor has incorrect value

    Recently we have migrated from SAP 4. 7 to ECC6 , After migration the  ABAP proxy interfaces are not working we get an error messages
    "XML tag Main/@versionMajor has incorrect value 002; expected value is 003"
    Any idea where to modify version major?

    Hi,
    refer this link.
    Re: Parser - "Unexpected value" error
    Regards,
    Sharanya.

  • Error: XML parsing failed because ""

    Error: XML parsing failed because ""
    Has anybody come across this error before? My BPEL file validates fine, but when I try to compile the project I get that error, when I click on "go to source" it just takes me to the top of the BPEL file. So I have no idea what is causing this.
    JDeveloper 11.1.1.5

    Can you send the BPEL file?

  • Query block has incorrect number of result columns

    can anyone edit my query to eliminate below error ??
    SELECT FLROOPENHEAD.RONBR RepairOrder,FLROOPENHEAD.DATEOPENED DateOpened,NULL DateClosed,
    (SELECT FLREPAIRSTAT.DESCRIPTION  FROM FLREPAIRSTAT
    WHERE FLREPAIRSTAT.REPAIRSTATID = FLROOPENHEAD.REPAIRSTATID) RepairOrderStatus,
      (SELECT flrt.DESCRIPTION FROM FLREPAIRTYPE flrt
      WHERE flrt.REPAIRTYPEID = FLROOPENHEAD.REPAIRTYPEID) RepairType,  FLROOPENHEAD.REPAIRCENTER  RepairCenter,
    FLROOPENHEAD.FLVEHICLEID , FLROOPENHEAD.FLATTACHID,'O'
    FROM FLROOPENHEAD   WHERE FLROOPENHEAD.LDEVNBR =2334
    AND ((extract(DAY FROM SYSTIMESTAMP - TIMEOPENED)*24)+(extract(HOUR FROM SYSTIMESTAMP - TIMEOPENED)) <= 72)
    UNION
    SELECT FLROHISTHEAD.RONBR RepairOrder,FLROHISTHEAD.DATEOPENED DateOpened, null, FLROHISTHEAD.DATECLOSED DateClosed,
    (SELECT FLREPAIRSTAT.DESCRIPTION  FROM FLREPAIRSTAT
    WHERE FLREPAIRSTAT.REPAIRSTATID =FLROHISTHEAD.REPAIRSTATID) RepairOrderStatus,
    (SELECT flrt.DESCRIPTION FROM FLREPAIRTYPE flrt
    WHERE flrt.REPAIRTYPEID = FLROHISTHEAD.REPAIRTYPEID) RepairType, FLROHISTHEAD.REPAIRCENTER  RepairCenter
    from FLROHISTHEAD WHERE FLROHISTHEAD.LDEVNBR =2334
    AND ((extract(DAY FROM SYSTIMESTAMP - FLROHISTHEAD.TIMECLOSED)*24) + (extract(HOUR FROM SYSTIMESTAMP - FLROHISTHEAD.TIMECLOSED)) <= 72)
    ORDER BY DateOpened, RepairOrder
    i think error was at second Where condition.
    Error at Command Line:1 Column:0
    Error report:
    SQL Error: ORA-01789: query block has incorrect number of result columns
    01789. 00000 -  "query block has incorrect number of result columns"
    *Cause:   
    *Action:

    Hi,
    On comparison with 1st query and 2nd query,it can be easily noticed that ,1st query is returning 4 columns and 2nd query returns 5 columns in select clause.
    In order to work union ,both of your queries should select equal no of columns.
    Hence replace your query
    Original query(1st ) :
    SELECT FLROOPENHEAD.RONBR RepairOrder,FLROOPENHEAD.DATEOPENED DateOpened,NULL DateClosed,
    (SELECT FLREPAIRSTAT.DESCRIPTION  FROM FLREPAIRSTAT
    WHERE FLREPAIRSTAT.REPAIRSTATID = FLROOPENHEAD.REPAIRSTATID) RepairOrderStatus,
    ....Relplace with :
    SELECT FLROOPENHEAD.RONBR RepairOrder,FLROOPENHEAD.DATEOPENED DateOpened,NULL,/*Here you need missed the comma */
    DateClosed,
    (SELECT FLREPAIRSTAT.DESCRIPTION  FROM FLREPAIRSTAT
    WHERE FLREPAIRSTAT.REPAIRSTATID = FLROOPENHEAD.REPAIRSTATID) RepairOrderStatus,
    ....Hope this helps
    Regards,
    Achyut

  • Fetching the data in XML tags

    Hi,
    I am working on an upgrade from 11i to R12 on a Custom Payment Format Report.
    I need to upgrade the XML tags in .rtf file so that the desired values are displayed in pdf output.
    How can I fetch the values returned by a function in the report in the XML tag.
    Do I need to create custom tags for it? If yes then how and if No then kindly guide me how to fetch the values returned by the Function in the Report through the XML tag in R12 upgrade.
    Also kindly tell me how to use the substring function in such case.
    Regards,
    Karan

    Please check the Oracle Database 10g: XML DB Developer's Guild for example.

  • Exclude XML tags at runtime

    Hi,
    Is there a way to exclude specific XML tags at runtime. For example: If a value is zero for say tag <amount> , the tag must be excluded else the tag must be present.
    Can this be done.
    Regards,
    Ranjith

    Hi,
    >>>Requirement: Based on some conditions certain tags should be omitted and in some case the entire parent tag should be omitted from the XML file.
    >>Can this be acheived by some programming in ABAP.
    yes of course
    of you can remove that inside a mapping in PI
    Regards,
    Michal Krawczyk

  • XML tagged content flows in as one paragraph

    Hi gang,
    I am working on a small XML to InDesign project. I set up the document. It has paragraph and character styles. It has XML tags. It has tags mapped to styles. I built a model example of text and tagged it carefully, applying xml tags to text and not including the hard returns.
    When I import the XML and then drag it onto the page, the entire xml content shows up and most of it is correct. Most xml tags arrive as separate paragraphs that are correctly paragraph-styled.
    Except for just three xml tags. They all arrive within one paragraph. I need them to be on separate paragraphs. It ignores my xml-tagged model of text. All but these three tags show up correctly with hard returns separating them.
    How can I get the remaining three tags (which are 6 child elements deep in the xml structure) to show up as separate paragraphs instead of in one paragraph?
    Best to you,
    Mike Witherell in Maryland

    So, if the basic idea behind [Jongware]'s XSLT is what you need, you can modify it. For example, let's say you have three elements, foo, bar, and rad. foo and bar should be on their own lines.
    <?xml version="1.0" encoding="iso-8859-1" ?> 
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> 
    <xsl:template match="/ | node() | @*">
    <xsl:copy>
    <xsl:apply-templates select="@* | node()" />
    </xsl:copy>
    </xsl:template>
    <xsl:template match="foo|bar"> 
    <xsl:copy><xsl:apply-templates /></xsl:copy><xsl:text> 
    </xsl:text> 
    </xsl:template> 
    </xsl:stylesheet>
    This applies Jongware's line break template to the foo and bar tags, while copying everything else as is. You can add more tags to the second template by separating them with the bar character.

  • Expected Value and Overall limit value usage.

    Hi Sap Gurus,
    if the frame work order we have these 2 field Expected value and overall limit field value to be filled,
    and the system allows Invoice (or GR) up to the maximum of the overall limit value. and only if the value entered crosses the overall limit value the system issues a Error Message ( which is agreeable)
    but the logical requirement is that, if the value crosses the Expected value limit the system should display a warning message, indicating that the value has crossed the expected value.
    is there any config or note to be applied to get this funtionality.
    Thanks and regards
    Priya S

    Hi,
    Please refer to the Online documentation:                                      
             Material Management                                                   
             -> External Services Management                                       
                -> Procurement of Services: Processes                              
                   -> Accelerated and Simplified Processes                         
                      -> Use of Value Limits (for Unplanned Services)                                                                               
    Inside this documentation, it is stated that there is a variety of             
    limits (combinations) to be used:-                                                                               
    - Overall limit only                                                         
      - Overall limit and limit on services covered by contract item(s)            
      - Overall limit, limit on services covered by contract item(s),              
      - and other limit                                                            
      - Overall limit and other limit                                              
      - Overall limit on services from model specifications or standard            
        service catalog                                                            
      - Expected value                                                             
    The expected value is used in the update of the               
    PO item value and this is the value used in the release strategy.                   
    Here is the f1 help:                                                                               
    Expected value - ESUH-COMMITMENT                                                    
    Value that the unplanned services (or the materials) covered by this                
    item are not expected to exceed.                                                                               
    Use                                                                               
    If you are working with the release (approval) procedure for purchasing             
    documents, this value serves as the basis for a release strategy applied            
    to this document.                                                                               
    If you tick 'No limit',you don't need to enter 'Overall limit',but must             
    enter 'Expected value'.Because 'Expected value' will affect the release             
    strategy. Please read the note 440601 connected to this.     
    Concerning the variability of actual cost of a purchase order,                   
    expected value means that the unplanned services (or materials)                  
    covered by this item are not EXPECTED to exceed.                                 
    It is not mandatory that it has the same value like total limit value.           
    Expected value can exceed, it is used for comparison with total limit            
    value in cost control.                                                           
    Expected value can also be combined with unlimited total limit in a              
    purchasing document.                                                                               
    Regards,
    Edit

  • Error deserializing arguments, xml tag without a recognized type

    I am trying to run a webservice created using Weblogic Workshop 8.1sp2 that communicates
    with an ejb control. When I test in debug mode, I get the above error, specifically:
    <detail>
    <jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
    com.bea.wlw.runtime.core.request.RequestValidationException: Error deserializing
    arguments.
    Encountered an xml tag without a recognized type: the type must be declared with
    an xsi:type attribute.
    Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered an xml tag with
    out a recognized type: the type must be declared with an xsi:type attribute.
    </detail>
    I am passing a Request object to the jws method (to the ejb) that has a Collection
    as an instance member. This Collection references objects of another type, Param
    (code for both objects below). Before passing the object, I convert the Collection
    to an array of objects. When I call the operation via a java client, I get the
    above message.
    In Workshop, I've included the Request and Param classes as the parameter xml
    and the soap style is rpc. I've tested the ejb by itself and it is working fine.
    Request.java:
    import java.util.*;
    public class Request implements java.io.Serializable
    protected Collection params=null;
    public Collection getParams()
    { return params; }
    public void setParams(Collection data)
    { params=data; }
    Param.java:
    public class Param implements java.io.Serializable
    private String name=null;
    private Object value=null;
    public String getName()
    { return name; }
    public void setName(String data)
    { name = data; }
    public Object getValue()
    { return value; }
    public void setValue(Object data)
    { value=data; }
    Here's the code from the jws:
    public class MyWS implements com.bea.jws.WebService
    * @common:control
    private control.PSEjbControl psEJB;
    static final long serialVersionUID = 1L;
    * @common:operation
    * @jws:parameter-xml
    * include-java-types="mypackage.Request mypackage.Param"
    * @jws:protocol soap-style="rpc"
    public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
    System.out.println("arg0 : " + arg0);
    psEJB.addData(arg0);
    *Note: in the server console, arg0 comes through as null when called from my client.
    Here's the bit from my client:
    import weblogic.jws.proxies.*;
    import org.openuri.www.encodedTypes.Request;
    import org.openuri.www.encodedTypes.Param;
    public void go(String wsdl) throws Exception {
    MyWSSoap mw = null;
    mw = new MyWS_Impl().getMyWSSoap();
    Request req = new Request();
    Collection reqColl = new ArrayList();
    Param param1 = new Param();
    param1.setName("NAME");
    param1.setValue("Joe Tester");
    Param param2 = new Param();
    param2.setName("ADDRESS");
    param2.setValue("345 Test Drive");
    reqColl.add(param1);
    reqColl.add(param2);
    Object[] obs = reqColl.toArray();
    req.setParams(obs);
    mw.addData(req);
    Not sure if this enough to go by. Please let me know if you need more information.
    Any help is really appreciated. Thanks.

    Hi Keith,
    My only suggestion is to factor out the java.util.Collection (see the
    docs here [1]) with either primitive types or XMLBeans [2].
    Sorry, not much help. You might also ask your question in the workshop
    [3] newsgroup.
    Bruce
    [1]
    http://e-docs.bea.com/workshop/docs81/doc/en/integration/reference/refJavaClassConversion.html
    [2]
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/xmlbeans/conXMLBeansSupportBuiltInSchemaTypes.html
    [3]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.workshop
    Keith wrote:
    >
    Hi Bruce, thanks for the reply. I set the operation for document-style soap and
    still get the deserialization exception as mentioned in my original note. Below
    is the wsdl. Note: in my original note, the problematic operation was addData()
    which is now named addBusinessLocation(). As always, your help is greatly appreciated.
    Keith
    <?xml version="1.0" encoding="utf-8"?>
    <!-- @editor-info:link autogen="true" source="PublicServiceWS.jws" -->
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
    xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.openuri.org/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    targetNamespace="http://www.openuri.org/">
    <types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.openuri.org/"
    xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:ope="http://www.openuri.org/">
    <s:element name="addBusinessLocation">
    <s:complexType>
    <s:sequence>
    <s:element name="arg0" type="ope:Request" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="addBusinessLocationResponse">
    <s:complexType>
    <s:sequence/>
    </s:complexType>
    </s:element>
    <s:element name="getBusinessLocation">
    <s:complexType>
    <s:sequence/>
    </s:complexType>
    </s:element>
    <s:element name="getBusinessLocationResponse">
    <s:complexType>
    <s:sequence>
    <s:element name="getBusinessLocationResult" type="ope:Response" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="Response" nillable="true" type="ope:Response"/>
    <s:element name="repeat">
    <s:complexType>
    <s:sequence>
    <s:element name="in" type="s:string" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="repeatResponse">
    <s:complexType>
    <s:sequence>
    <s:element name="repeatResult" type="s:string" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="string" nillable="true" type="s:string"/>
    <s:complexType name="Request">
    <s:sequence>
    <s:element name="Params" type="ope:Collection" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="Collection">
    <s:sequence>
    <s:element name="item" type="s:anyType" nillable="true" minOccurs="0"
    maxOccurs="unbounded"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="Param">
    <s:sequence>
    <s:element name="Name" type="s:string" minOccurs="0"/>
    <s:element name="Value" type="s:anyType" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="Response">
    <s:complexContent>
    <s:extension base="ope:Request">
    <s:sequence/>
    </s:extension>
    </s:complexContent>
    </s:complexType>
    </s:schema>
    </types>
    <message name="addBusinessLocationSoapIn">
    <part name="parameters" element="s0:addBusinessLocation"/>
    </message>
    <message name="addBusinessLocationSoapOut">
    <part name="parameters" element="s0:addBusinessLocationResponse"/>
    </message>
    <message name="getBusinessLocationSoapIn">
    <part name="parameters" element="s0:getBusinessLocation"/>
    </message>
    <message name="getBusinessLocationSoapOut">
    <part name="parameters" element="s0:getBusinessLocationResponse"/>
    </message>
    <message name="repeatSoapIn">
    <part name="parameters" element="s0:repeat"/>
    </message>
    <message name="repeatSoapOut">
    <part name="parameters" element="s0:repeatResponse"/>
    </message>
    <message name="getBusinessLocationHttpGetIn"/>
    <message name="getBusinessLocationHttpGetOut">
    <part name="Body" element="s0:Response"/>
    </message>
    <message name="repeatHttpGetIn">
    <part name="in" type="s:string"/>
    </message>
    <message name="repeatHttpGetOut">
    <part name="Body" element="s0:string"/>
    </message>
    <message name="getBusinessLocationHttpPostIn"/>
    <message name="getBusinessLocationHttpPostOut">
    <part name="Body" element="s0:Response"/>
    </message>
    <message name="repeatHttpPostIn">
    <part name="in" type="s:string"/>
    </message>
    <message name="repeatHttpPostOut">
    <part name="Body" element="s0:string"/>
    </message>
    <portType name="PublicServiceWSSoap">
    <operation name="addBusinessLocation">
    <input message="s0:addBusinessLocationSoapIn"/>
    <output message="s0:addBusinessLocationSoapOut"/>
    </operation>
    <operation name="getBusinessLocation">
    <input message="s0:getBusinessLocationSoapIn"/>
    <output message="s0:getBusinessLocationSoapOut"/>
    </operation>
    <operation name="repeat">
    <input message="s0:repeatSoapIn"/>
    <output message="s0:repeatSoapOut"/>
    </operation>
    </portType>
    <portType name="PublicServiceWSHttpGet">
    <operation name="getBusinessLocation">
    <input message="s0:getBusinessLocationHttpGetIn"/>
    <output message="s0:getBusinessLocationHttpGetOut"/>
    </operation>
    <operation name="repeat">
    <input message="s0:repeatHttpGetIn"/>
    <output message="s0:repeatHttpGetOut"/>
    </operation>
    </portType>
    <portType name="PublicServiceWSHttpPost">
    <operation name="getBusinessLocation">
    <input message="s0:getBusinessLocationHttpPostIn"/>
    <output message="s0:getBusinessLocationHttpPostOut"/>
    </operation>
    <operation name="repeat">
    <input message="s0:repeatHttpPostIn"/>
    <output message="s0:repeatHttpPostOut"/>
    </operation>
    </portType>
    <binding name="PublicServiceWSSoap" type="s0:PublicServiceWSSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="addBusinessLocation">
    <soap:operation soapAction="http://www.openuri.org/addBusinessLocation"
    style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="getBusinessLocation">
    <soap:operation soapAction="http://www.openuri.org/getBusinessLocation"
    style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="repeat">
    <soap:operation soapAction="http://www.openuri.org/repeat" style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <binding name="PublicServiceWSHttpGet" type="s0:PublicServiceWSHttpGet">
    <http:binding verb="GET"/>
    <operation name="getBusinessLocation">
    <http:operation location="/getBusinessLocation"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="repeat">
    <http:operation location="/repeat"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    </binding>
    <binding name="PublicServiceWSHttpPost" type="s0:PublicServiceWSHttpPost">
    <http:binding verb="POST"/>
    <operation name="getBusinessLocation">
    <http:operation location="/getBusinessLocation"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="repeat">
    <http:operation location="/repeat"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    </binding>
    <service name="PublicServiceWS">
    <port name="PublicServiceWSSoap" binding="s0:PublicServiceWSSoap">
    <soap:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
    </port>
    <port name="PublicServiceWSHttpGet" binding="s0:PublicServiceWSHttpGet">
    <http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
    </port>
    <port name="PublicServiceWSHttpPost" binding="s0:PublicServiceWSHttpPost">
    <http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
    </port>
    </service>
    </definitions>
    Bruce Stephens <[email protected]> wrote:
    Hi Keith,
    As a quick test, you might try changing the protocol style to use
    doc/lit (@jws:protocol soap-style="document") to see if this provides
    another view on the real issue.
    Could you post the generated WSDL?
    Thanks,
    Bruce
    Keith wrote:
    I am trying to run a webservice created using Weblogic Workshop 8.1sp2that communicates
    with an ejb control. When I test in debug mode, I get the above error,specifically:
    <detail>
    <jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
    com.bea.wlw.runtime.core.request.RequestValidationException: Errordeserializing
    arguments.
    Encountered an xml tag without a recognized type: the type must bedeclared with
    an xsi:type attribute.
    Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered anxml tag with
    out a recognized type: the type must be declared with an xsi:type attribute.
    </detail>
    I am passing a Request object to the jws method (to the ejb) that hasa Collection
    as an instance member. This Collection references objects of anothertype, Param
    (code for both objects below). Before passing the object, I convertthe Collection
    to an array of objects. When I call the operation via a java client,I get the
    above message.
    In Workshop, I've included the Request and Param classes as the parameterxml
    and the soap style is rpc. I've tested the ejb by itself and it isworking fine.
    Request.java:
    import java.util.*;
    public class Request implements java.io.Serializable
    protected Collection params=null;
    public Collection getParams()
    { return params; }
    public void setParams(Collection data)
    { params=data; }
    Param.java:
    public class Param implements java.io.Serializable
    private String name=null;
    private Object value=null;
    public String getName()
    { return name; }
    public void setName(String data)
    { name = data; }
    public Object getValue()
    { return value; }
    public void setValue(Object data)
    { value=data; }
    Here's the code from the jws:
    public class MyWS implements com.bea.jws.WebService
    * @common:control
    private control.PSEjbControl psEJB;
    static final long serialVersionUID = 1L;
    * @common:operation
    * @jws:parameter-xml
    * include-java-types="mypackage.Request mypackage.Param"
    * @jws:protocol soap-style="rpc"
    public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
    System.out.println("arg0 : " + arg0);
    psEJB.addData(arg0);
    *Note: in the server console, arg0 comes through as null when calledfrom my client.
    Here's the bit from my client:
    import weblogic.jws.proxies.*;
    import org.openuri.www.encodedTypes.Request;
    import org.openuri.www.encodedTypes.Param;
    public void go(String wsdl) throws Exception {
    MyWSSoap mw = null;
    mw = new MyWS_Impl().getMyWSSoap();
    Request req = new Request();
    Collection reqColl = new ArrayList();
    Param param1 = new Param();
    param1.setName("NAME");
    param1.setValue("Joe Tester");
    Param param2 = new Param();
    param2.setName("ADDRESS");
    param2.setValue("345 Test Drive");
    reqColl.add(param1);
    reqColl.add(param2);
    Object[] obs = reqColl.toArray();
    req.setParams(obs);
    mw.addData(req);
    Not sure if this enough to go by. Please let me know if you need moreinformation.
    Any help is really appreciated. Thanks.

  • Exception Description: Unable to process XML tag [driver-class] with value

    Hi
    I'm newbie with TopLink. I try to write a litle application with TopLink:
    - First, I create a session.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="11g Technology Preview 3 (11.1.1.0.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="database-session">
    <name>dbsession</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log"/>
    <primary-project xsi:type="xml">META-INF/tlMap.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <user-name>dev</user-name>
    <password>F6A3DA7BA187330D4E11A713C42FF833</password>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@//10.10.10.31:1521/devdb1</connection-url>
    <bind-all-parameters>false</bind-all-parameters>
    <struct-converters/>
    </login>
    </session>
    </toplink-sessions>
    - Second, I create a Java Application ( Application1.java):
    package project2;
    import java.sql.ResultSet;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Vector;
    import oracle.toplink.queryframework.DataModifyQuery;
    import oracle.toplink.queryframework.SQLCall;
    import oracle.toplink.queryframework.StoredProcedureCall;
    import oracle.toplink.sessions.DatabaseSession;
    import oracle.toplink.sessions.Session;
    import oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader;
    import oracle.toplink.tools.sessionmanagement.SessionManager;
    import oracle.toplink.util.SessionFactory;
    public class Application1 {
    public Application1() {
    public static void main(String[] args) {
    // new Application1();
    String statement = "SELECT motdepasse,login FROM bou_courtier";
    SessionManager sessionmanager = SessionManager.getManager();
    System.out.println("test");
    // SessionFactory sessionfactory = new SessionFactory("META-INF/sessions.xml","dbsession");
    DatabaseSession session = (DatabaseSession)sessionmanager.getSession(new XMLSessionConfigLoader(),"dbsession",Thread.currentThread().getContextClassLoader());
    // Session session = sessionfactory.acquireSession();
    System.out.println("test");
    SQLCall sqlcall = new SQLCall(statement);
    session.executeNonSelectingCall(sqlcall);
    ResultSet rs = sqlcall.getResult();
    try {
    while(rs.next()){
    String strPass = rs.getString(1);
    String strLogin = rs.getString(2);
    System.out.println("Password :"+strPass+"---"+"Login :"+strLogin);
    } catch (SQLException e) {
    // TODO
    - Third, I build and run Application1.java in Jdevelopper 11g preview 3. Sadly, the result is a error:
    Exception in thread "main" Local Exception Stack:
    Exception [TOPLINK-9003] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: Unable to process XML tag [driver-class] with value [oracle.jdbc.OracleDriver].
    Internal Exception: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
         at oracle.toplink.exceptions.SessionLoaderException.failedToLoadTag(SessionLoaderException.java:83)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildDatabaseLoginConfig(TopLinkSessionsFactory.java:408)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildLogin(TopLinkSessionsFactory.java:336)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildDatabaseSessionConfig(TopLinkSessionsFactory.java:182)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildSession(TopLinkSessionsFactory.java:168)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildTopLinkSessions(TopLinkSessionsFactory.java:117)
         at oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:239)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:448)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:311)
         at project2.Application1.main(Application1.java:33)
    Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildDatabaseLoginConfig(TopLinkSessionsFactory.java:405)
         ... 8 more
    Process exited with exit code 1.
    Can you help me to debug this error. Many thanks
    user615555

    The internal error: "java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver"
    is stating it can't find your driver jar file on the classpath. You'll need to check that you've included your Database driver in the list of libraries on your classpath.
    Best Regards,
    Chris

  • Document contains too many nodes error when extracting xml tag name

    I Have a large xml file in which the tag contains ~: as the value.
    Now I am trying to extract all the tags which have ~: as the value and store that column using the following query and insert into a table.
    insert into space_md select distinct xmltype(extract(value(x), '/').getstringval()).getrootelement() COLUMN_NAME
    from gt_xmltype_tab gt, TABLE(XMLSequence(extract(gt.xmlfile1, '/ROWSET/ROW/*'))) x
    where instr(extract(value(x),'/').getstringval(),'~:') > 1;
    The xml file was generated using dbms_xmlgen.getxml. Table has 48 columns and around 4000 rows.
    My above insert query gave me an error of 31186 too many nodes error.
    I am using oracle version 10.2.0.3.
    Following are the set of commands I ran....
    SQL> insert into gt_xmltype_tab(xmlfile1)
    values(XMLType(bfilename('BKUP_RES','QC.xml'),nls_charset_id('AL32UTF8'))); 2
    1 row created.
    SQL> SQL>
    SQL> insert into restore_space_metadata select distinct 'QC', xmltype(extract(value(x), '/').getstringval()).getrootelement() COLUMN_NAME
    2 from gt_xmltype_tab gt, TABLE(XMLSequence(extract(gt.xmlfile1, '/ROWSET/ROW/*'))) x
    3 where instr(extract(value(x),'/').getstringval(),'~:') > 1;
    insert into restore_space_metadata select distinct 'QC', xmltype(extract(value(x), '/').getstringval()).getrootelement() COLUMN_NAME
    ERROR at line 1:
    ORA-31186: Document contains too many nodes
    Is there a better way of extracting the xml tag element name based on the xmltag content?
    There is one other table which has 172 columns but only 100 rows so it doesnt create any problem on that table.
    But this QC table has less columns but many many rows...
    Any suggestions

    There is a requiremnent of taking centain type of data backup and restore it.
    It was implemented on flat file approach which was giving errors.
    So it was implemented using XML approach.
    Read data, store in xml file and read from xml file and load it into table.
    Further, found that dbms_xmlstore is not able to handle tag only with whitespace
    and tried to use the loading xml file into xmltype table column and extract data.
    XMLTYPE column also has same problem of ignoring whitespace when used with extractvalue functions.
    So for the workaround I update xmlfile having only one more more whitespace in the tag to have ~: character once.
    After restoring data from xml to table I would run update qeury to update ~: to " ".
    Now instead of running blind update for all the tables and all the columns from ~: to " " I thouhgt whyy not create a xml file of tag having ~:
    along with its tablename.
    and thats where I found the problem of too many nodes...
    THe insert query you saw is populating table for table_name and column_name with tag having only ~: in it.
    I hope this gives you the fair idea of stuff I am doing.

Maybe you are looking for