IBM Support

PM31492: Parsing error with illegal character '?object_name?' when scanning Classic ASP code

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • While scanning a Classic ASP application, the following parsing
    error occurs:
    
    01/14/11 10:06:04 Info(10125) from SampleTask.cpp(200)
    Scan Message: Parsing error at
    
    C:\..\..\samplefile.asp(787,44) due to:
    illegal character
    
    
    From the asp file that was provided, the error seems to be
    occurring at the following line, particularly with
    ?object_name?:
    
      lc_methodInvocationXMLString += '?object_name?'+ tc_objectName
    + '?/object_name?' ;
    
    There are other statements similar to the line above, however,
    the parsing error is only reported for ?object_name?. It appears
    there is problem with the underscore. Any changes to the
    underscore here will rid the parsing error.
    
    It seems the problem could be a result of having Javascript code
    inside VBScript code. The parser got confused as it is
    complaining about the underscore in ?object_name? but only for
    this string exactly as it is. It seems to be confused because
    the project has defaulted the language to VBScript and there is
    a script tag that is changing the language to Javascript for
    some of the functions.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A parsing error was occurring while scanning a Classic ASP
    application.
    

Problem conclusion

  • This issue has been fixed so that the parsing error no
    longer occurs.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM31492

  • Reported component name

    AS SRC ED, SEC

  • Reported component ID

    5724Z3500

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-01-28

  • Closed date

    2011-03-23

  • Last modified date

    2011-03-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AS SRC ED, SEC

  • Fixed component ID

    5724Z3500

Applicable component levels

  • R800 PSN

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSS9LM","label":"IBM Security AppScan Source for Automation"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Edition":"","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
23 March 2011