Object parse error

I use the model of working with objects, saving them using toSource() in an objects insertLabel() method. Then when I need them again I just pull them out using extractLabel() and eval(). What I have recently found is that if you have a key with a leading 0, the toSource() eval() routine changes the key value. My work around for this was to include json2.js which can be found on github which adds a .stringify() and .parse() functionality to a global JSON object. I am wondering if this is just specific to indesign CS 6 on a PC or if others experience the same thing. Right now I only have the means of testing in this environment but I am curious as to if it reacts the same with in other environments.
var dict = {}
dict["0123"] = "test1";
dict["2345"] = "test2";
var tempzz = "";
for (var tempyy in dict)
    tempzz+="dict["+tempyy+"] =" + dict[tempyy] +"\n";
alert(tempzz);
var mySource = dict.toSource()
var myJSON = JSON.stringify(dict);
var evalSource = eval(mySource);
var evalJSON = JSON.parse(myJSON);
var tempzz = "";
for (var tempyy in evalSource)
    tempzz+="evalSource["+tempyy+"] =" + evalSource[tempyy] +"\n";
alert(tempzz);
var tempzz = "";
for (var tempyy in evalJSON)
    tempzz+="evalJSON["+tempyy+"] =" + evalJSON[tempyy] +"\n";
alert(tempzz);
Any input or clarity would be great! Thanks!

Hi bduffy,
This is a generic issue in ExtendScript. Object keys that sounds like numerals (as they only contains digits) are parsed as numeric values.
This explains why '0123' becomes '83' (the interpreter sees an octal number: 0123).
In regular JS:
alert( {'0123': "foobar"}.toSource() );
will display: ({'0123':"foobar"}),
but in ExtendScript you get: ({0123:"foobar"})
Thus, the quotes are lost in the source string and then the 0123 key will be improperly evaluated as 83!
IMHO this is a very good reason to never use numerals for associative keys in ExtendScript. When I really need to manage such things I use a prefix, like '_', that prevents the interpreter for parsing any number. Anyway using JSON.stringify() is still an option, although this forces you to include an external library.
@+
Marc
PS: Note that you have similar issue with a '0x' prefix:
alert( eval({'0x123' : "foobar"}.toSource()).toSource() );
// => ({291:"foobar"})

