SAXParser noSuchMethodError occurs in execution, not in debug with Forte

Hi gurus
Im having some trouble with parsing an XML file using xerces.
Basically all i want to do is take a list of XML files from a JFileChooser and then change the list to display the value of an attribute within that file instead of the original file name. The list bit is easy and i have the file chooser list and all the File objects within it.
My code is as follows
"factory" is a SaxParserFactory and "handler" is an instance of a DefaultHandler subclass that i have written.
ListModel lm = fileList.getModel();
        SAXParser saxparser ;
        try {
            saxparser = factory.newSAXParser();
            for (int i = 0; i < lm.getSize(); i++) {
                File theFile = (File)lm.getElementAt(i);
                // sax parse each file
                if (!theFile.isDirectory() && theFile.getName().endsWith(".xml"))
                saxparser.parse(theFile, handler);
        catch (Throwable t ) {
         t.printStackTrace();  
        }The problem i have is that running this normally throws an exception, a NoSuchMethodError on the saxparser.parse(theFile, handler) method. HOWEVER, when i run this using the Forte debugger it works fine when i step through each line.
Anyone got any ideas??
Mark

I think I'm having a similar problem. When I try to compile my code that is almost identical to yours, it gives me a "Cannot resolve symbol" error on the SAXParser.parse() method. It only gives me this error when I pass in a DefaultHandler object. If I use a HandlerBase object, it seems to work, but I'd obviously rather not use a deprecated object. I've tried passing in File objects, InputStreamObjects, just about any possibility that it SAYS the method supports, but Forte won't compile it, while it seems to compile fine using the command line. Any thoughts?

Similar Messages

  • Debug with Forte 4

    Hello !!!
    I'm trying to start a debug session in Forte 4. I click on the menu option Project/Debug project and I receive the followin message :
    File Test.java cannot be converted to servlet. It doesn't implement javax.servlet.Servlet interface.
    What's the problem ?
    Pascal.

    In the filesystem explorer, right-click on the file Test.java, choose "Properties", then hgo to the "Execution" tab. Check that Debugging is set to "Default Debugging", not to "J2EE Server Debugging".
    Hope this helps,
    /fcd
    >
    Hello !!!
    I'm trying to start a debug session in Forte 4. I
    click on the menu option Project/Debug project and I
    receive the followin message :
    File Test.java cannot be converted to servlet. It
    doesn't implement javax.servlet.Servlet interface.
    What's the problem ?
    Pascal.

  • Query execution not traced in ST03N

    Dear performance gurus,
    we want to perform some query performance checks in our BW 3.5 system. To measure the impact of aggregates and eliminate the OLAP cache effect on runtime we execute the queries from the query monitor (rsrt). With "execute and debug" we can decide for each execution if we want to use agrregates or not and we can switch of OLAP cache usage.
    For what ever reason these executions are not shown in ST03N (Expert mode). If we run the same queries from BEx Analyzer, runtime can be analyzed. But in BEx we don't have the necessary options regarding aggregates and OLAP cache.
    Are you aware of any settings in RSRT or ST03N to get the executions out of the query monitor also displayed in ST03N??
    Thanks in advance
    Thomas

    while running the report user is facing the below error.
    "query execution was not successful"This is a generic error which is reported in few docs.
    Discoverer Viewer fails Moving Pivot Table Columns: Query Execution was not Successful [ID 948027.1]
    Query Execution Not Successful Error In Viewer, Runs In Desktop And Plus [ID 404974.1]
    Discoverer 10g (10.1.2.3) Plus/Viewer Cumulative Patch 7 (9112482) Readme For Linux/Unix [ID 821844.1]
    Launching A Worksheet In Discoverer 10g / 11g Plus/Viewer On Linux Fails With 'Contact with backend server lost' [ID 871012.1]
    Discoverer 10g (10.1.2.3) Plus/Viewer Cumulative Patch 4 (7595032) Readme For Windows [ID 822183.1]
    Discoverer 10g (10.1.2.3) Plus/Viewer Cumulative Patch 3 (7319096) Readme For Linux/Unix [ID 761997.1]
    Running Some Reports In Discoverer Plus/Viewer 10.1.2.2 Are Failing With "An error occurred while attempting to perform the operation. The operation did not complete successfully." [ID 733603.1]
    Discoverer Viewer 10g (10.1.2.3) Passes A Blank Parameter As 'NULL' When Using A 'Drill to Link' [ID 820003.1]
    Query Execution was not Successful Error When Running a Workbook [ID 550684.1]
    -ORA-01722 Invalid number.Please check the data type of the column or the data type of the records in the table/view and make sure it match the data type of the column.
    Thanks,
    Hussein

  • Failure occurred in the execution of deployment request with ID '1219300288

    I deployed my JSF application from workspacestudio 1.1 (workshop for weblogic 10) to weblogic 10 server. It works fine for me.
    All other teammates are facing problem with their deployment. They get an error as
    <Failure occurred in the execution of deployment request with ID '1219300288452' for task '0'. Error is: 'weblogic.application.ModuleException: com.sun.faces.util.Util.getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;'
    Please can someone tell me the reason for this behaviour?
    Here's the stack trace:
    <Aug 20, 2008 11:31:15 PM PDT> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: 10.1.243.73, 127.0.0.1> <Aug 20, 2008 11:31:15 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> <Aug 20, 2008 11:31:15 PM PDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> log4j:WARN No appenders could be found for logger (com.sun.faces.config.ConfigureListener).
    log4j:WARN Please initialize the log4j system properly.
    <Aug 20, 2008 11:31:29 PM PDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1219300288452' for task '0'. Error is: 'weblogic.application.ModuleException: com.sun.faces.util.Util.getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;'
    weblogic.application.ModuleException: com.sun.faces.util.Util.getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:977)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         Truncated. see log file for complete stacktrace
    java.lang.NoSuchMethodError: com.sun.faces.util.Util.getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
         at com.sun.faces.application.WebappLifecycleListener.<clinit>(WebappLifecycleListener.java:67)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         Truncated. see log file for complete stacktrace
    >
    <Aug 20, 2008 11:31:30 PM PDT> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'ipro'.> <Aug 20, 2008 11:31:30 PM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'ipro'.> <Aug 20, 2008 11:31:30 PM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: com.sun.faces.util.Util.getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:977)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         Truncated. see log file for complete stacktrace
    java.lang.NoSuchMethodError: com.sun.faces.util.Util.getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
         at com.sun.faces.application.WebappLifecycleListener.<clinit>(WebappLifecycleListener.java:67)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         Truncated. see log file for complete stacktrace
    >
    <Aug 20, 2008 11:31:30 PM PDT> <Warning> <Deployer> <BEA-149252> <No deployment 'ipro' found for Operation stop.>

    I created JSF app in the workshop for weblogic 10 and submitted the code to source control.
    Team mates took the latest revision and build the project on their machine, which has same installation workshop for weblogic 10 as mine( we use same installler)
    Thus the project have same code no difference at all.

  • A nested exception occurred. Could not execute the function

    Hi Experts,
    Post upgrade of SAP Portal from 7.0 to 7.31, and when we click any application related to visual composer it shows the below error.
    and the default trace shows
    #2.0 #2014 07 22 02:34:11:243#0-700#Error#visualComposer_NWBIKit_logger#
    #EP-PIN-PRT#tc~epbc~prtc~core#C000A7EEAF63014200000002000019B9#11738650000000004#sap.com/com.sap.visualcomposer.BIKit#visualComposer_NWBIKit_logger#C921154#36##E220BC96117411E4C8F2000000B31E1A#519cf5b0118311e48b43000000b31e1a#519cf5b0118311e48b43000000b31e1a#0#Thread[HTTP Worker [@2079636611],5,Dedicated_Application_Thread]#Plain##
    A nested exception occurredCould not execute the function
    [EXCEPTION]
    com.sapportals.connector.execution.ExecutionException: A nested exception occurred. Could not execute the function.
    at com.sapportals.connectors.SAPCFConnector.SAPConnectorException.getNewExecutionLocalizedException(SAPConnectorException.java:193)
    at com.sapportals.connectors.SAPCFConnector.execution.functions.SAPCFConnectorInteraction.execute(SAPCFConnectorInteraction.java:617)
    at com.sap.portal.guimachine.bikit.query.bw.QueryViewFlatRfc.execute(QueryViewFlatRfc.java:209)
    at com.sap.portal.guimachine.bikit.designtime.bw.BWResultsetProcessor$ExecuteHandler.execute(BWResultsetProcessor.java:399)
    Please give us your valuable inputs to solve this.
    Thanks in advace!!
    Regards,
    Preetha Balan

    Hi Colin,
    Sorry for the delay in response!!
    Yes SAP gave patch VC70RUNTIME file to apply to get rid of this error.
    Even asked us to follow the sap note
    1532050 - Disabling error messages that pop up at runtime
    Hope this helps you
    Thanks,
    Preetha Balan

  • A Runtime Error Has Occured Do you wish to Debug? Line 90 Error: Object Expected

    A Runtime Error Has Occured Do you wish to Debug? Line 90
    Error: Object Expected
    This error is recieved when trying to open "The Fan" video
    news Page from Comcast, This error appears and when you select yes
    or no, the page comes up to install Adobe Flash Player, however
    even after installing it, the error still appears when attempting
    again, even after restart, this does not occur on Firefox, only
    IE

    Also I am on Windows Vista

  • "An error has occurred:Object reference not set to an instance of an object."

    This error message comes up with a user in InfoView.  The user schedules a report, updates parameters, and the report kicks off successfully.  But then a few minutes later, this error is received.    This occurs sporadically, regardless of the length of time of report or amount of data being retrieved.  Sometimes the report runs to completion.  Other times this error message occurs.
    Has anyone seen this before and have any thoughts?
    Thank you.
    “An error has occurred:Object reference not set to an instance of an object.”

    Are you able to replicate the issue both in Java and .NET InfoView?
    For .NET InfoView, sometimes the "An error has occurred: Object reference not set to an instance of an object" error shows up after the .NET Framework is upgraded to 2.0

  • Internal error Occured mapping can not be opened - while opening interface

    Hi Gurus,
    I Am using ODI 11g to load data from Oracel to Oracel database using different schemas as a source to load facts.
    for the first time its loading sucessfully and when i try to open the same interface to see the mapping its showing the errror like *"Internam error Occured mapping can not be opened"*
    Tis is very urgent to resolve as per my project neeed.
    Please suggest steps : how to resolve the issue.
    Thanks in Advance.
    regards
    sri

    While the iTunes app is being updated, you are correct, it cannot be opened.
    This is true of all Apple apps on your Mac.
    iTunes is not very large compared to other apps.  Let it update, then open it.

  • Error occured at Class not registered... Because Excel is not installed?

    I received the following error while trying to run an application built with LV 7.1:
    Error -2147221164 occured at Class not registered in Open_Excel.vi > Report_generation_excel_Tbeta WITH new layout.vi > Mirror_Cycling_Main tbeta-2.vi
    Could this be because Excel is not yet installed on the computer?  Will there be a problem if Excel is installed after the 7.1 Runtime Engine and LabVIEW drivers?
    Also, should I stay away from installing higher versions of Excel than what was originally used?
    Would it be possible to create a VI like this with the base version of 8.2?  I'm not certain what some of the controls on the front panel are and 7.1 does not give me additional information in the help dialog- if someone could give me the names of the various components circled in red in the attached JPG I would appreciate it. 
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    excel_vi.JPG ‏79 KB

    I'm using excel 2003 with labview 2009 v9.0f2. I have attached the VI here. Basically, Im just using the"excel get all data.vi" to read an excel file to create an array and that's where the error occurs.
    Max
    Message Edited by MaxXx on 12-07-2009 10:33 AM
    Attachments:
    Excel Get All Data.vi ‏26 KB
    Excel Get Data Specified Field.llb ‏209 KB

  • I am trying to update my software through the app store but for some reason an error occurs and will not allow me to do so

    I am trying to update my software through the app store but for some reason an error occurs and will not allow me to do so. And when i go online to log into my apple id account it states that there is an error. Can someone help me solve this issue, its annoying me?

    Apple’s having trouble with the iTunes Store servers right now. Wait for them to resolve the issue.
    (123935)

  • Why am I getting this message suddenly, when I've done dozens and dozens of projects without trouble at all: The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission)

    Why am I suddenly getting this message after I've been using iMovie for a few years now and have never had any such issue before:  The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission)

    Two things
    I meant search THIS FORUM
    Error minus49 not same as ERROR 49
    Yours Bengt W

  • After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • I have just installed Lightroom 5 on iMAC (OS X ver 10.9.4).  When I click on 'Import' to start working on some photos, the following error message pops up: "An internal error has occurred. Could not find namespace: AgCreativeCloudUtils".  Anyone know wha

    I have just installed Lightroom 5 on iMAC (OS X ver 10.9.4).  When I click on 'Import' to start working on some photos, the following error message pops up: "An internal error has occurred. Could not find namespace: AgCreativeCloudUtils".  Anyone know what the problem is and how to fix? Thanks.

    https://forums.adobe.com/search.jspa?q=Could+not+find+namespace%3A+AgCreativeCloudUtils&pl ace=%2Fplaces%2F1383621&depth=…

  • Apex 4.1 remote debugging with dbms_debug_jdwp - breakpoints not working

    Hi all,
    I'm using remote debugging with sqldeveloper like described here:
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/remote-debug/index.html
    http://sueharper.blogspot.com/2006/07/remote-debugging-with-sql-developer_13.html
    It works great with my sqldeveloper 3.0 and Apex 4.0.2
    Now i tried the same on two other servers with Apex 4.1
    The debugger is connecting. I can see the connect and diconnect message in the debug windows in the sqldeveloper.
    But the breakpoints are not working.
    Is the debugging working in Apex 4.1 for anyone here?
    Any ideas why the breakpoints are not working?
    BR,
    Björn

    Hi Björn,
    In your APEX application, have you tried updating the URL to include the parameter REMOTE, in order to initiate the remote debug connection? e.g.
    f?p=100:1:&SESSION.::REMOTE::Using the REMOTE parameter cuts out the need to specify debug code surrounding statements in the APEX PL/SQL.
    The steps are as follows:
    1) In SQL Developer, set break points in the the PL/SQL code, and compile using the "Compile for debug" option
    2) Execute the following two grants
    grant DEBUG CONNECT SESSION to <PARSE USER>;
    grant debug on <PROC> to public;  <-- might not need public but just whoever the DAD is running as.5) In SQL Developer, right-click on your connection and select the "Remote Debug..." context menu item. This will launch the "Listen for JPDA" dialog.
    5) Run the APEX Application page containing/activating the code you wish to debug, and update its URL with REMOTE in the debug parameter of the URL, and then hit Enter.
    6) Carry out the action on the page to trigger the breakpoint in your code e.g. submit the page, or click a button on the page, and you should be redirected to the breakpoint in the code in SQL Developer.
    Although I'm running with the latest release of SQL Developer, version 3.2.2 (http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html), and APEX 4.2, the 'REMOTE' parameter was introduced with our 3.1 release so will also be available for you to use in 4.1.
    Regards,
    Hilary

  • Plugin execution not covered by lifecycle configuration

    Hello.
    I'm trying to follow the steps in [1], "How-To Build AEM Projects using Apache Maven".
    Now, I'm following the step "Compiling JSPs as part of the Maven Compile Phase", in "HOW-TO WORK WITH JSPS" section.
    When I paste the "maven-jspc-plugin" and "remove-compiled-jsps" plugins sections to "myproject/content/pom.xml" (see [2]), I found these errors in Maven Console (I'm working with Eclipse):
    Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (execution: remove-compiled-jsps, phase: process-classes)
    Plugin execution not covered by lifecycle configuration: org.apache.sling:maven-jspc-plugin:2.0.6:jspc (execution: compile-jsp, phase: compile)
    Somebody with the same issue? Any advise to solve it?
    Thank you very much.
    [1] http://dev.day.com/docs/en/cq/aem-how-tos/development/how-to-build-aem-projects-using-apac he-maven.html
    [2]

    Thanks Ben!
    I've seen that the instructions in your link are the same as apply one of the quick fixes that Eclipse offers by default. That is, to ignore the plugin execution.
    Now, I don't have any errors in my project. Thank you very much!

Maybe you are looking for

  • Loading images in List as ImageIcon causes OutOfMemoryError.

    I am trying to figure out why the bit of code below is causing such a memory problem. I have the JRE starting up with 256MB of ram (got 2GB on system). I am loading 200K images at most, and after 3 or so images, I am getting lots of OutOfMemory excep

  • Different Delivery Addres and Different Payment Terms

    Hi Is possible to maintained different Delivery address for one Ship to party and Is possible to maintained Different Payment terms for one Customer Regards,

  • Error in Federated Search

    Hi, I have writte a federated search to search for external search engine (Verity). When i run the search it is calling the basicSearch method implemented in the remote server but after that it is throwing SAXParserException (Pasted the exception dow

  • Any advantages to using .mac vs. AIM account?

    I have both a .mac account and an AIM account. Currently I use my AIM account almost exclusively for iChat, and I was just wondering if there are any advantages to using my .mac over the free AIM. Also if friends of mine wanted to add my .mac name to

  • Isqlplus start problem oracle 9i

    problem in starting isqlplus. when i run this command ./apachectl start it gives me this error Syntax error on line 159 of /u01/app/oracle/product/9.2.0.1/Apache/Jserv/etc/jserv.conf: ApJServGroupMount: mounted URL group name does not exist 'group1'