Similar Messages

  • DECODE SQL Function - Parsing error in Defining Objects in Universe Designe

    Hi,
    I have created a class and an object in BO XI R3 Universe designer.
    I am getting the parsing error while defining the object when using the custom SQL as
    select decode(matteraction,null,decode(matterissue,null,'MATTER','ISSUE'),decode(matterissue,null,'TYPE IS ACTION',' ACTIONu2019)) as TYPE from wh_cf_cmsu
    The object Type is "character", i have tried with Long Text, Number, Date as well and the same sql works fine by returning String values through TOAD.
    Do we have any constrains in using DECODE in BO XI R3 or any other syntax please....
    Please guide me in resolving this issue.
    Thanks,
    Karthik.

    Hi,
    1.At back end check the data type for matteraction column and define it accordingly in object definition.
    2. Try to break your select clause definition into smaller parts and check it where the exact issue is  as below
    i.select decode(matterissue,null,'TYPE IS ACTION',' ACTIONu2019) ............
    ii.select decode(matteraction,null,decode(matterissue,null,'MATTER','ISSUE') ..........
    iii.select decode(matteraction,null,decode(matterissue,null,'MATTER','ISSUE'),decode(matterissue,null,'TYPE IS ACTION',' ACTIONu2019)) as TYPE from wh_cf_cmsu

  • WDDX packet parse error when posting cfquery object

    I am posting a hidden form attribute of a wddx encrypted
    cfquery object to my action page. The data includes ampersands
    '&'. I have verified that the data getting set to the form
    variable has the ampersand encoded as '&' but when passed
    to the next page the ampersand has already been decoded. There fore
    I get the following error message when calling <cfwddx> with
    an action="wddx2cfml": "WDDX packet parse error at line 1, column
    1618. The entity name must immediately follow the '&' in the
    entity reference.."
    How can I make sure that the ampersand is encoded properly
    before deseriealizing by query object?
    Thanks,
    John

    Are you certain the & were converted to &amp; ? It
    seems to work for me.

  • XML Parse error while loading an XML file

    HI Folks,
    I was trying to load and XML file into BODS.. The XML file is well-formed and the same when tested in other tools  is getting loaded without any issues..
    I have created a XML-File format with the corresponding XSD..
    But here in BODS it is giving - Parse error
    1) when i try to view the data of the source XML in my dataflow ..it is giving "XML Parser Failed".. and not able to show data..
    2) When I run my job i get the same pares error - with details as under..
    ---> Error here is "Unable to recognize element 'TAB' " or some time is say " Element TAB should be qualified"
    Please guide with this if you have any info..thanks
    I'm pasting the XML source file format here for your reference:--
      <?xml version="1.0" encoding="iso-8859-1" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    - <asx:values>
    - <TAB>
    - <items>
    + <CUSTOMER_RECORD>
      <CUSTOMER_NUMBER>1111111111</CUSTOMER_NUMBER>
      <NAME_1>ABC</NAME_1>
      <NAME_2>OFM/COMMERCIAL ACCOUNTS</NAME_2>
      <STREET_1>31 CENTER DRIVE MCS2045</STREET_1>
      <STREET_2 />
      <CITY>BETHESDA</CITY>
      <STATE_CODE>MD</STATE_CODE>
      <POSTAL_CODE>20892-2045</POSTAL_CODE>
      <COUNTRY_CODE>US</COUNTRY_CODE>
      <ORDER_BLOCK />
      <ERP_CREATE_DATE>20040610</ERP_CREATE_DATE>
      <ERP_CREATED_BY>DGUPTA</ERP_CREATED_BY>
      <ERP_MODIFY_DATE>20120201</ERP_MODIFY_DATE>
      <ERP_MODIFIED_BY>LWOHLFEI</ERP_MODIFIED_BY>
      <INDUSTRY_CODE>0103</INDUSTRY_CODE>
      <ACCOUNT_GROUP_ID>0001</ACCOUNT_GROUP_ID>
      <SALES_NOTE />
      <ADDRESS_NOTE />
      <CUSTOMER_CLASSIFICATION_CODE>02</CUSTOMER_CLASSIFICATION_CODE>
      <GLN_NUMBER />
      <PREVIOUS_ACCT_NO />
      <ACCOUNT_TYPE />
      <GAG />
      <SDI_ID />
      <HOSP_ID />
      <HIN />
      <DUNS />
      <PO_BOX />
      <POB_CITY />
      <POB_ZIP />
      <PHONE_NUMBER>77777</PHONE_NUMBER>
      <EMAIL_DOMAIN />
      <REQUESTER />
      <ERP_SOURCE_SYSTEM>ECC</ERP_SOURCE_SYSTEM>
      </CUSTOMER_RECORD>
    - <SALES_ORG_DATA>
    + <item>
      <CUSTOMER_NUMBER>1111111111</CUSTOMER_NUMBER>
      <SALES_ORG>0130</SALES_ORG>
      <CUSTOMER_GROUP>03</CUSTOMER_GROUP>
      <ORDER_BLOCK_CODE />
      <ERP_SOURCE_SYSTEM>ECC</ERP_SOURCE_SYSTEM>
      </item>
    + <item>
      <CUSTOMER_NUMBER>1111111111</CUSTOMER_NUMBER>
      <SALES_ORG>0120</SALES_ORG>
      <CUSTOMER_GROUP>11</CUSTOMER_GROUP>
      <ORDER_BLOCK_CODE />
      <ERP_SOURCE_SYSTEM>ECC</ERP_SOURCE_SYSTEM>
      </item>
      </SALES_ORG_DATA>
      </items>
      </TAB>
      </asx:values>
      </asx:abap>

    Pierre,
    Depending on the object "myLastFile", the method openDlg might not even exist (if the myLastFile object is not a File object, for instance). And I do not see any need for the myLastFile anyhow, as you are presenting a dialog to select a file to open. I recommend using the global ChooseFile( ) method instead. This will give you a filename as string in full path notation, or null when no file was selected in the dialog. I am not sure what your ExtendScript documentation states about the return value for ChooseFile, but if that differs from what I am telling you here, the documentation is wrong. So, if you replace the first lines of your code with the following it should work:
    function openXMLFile ( ) {
        var filename = ChooseFile ( "Choose XML file ...", "", "*.xml", Constants.FV_ChooseSelect );
    While writing this, I see that Russ has already given you the same advice. Use the symbolic constant value I indicated to use the ChooseFile dialog to select a single file (it can also be used to select a directory or open a file - but you want to control the opening process yourself). Note that this method allows you to set a start directory for the dialog (second parameter). The ESTK autocompletion also gives you a fifth parameter "helplink" which is undocumented and can safely be ignored.
    Good luck
    Jang

  • Facing Parse Errors after upgrading database from 10g to 11g

    Hi,
    We are facing parse errors in the SQL's after upgrading database from 10g to 11g.
    Kindly look into below parse errors.
    ********************************** Parse Error *****************************************************
    Tue Aug 13 14:13:08 2013
    kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
    PARSE ERROR: ospid=15598, error=1446 for statement:
    SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
    Tue Aug 13 14:13:10 2013
    kksfbc 16173533: parse err=942 hd=3c387c4028 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
    PARSE ERROR: ospid=29813, error=942 for statement:
    Select feature from toad.toad_restrictions where user_name=USER or user_name in ( select ROLE from sys.session_roles)
    kksfbc 16173533: parse err=942 hd=3c97d83648 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
    PARSE ERROR: ospid=29813, error=942 for statement:
    SELECT password
    FROM SYS.USER$
    WHERE  0=1
    kksfbc 16173533: parse err=6550 hd=35185e4278 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
    ----- PL/SQL Stack -----
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    319e277050        30  anonymous block
    319e277050        57  anonymous block
    PARSE ERROR: ospid=29813, error=6550 for statement:
    BEGIN sys.dbms_profiler."146775420110782746251362632012"; END;
    kksfbc 16173533: parse err=942 hd=3c142d8600 flg=20 cisid=3266 sid=3266 ciuid=3266 uid=3266
    ----- PL/SQL Stack -----
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    319e277050        67  anonymous block
    PARSE ERROR: ospid=29813, error=942 for statement:
    SELECT 1 FROM plsql_profiler_data WHERE 0 = 1
    Please help.
    Regards
    Suresh

    Hi Suresh,
    Apologies for misunderstanding..
    Tue Aug 13 14:13:08 2013
    kksSetBindType 16173533-2: parse err=1446 hd=3c73061fb8 flg=100476 cisid=173 sid=173 ciuid=173 uid=173
    PARSE ERROR: ospid=15598, error=1446 for statement:
    SELECT ROWID,ORGANIZATION_CODE,PADDED_CONCATENATED_SEGMENTS,PRIMARY_UOM_CODE,REVISION,SUBINVENTORY_CODE,TOTAL_QOH,NET,RSV,ATP,ORGANIZATION_NAME,ITEM_DESCRIPTION,INVENTORY_ITEM_ID,ORGANIZATION_ID,LOCATOR_ID,LOCATOR_TYPE,ITEM_LOCATOR_CONTROL,ITEM_LOT_CONTROL,ITEM_SERIAL_CONTROL FROM MTL_ONHAND_LOCATOR_V WHERE (INVENTORY_ITEM_ID=:1) and (ORGANIZATION_ID=:2) order by ORGANIZATION_CODE,SUBINVENTORY_CODE,REVISION, organization_code, padded_concatenated_segments
    Assuming you see the above error message in the alert log file, which was your original post, follow the below steps:
    1 Get the 'ospid' value from the error
    2. Issue the below command:
    SQL> select request_id,ORACLE_PROCESS_ID
      2 from fnd_concurrent_requests
      3 where request_id = 15598;
    3. After obtaining the request_id
    4, Query it from the front-end using SYSADMIN responsibility
    Hopefully this should get you the respective concurrent report/program.
    Thanks &
    Best Regards,

  • Processing this item failed because of a PDF parser error. Input string was not in a correct format.

    Good Morning,
    We're having issues parsing several hundred PDF files located in two separate Record Center sites. All other PDF documents in the environment are being crawled and parsed without issue. I've verified the permissions for the Search service account, but that
    doesn't seem to be the issue. Searching for this particular error hasn't returned much, but I have ensured that the Search service account has been added to the necessary Local Security Policy objects and cleared the configuration cache. Any help would be
    greatly appreciated.
    Processing this item failed because of a PDF parser error. ( Error parsing document 'https://asdf.com/sites/HRRecords/asdf.pdf'. Input string was not in a correct format.; ; SearchID = 6642FEEF-6921-434E-B084-02809173D8A7 )

    This issue came back up for me as my results aren't displaying since this data is not part of the search index.
    Curious if anyone knows of a way to increase the parser server memory in SharePoint 2013 search?
    http://sharepoint/materials-ca/HPSActiveCDs/Votrevieprofessionnelleetvotrecarrireenregistrement.zip
    Processing this item failed because the parser server ran out of memory. ( Error parsing document 'http://sharepoint/materials-ca/HPSActiveCDs/Votrevieprofessionnelleetvotrecarrireenregistrement.zip'. Document failed to be processed. It probably crashed the
    server.; ; SearchID = 097AE4B0-9EB0-4AEC-AECE-AEFA631D4AA6 )
    http://sharepoint/materials-ca/HPSActiveCDs/Travaillerauseindunequipemultignrationnelle.zip
    Processing this item failed because of a IFilter parser error. ( Error parsing document 'http://sharepoint/materials-ca/HPSActiveCDs/Travaillerauseindunequipemultignrationnelle.zip'. Error loading IFilter for extension '.zip' (Error code is 0x80CB4204). The
    function encountered an unknown error.; ; SearchID = 4A0C99B1-CF44-4C8B-A6FF-E42309F97B72 )

  • RE: [iPlanet-JATO] Parse error in JSP parser in IAS6

    Hi Todd,
    removing the defaultValue="" attribute works.
    I have not got around to testing the SP3.
    BTW. The reason the default value tag was added was to stop Null pointer
    exceptions being thrown in the
    HrefTag.beginDisplay().
    buffer.append("?")
    .append(field.getQualifiedName()) // "FooHref"
    .append("=")
    .append(URLEncoder.encode(value.toString())); // "/foo"
    If you don't explicitly add a defaultValue="" to the jsp HREF tag ,
    HrefTag.getDefaultValue() returns null.
    Our hack was to add the following in HrefTag.java.
    if (value==null)
    value=getDefaultValue();
    //===========================
    //IP6 ADDED THE FOLLOWING LINE
    value = (value== null? "":value);
    //============================
    Is that pheasible work-around ? This eliminates the need to add
    defaultValue="" to all HREF tags.
    Also, I might as well point another behavior that we encountered with HREFS.
    In ND, if a HREF's display Field was bound to a column in DataObject and the
    particular record had no value, no URL would be rendered on the page.
    The HTML would look something like this( from memory ):
    <A
    HREF="../AppName/PgMsgMain.hrfSubject_onWebEvent(hrfSubject).994226335140? +
    ND URL STUFF"></A>
    In JATO by default a url get displayed with "null" as the link. ie.
    <a href="../AppName/PgMsgMain?PgMsgMain.hrfSubject= + URL STUFF">null</a>
    Our hack was modify the HrefTag.doEndTag method to not append "null" to the
    buffer.
    if (displayed)
    buffer.append(getBodyContent().getString().equals("null")? "":
    getBodyContent().getString()))
    // IP6 HACK buffer.append(getBodyContent().getString())
    .append("</a>");
    writeOutput(fireEndDisplayEvent(buffer.toString()));
    Is there a better way to do this?
    thanks
    Kostas
    -----Original Message-----
    From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=189233080150012190218067203043176090006144139218183041">toddwork@c...</a>]
    Sent: Tuesday, July 03, 2001 12:46 AM
    Subject: Re: [iPlanet-JATO] Parse error in JSP parser in IAS6
    Hey Kostas--
    I personally haven't seen this kind of error. Have you tried simplifying
    the expression inside the href tag? For example:
    <% Object foo =
    viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(
    vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID);
    %>
    <jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true">
    <%= foo %>
    </jato:href>
    Also, is there a different version you could upgrade to? iAS SP3 includes
    the Jasper compiler from Tomcat, which should behave quite differently.
    Todd
    ----- Original Message -----
    From: "Kostas Morfis" <kmorfis@i...>
    Sent: Tuesday, July 03, 2001 12:17 AM
    Subject: [iPlanet-JATO] Parse error in JSP parser in IAS6
    >
    Hi all,
    has anyone come across the following error in iPlanet?
    [02/Jul/2001 12:21:32:1] error: Exception: SERVLET-compile_failed: Failedin
    compiling template: /ras/ras/voyager4/pgAssignmentMatch.jsp, Parse errorin
    JSP parser. Missing endtag: /jato:href
    Exception Stack Trace:
    java.lang.Exception: Parse error in JSP parser. Missing endtag: /jato:href
    at com.netscape.jsp.JSP.parseBlock(Unknown Source)
    at com.netscape.jsp.JSP.parseUserTag(Unknown Source)
    at com.netscape.jsp.JSP.parseTag(Unknown Source)
    at com.netscape.jsp.JSP.parseNext(Unknown Source)
    etc etc.
    We have tested the page in Resin and it works fine.
    It seems the JSP parser has a problem with the following type of HREFtags.
    >
    <jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true"
    defaultValue=""><%=
    viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(com.cb
    >
    re.ras.voyager4.model.vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID)
    %></jato:href></font></td>
    anyone have any suggestions/thoughts/comments ?
    Kostas Morfis
    Senior Consultant
    iRise
    www.iRise.com
    [Non-text portions of this message have been removed]
    [email protected]
    [email protected]

    Hi Todd,
    removing the defaultValue="" attribute works.
    I have not got around to testing the SP3.
    BTW. The reason the default value tag was added was to stop Null pointer
    exceptions being thrown in the
    HrefTag.beginDisplay().
    buffer.append("?")
    .append(field.getQualifiedName()) // "FooHref"
    .append("=")
    .append(URLEncoder.encode(value.toString())); // "/foo"
    If you don't explicitly add a defaultValue="" to the jsp HREF tag ,
    HrefTag.getDefaultValue() returns null.
    Our hack was to add the following in HrefTag.java.
    if (value==null)
    value=getDefaultValue();
    //===========================
    //IP6 ADDED THE FOLLOWING LINE
    value = (value== null? "":value);
    //============================
    Is that pheasible work-around ? This eliminates the need to add
    defaultValue="" to all HREF tags.
    Also, I might as well point another behavior that we encountered with HREFS.
    In ND, if a HREF's display Field was bound to a column in DataObject and the
    particular record had no value, no URL would be rendered on the page.
    The HTML would look something like this( from memory ):
    <A
    HREF="../AppName/PgMsgMain.hrfSubject_onWebEvent(hrfSubject).994226335140? +
    ND URL STUFF"></A>
    In JATO by default a url get displayed with "null" as the link. ie.
    <a href="../AppName/PgMsgMain?PgMsgMain.hrfSubject= + URL STUFF">null</a>
    Our hack was modify the HrefTag.doEndTag method to not append "null" to the
    buffer.
    if (displayed)
    buffer.append(getBodyContent().getString().equals("null")? "":
    getBodyContent().getString()))
    // IP6 HACK buffer.append(getBodyContent().getString())
    .append("</a>");
    writeOutput(fireEndDisplayEvent(buffer.toString()));
    Is there a better way to do this?
    thanks
    Kostas
    -----Original Message-----
    From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=189233080150012190218067203043176090006144139218183041">toddwork@c...</a>]
    Sent: Tuesday, July 03, 2001 12:46 AM
    Subject: Re: [iPlanet-JATO] Parse error in JSP parser in IAS6
    Hey Kostas--
    I personally haven't seen this kind of error. Have you tried simplifying
    the expression inside the href tag? For example:
    <% Object foo =
    viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(
    vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID);
    %>
    <jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true">
    <%= foo %>
    </jato:href>
    Also, is there a different version you could upgrade to? iAS SP3 includes
    the Jasper compiler from Tomcat, which should behave quite differently.
    Todd
    ----- Original Message -----
    From: "Kostas Morfis" <kmorfis@i...>
    Sent: Tuesday, July 03, 2001 12:17 AM
    Subject: [iPlanet-JATO] Parse error in JSP parser in IAS6
    >
    Hi all,
    has anyone come across the following error in iPlanet?
    [02/Jul/2001 12:21:32:1] error: Exception: SERVLET-compile_failed: Failedin
    compiling template: /ras/ras/voyager4/pgAssignmentMatch.jsp, Parse errorin
    JSP parser. Missing endtag: /jato:href
    Exception Stack Trace:
    java.lang.Exception: Parse error in JSP parser. Missing endtag: /jato:href
    at com.netscape.jsp.JSP.parseBlock(Unknown Source)
    at com.netscape.jsp.JSP.parseUserTag(Unknown Source)
    at com.netscape.jsp.JSP.parseTag(Unknown Source)
    at com.netscape.jsp.JSP.parseNext(Unknown Source)
    etc etc.
    We have tested the page in Resin and it works fine.
    It seems the JSP parser has a problem with the following type of HREFtags.
    >
    <jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true"
    defaultValue=""><%=
    viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(com.cb
    >
    re.ras.voyager4.model.vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID)
    %></jato:href></font></td>
    anyone have any suggestions/thoughts/comments ?
    Kostas Morfis
    Senior Consultant
    iRise
    www.iRise.com
    [Non-text portions of this message have been removed]
    [email protected]
    [email protected]

  • Parsing error when running a SOAP client

    New to SOAP. Tring to get get it up an running using some of the Oreilly examples from Java and XML. Anyone with any suggestions to fix the error I am getting. Thanx in advance.
    1>This is my simple SAX client:
    package xml;
    import java.net.URL;
    import java.util.Vector;
    import org.apache.soap.Constants;
    import org.apache.soap.Fault;
    import org.apache.soap.rpc.Call;
    import org.apache.soap.SOAPException;
    import org.apache.soap.rpc.Parameter;
    import org.apache.soap.rpc.Response;
    public class CDAdder {
    public void add(URL url, String title, String artist) throws SOAPException {
    System.out.println("Adding CD titled '" + title + "' by '" + artist + "'");
    //Build the call object
    Call call = new Call();
    call.setEncodingStyleURI("urn:cd-catalog");
    call.setMethodName("addCD");
    call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    //Setup the parameters
    Vector params = new Vector();
    params.addElement(new Parameter("title",String.class,title,null));
    params.addElement(new Parameter("artist",String.class,artist,null));
    call.setParams(params);
    //Invoke the call
    Response response;
    response = call.invoke(url,"");
    if(!response.generatedFault()) {
    System.out.println("Successful CD Addition");
    } else {
    Fault fault = response.getFault();
    System.out.println("Error encountered: " + fault.getFaultString());
    public static void main(String[] args) {
    try {
    URL url = new URL("http://localhost:8081/soap/servlet/rpcrouter");
    String title = "Riding the Midnight Train";
    String artist = "Doc Watson";
    CDAdder adder = new CDAdder();
    adder.add(url, title, artist);
    } catch(Exception e) {
    e.printStackTrace();
    2>My service:
    package javaxml2;
    import java.util.Hashtable;
    public class CDCatalog {
    private Hashtable catalog;
    public CDCatalog() {
    catalog = new Hashtable();
    catalog.put("Nickel Creek", "Nickel Creek");
    catalog.put("Let it Fall", "Sean Watkins");
    catalog.put("Aerial Boundaries", "Michael Hedges");
    catalog.put("Taproot", "Michael Hedges");
    public void addCD(String title, String artist) {
    if ((title == null) || (artist==null)) {
    throw new IllegalArgumentException("Title or Artist cannot be null.");
    catalog.put(title, artist);
    public String getArtist(String title) {
    if (title == null) {
    throw new IllegalArgumentException("Title cannot be null.");
    return (String)catalog.get(title);
    public Hashtable list() {
    return catalog;
    3>My deployement descriptor:
    <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
    id="urn:cd-catalog"
    >
    <isd:provider type="java"
    scope="Application"
    methods="addCD getCD list"
    >
    <isd:java class="javaxml2.CDCatalog" static="false" />
    </isd:provider>
    <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
    </isd:service>
    4>I have deployed the SOAP Service:
    D:\XML-RPC\javaxml2>java org.apache.soap.server.ServiceManagerClient http://loca
    lhost:8081/soap/servlet/rpcrouter deploy xml/CDCatalogDD.xml
    D:\XML-RPC\javaxml2>java org.apache.soap.server.ServiceManagerClient http://loca
    lhost:8081/soap/servlet/rpcrouter list
    Deployed Services:
    urn:cd-catalog
    D:\XML-RPC\javaxml2>
    Error when I try using the service:FYI: I am running the client with JBuilder 2005
    Adding CD titled 'Riding the Midnight Train' by 'Doc Watson'
    Error encountered: parsing error: org.xml.sax.SAXParseException: The value of the attribute "prefix="xmlns",localpart="ns1",rawname="xmlns:ns1"" is invalid. Prefixed namespace bindings may not be empty.

    call.setEncodingStyleURI("urn:cd-catalog");
    in the SOAP client has to be
    call.setTargetObjectURI("urn:cd-catalog");

  • EMOD - Parse error while using merge fields

    Hello Everyone,
    We are using EMOD for email campaigns. We have renamed "Contact" object to "Rep Contact". When I insert merge fields on Rep Contact object, I get parse error message...
    Parse error in file at line 40: Could not find matching '}' for reference to variable at line 39
    Has anyone else come across this? Are there any restrictions in EMOD for using merge fields?
    Thanks.

    Thanks VK. I checked the source code and it is still perplexing why this error is coming up. It works fine without merge fields. I am pasting the section of html code with merge fields...
    <tr>
    <td valign="top" width="25" bgcolor="#ffffff"> </td>
    <td valign="top" bgcolor="#ffffff"><font face="Arial, Helvetica, sans-serif" style="font-size: 12px">Hello</font> ${Rep Contact.First Name} 
    <p><font face="Arial, Helvetica, sans-serif" style="font-size: 12px">What if there&rsquo;s another flash crash? What if we enter a double dip? These are just a few fears weighing heavily on investors&rsquo; minds in today&rsquo;s environment of uncertainty. <sup>1</sup> </font></p>
    <font face="Arial, Helvetica, sans-serif" style="font-size: 12px">
    <p>View or download: <a>3 ways to address risk-averse clients&rsquo; needs</a>.</p>
    </font>
    </td>
    </tr>

  • Can anyone help me fix an XML Parsing Error?

    Hi I have been working with a form in a PDF and suddenly it won't let me open it. The following error pops up: "Xml parsing error: not well-formed (invalid token) (error code 4), line 71537, column 695 of file" and I haven't been able to come up with a solution. A lot of data has been entered into this file for a grant that my clinic is applying for, so if anyone can help me I would be greatly appreciative.

    Hm, now I get:
    JPVNCManager.java:211: warning: [unchecked] unchecked cast
    found : java.lang.Object
    required: java.util.Vector<java.lang.String>
    Vector<String> v1 = (Vector<String>)o1;
    ^
    JPVNCManager.java:212: warning: [unchecked] unchecked cast
    found : java.lang.Object
    required: java.util.Vector<java.lang.String>
    Vector<String> v2 = (Vector<String>)o2;
    ^
    JPVNCManager.java:207: warning: [unchecked] unchecked conversion
    found : java.util.Vector
    required: java.util.List<T>
    Collections.sort(main, new Comparator()
    ^
    JPVNCManager.java:207: warning: [unchecked] unchecked conversion
    found : <anonymous java.util.Comparator>
    required: java.util.Comparator<? super T>
    Collections.sort(main, new Comparator()
    ^
    JPVNCManager.java:207: warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>,java.util.Comparator<? super T>) in java.util.Collections is applied to (java.util.Vector,<anonymous java.util.Comparator>)
    Collections.sort(main, new Comparator()
    ^
    Thanks,
    James

  • RE: Getting ORA-01003: no statement parsed error

    Hi,
    It looks familiar to some of the error which I encountered before. The
    situation was a for ... select loop without explicit begin/end transaction.
    The reason given by Forte consultant is that:
    The dbsession used by the for ... select loop needed to be locked by a
    begin/end transaction otherwise, there may be chances that the dbsession is
    being acquired by some other sql that unknowingly corrupted the cursor
    implicitly built for that for ... select loop.
    Hopes this help.
    Regards,
    Peter Sham.
    -----Original Message-----
    From: Robinson, Richard [SMTP:[email protected]]
    Sent: Friday, April 16, 1999 12:12 AM
    To: '[email protected]'
    Subject: Getting ORA-01003: no statement parsed error
    Any clues? We're getting the following error on a server side
    object that
    interfaces to Oracle:
    SYSTEM ERROR: Select failed for SQL statement in project xxxx, class
    yyy,
    method ...
    error from database is: ORA-01003:no statement parsed
    Class: qqdb_ResourceException
    Detected at: qqdb_OracleVendorInfo::DoOexfet
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Somebody asked nearly the same question Re: EMERGENCY! pl/sql syntax error!!!

  • As2 Adapter Parser error

    Hi
    I am trying to send data from Rfc to As2 .In the As2 adapter i am getting the below error while
    parsing
    MP: exception caught with cause com.sap.aii.converter.x12.xml2x12.XML2X12Exception: XML-Parser error occured while parsing: Cannot process close tag S_GS: while trying to invoke the method java.lang.String.trim() of a null object loaded from field com.sap.aii.converter.x12.xml2x12.handler.XML2X12Handler.interchangeSender of an object loaded from local variable 'this'
    Error
    Exception caught by adapter framework: XML-Parser error occured while parsing: Cannot process close tag S_GS: while trying to invoke the method java.lang.String.trim() of a null object loaded from field com.sap.aii.converter.x12.xml2x12.handler.XML2X12Handler.interchangeSender of an object loaded from local variable 'this'
    Error
    Transmitting the message to endpoint <local> using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.converter.x12.xml2x12.XML2X12Exception: XML-Parser error occured while parsing: Cannot process close tag S_GS: while trying to invoke the method java.lang.String.trim() of a null object loaded from field com.sap.aii.converter.x12.xml2x12.handler.XML2X12Handler.interchangeSender of an object loaded from local variable 'this'
    I have attached the screen shot of the mapping the module i have used
    Thanks
    Jai

    Hi,
    I think you want to take the advice from Harish.  The most likely cause is that the converter module is expecting the XML tag S_GS and it does not exist.
    Regards,
    Ryan Crosby

  • How to Resolve Parse Errors in Universe

    Dear All,
    Integration of Business objects with SAP BI Solutions have opened up a large visibility for the customers in viewing their organizational data in several forms. Thanks to the Integration kit for SAP Solutions.
    Coming to my problem.
    We have created a universe on top of BI Query which was having all the charecteristics and Keyfigures of the multiprovider. Though it is not the suggested best practice, our customer wants to go with this approach in order to keep the minimal universe count.
    In some of the situvations the changes made to the query is causing Parsing errors in the universe.
    Let me explain with an example.
    We have created a universe for Service Level Orders on top of a BI Query which has around 100 charecteristics and 100keyfigures. Later I have added 2 charecteristics and changed the description of one field. Sales order item(0ORD_ITEMS) to No.of Order items. After refreshing the universe I got the mentioned changes in the universe. But when I checked the integrity of that universe it has thrown 250 errors. saying Parse Failed.
    The same case I have faced when removing an object from query.
    Can anyone guide me on how to correct these parse errors. I mean How to trace the universe. A step by step process will be highly appreciated.
    We are using Windows, BOXI 3.1
    Below is the Error message I am getting while doing the Parsing.
    http://www.mediafire.com/?mktd0xx1ktz
    Thanks and Best Regards
    Jagadeesh Ambati
    Edited by: Jagadeesh Ambati on Jan 4, 2010 3:04 PM

    Dear Ingo,
    Thanks for your quick response. I tried creating a new universe, for the first time The parse was successful for all the fields, After adding a field to the query, the Parse has failed for many fields with the same error.
    You said the error is indicating issues on BW side, Can you please let me know, what are all the issues cause this error in BW side.
    More over the interesting part is, if I change the properties of the parse failed characteristic to "Delegate search", Parsing is showing as OK.
    This is the problem we have been facing for most of the universes; Due to our requirements we need to change the query frequently and the same should be reflected in universe. Due to this error, we are unable to go forward.
    If we create a new universe with the same name(Overwriting on the existing one), The reports which are existing on the universe are not working.
    Please suggest me how can we trace this problem
    Thanks and Best Regards
    Jagadeesh Ambati

  • XML parsing error, whitespace expected

    I'm seeing this "XML parsing" error in the SSRS Logs once in a while and I don't know what is causing it. The weird thing is that the report doesn't get this error everytime, most of the time it will work. I originally thought that
    it might be the data that is being returned but I don't know if this is the case. Usually when a user gets an error, they'll just run it again later and it'll work the 2nd time. I looked at the report parameters in the ExecutionLogStorage table and the same
    parameters are passed in each time.
    Does anyone have any ideas of where I can look to get to the bottom of this one? Any help is appreciated.
    The actual error from the logs is below:
    processing!ReportServer_0-26!fdc!05/08/2014-13:33:12:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'DataSet1'. ---> System.Data.SqlClient.SqlException: XML parsing: line 1, character 121, whitespace expected
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
    at System.Data.SqlClient.SqlDataReader.get_MetaData()
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
    at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
    at Microsoft.ReportingServices.DataExtensions.SqlCommandWrapperExtension.ExecuteReader(CommandBehavior behavior)
    at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)
     Thanks,
    -Song

    Hi Song,
    Sorry for the delay.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Parser Error In Portlet Startup

    We have a portlet application that uses Crystal Reports. It uses the spring framework and runs fine in our development environment (Pluto) but when trying to deploy on the production environment (WebSphere) we get an xml parsing error during the startup. Removing the Crystal Reports jars solves the problem but of course the reports portion of the application won't work. So is there a different set of jars for portal and specifically WebSphere? Or is there xml related functionality in the CR jars  and would eliminating them from the lib solve the problem since there may be framework jars that provide the same functionality in the production environment?
    Here's a snippet of the error:
    Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/sys-cfg/applicationContext.xml]; nested exception is java.lang.VerifyError: javax/xml/parsers/DocumentBuilder.setEntityResolver(Lorg/xml/sax/EntityResolver;)

    The only officially tested and fully supported product for Crystal Reports on Portal Servers/Portlets are the JSR-168 Portal Integration Kits supplied with BusinessObjects Enterprise or Crystal Reports Servers. 
    There's currently not a fully tested Portal solution for Crystal Reports Java Reporting Component.
    There's no different sets of jars for different Web Application Servers with any Business Objects products.
    Are you able to isolate which XML file contains the problematic schema?  I'm assuming the error message you have does not show this info.
    Other than that, a possible difference is that different XML parsers are being used between your dev and prod web app servers.   I've known issues where the XML parser supplied with Crystal was incompatible with the shared default parser supplied with Web App Servers.
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • Problem with recovering from windows phone 10 to 8.1

    I installed windows phone 10 on my phone (lumia 730) and after a survey decided to turn back to WP 8.1. So, I installed windows phone recovery tool on my lap top and connected my phone with in. In the middle of recovery process the connection failed

  • Save transparency in CMYK format

    I just create two  new documents in CMYK color space for print press. It`s like a bio sheets with letters and a photo of mine.I want to print that in a special texture paper that i have so i want to preserve document`s transparency. So far i see that

  • Another free new ebook on using iBooks Author

    http://ibooksauthorguide.wordpress.com/ Haven't looked at it yet, but this one is done with iBooks Author, by Charles Stack.

  • Clearing remembered login details on Firefox/Hotmail

    I sometimes use Firefox as my browser (because you can't download files from some sites, including some UK Government sites, when using Safari). I use Hotmail as my email, not Mail. When you type in your email address in Hotmail - when using Firefox

  • Connecting CV to AV

    Hello, We are looking for a way to join the attribute views into calculation views. We tried to join the attribute view in the calculation view with left outer join: But when we run a query against this CV  even if we don't select any field from the