AC-00023: Error: Exception: java.io.FileNotFoundException

Hi,
We are using Oracle Apps 11i on Windows 2003. Sometimes when I run autoconfig on Application Tier I get the following error.
This happens when Maintenance Mode is Enabled. But sometimes happens even when the Maintenance Mode is Disabled. Sometimes re-booting the server resolves this issue. This comes mostly for JTF_TOP.
Configuring IGS_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring PA_TOP........COMPLETED
Configuring JTF_TOP.......AC-00023: Error: Exception: java.io.FileNotFoundException: E:
\EBSTEST\ebstestappl\admin\EBSTEST_dvlp004.xml (The requested operation cannot be performed on
a file with a user-mapped section open) occured while writing Context file - E:\EBSTEST\ebstest
appl\admin\EBSTEST_dvlp004.xml
COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Any suggestion to resolve this issue will be appreciated.
Thanks,
Thiru

Hi,
Even when the error comes the autoconfig completes sucessfully. Even today I go this error and I rebooted the server and it worked fine.
Very strange.
Actually I was applying Autoconfig Rollup Patch S (6372396). Many times I have seen this error in Windows platform.
Rgds

Similar Messages

  • PeopleSoft XML Publisher report error with java.io.FileNotFoundException

    Hi,
    I have created two reports using XML Publisher in Peoplesoft Financials. The two reports are not related and they were submitted for processing separately. The first report completes without any issues. The second report results in error with the following message:
    09.11.17 ..(CIS_POTRPT.XML_FILE.Step03) (PeopleCode)
    [012309_091118154][oracle.apps.xdo.template.FOProcessor][EXCEPTION] IOException is occurred in FOProcessor.setData(String) with 'files/cis_potrpt.xml'.
    [012309_091118500][oracle.apps.xdo.template.FOProcessor][EXCEPTION] java.io.FileNotFoundException: files/cis_potrpt.xml (A file or directory in the path name does not exist.)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java(Compiled Code))
         at java.io.FileInputStream.<init>(FileInputStream.java:89)
         at oracle.apps.xdo.template.FOProcessor.getInputStream(FOProcessor.java:1316)
         at oracle.apps.xdo.template.FOProcessor.getXMLInput(FOProcessor.java:1100)
         at oracle.apps.xdo.template.FOProcessor.setData(FOProcessor.java:372)
         at com.peoplesoft.pt.xmlpublisher.PTFOProcessor.generateOutput(PTFOProcessor.java:53)
    2009-01-23-09.11.18.000418 AePcdExecutePeopleCode [174] Exception logged: RC=100.
    Error generating report output: (235,2309) PSXP_RPTDEFNMANAGER.ReportDefn.OnExecute Name:ProcessReport PCPC:51552 Statement:1153
    Called from:CIS_POTRPT.XML_FILE.GBL.default.1900-01-01.Step03.OnExecute Statement:8
    2009-01-23-09.11.18.000617 DoStepActions [1797] Exception logged: RC=100.
    Process 598607 ABENDED at Step CIS_POTRPT.XML_FILE.Step03 (PeopleCode) -- RC = 24 (108,524)
    In the process monitor detail > view log/trace page, the xml file is accessible so the file was generated to a valid directory.
    The weird thing is I was able to run this report without any issues few weeks ago although another user also ran into same error. The PeopleCode step that has been identified is essentially same in the two reports. I checked the app server and the directory does exist as well as the xml files for the two reports. The problem does not occur in test environment, just in production. Any help would be appreciated.

    We encounter the same problem. Did you get the answer for this issue? Thanks in advance.

  • (error code = 200; message="Java error"; exception = [java.lang.Exception])

    Hi, I have several times tried to install ABAP Trial, but failed.
    So I need your help.
    As soon as I set up XP, I download and install the newest Java, then started installation of ABAP Trial.
    But at the end I just get an error message as belows.
    I hope you will guide me correct direction.
    Thanks for reading & Have a good day!
    (Jul 11, 2008 7:38:06 AM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, An error occurred and product installation failed.  Look at the log file C:\SAP\NSP\log.txt for details.
    (Jul 11, 2008 7:38:06 AM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    STACK_TRACE: 15
    ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.execute(StepWrapperInstallFiles.java:254)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllSteps(StepWrapperInstallFiles.java:224)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllInstallationSteps(StepWrapperInstallFiles.java:177)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.install(StepWrapperInstallFiles.java:268)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    (Jul 11, 2008 7:43:08 AM), Install, com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct, err, An error occurred and product uninstallation failed.  Look at the log file C:\SAP\NSP\log.txt for details.
    (Jul 11, 2008 7:43:08 AM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    STACK_TRACE: 15
    ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.execute(StepWrapperInstallFiles.java:254)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllSteps(StepWrapperInstallFiles.java:224)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllUninstallationSteps(StepWrapperInstallFiles.java:192)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.uninstall(StepWrapperInstallFiles.java:313)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.uninstallProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.processActionsFailed(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    Hi YUN SEOK,
    I got the same error than you when I tried to install SAP NetWeaver ABAP Trial Version. 
    Could you help me in giving exactly the link you wrote.
    https://www.sdn.sap.com/irj
    Where is located exactly the answer ?
    I looked at this link but I did not find the answer.
    So could you give me exactly the location in this link ?
    Thanks in advance.
    STD,

  • ProductException: (error code = 200; message="Java error"; exception = [jav

    hello
    Take me if you have the power to fa is that I have a good time trying to install the demo of sap, but I fail to do so últimamemente follows all the steps but in the end I get the following error java:
    productException: (error code = 200; message="Java error"; exception = java.lang.Exception)
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.execute(StepWrapperInstallFiles.java:2 54)
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.executeAllSteps(StepWrapperInstallFile s.java:224)
    at com.sap.installshield.sdcstepswrapper.StepWrapperI nstallFiles.executeAllInstallationSteps(StepWrappe rInstallFiles.java:177)
    at java.lang.Thread.run(Unknown Source)
    may be that the Java Virtual Machine? what virtual machine
    it is recomd
    i don´t know how to correct them
    thank you very much
    bye

    Hello,
    This looks like a known issue error code: 200
    check this document:
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/6055f523-df6e-2910-f0bf-acccbb0a7d37
    Also, please make sure the service SAPNSP_00 @ OS level is running. If not, start the service manually and proceed with the installation.
    Hope it helps,
    Regards,
    Satish.
    Edited by: Satish Arram on Oct 10, 2008 6:30 PM

  • Dynamic Configuration Error:  Exception:[java.lang.IllegalArgumentException

    Hi All,
    I am using dynamic configuration to put a string to the message header. i have created a tilde delimited string with the length more than 200(length=928). During mapping i am using dynamic configuration to put this in SOAP header. But everytime i execute scenario i get an error:
    "com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping; root message: Exception:[java.lang.IllegalArgumentException: Value is too long (928/200): "
    Is there a limit to the length of the string that can be placed in the dynamic configuration ?
    Please help.
    Regards,
    Meenakshi Pradhan

    meenakshipradhan wrote:>
    > "com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping; root message: Exception:[java.lang.IllegalArgumentException: Value is too long (928/200): "
    >
    I think the above error does say about that..!! Try putting data like 201 chars and the 200 chars, then see what happens.
    VJ

  • 500 Internal Server Error OracleJSP: JSP Error: Exception:java.lang.NullPoi

    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/ForecastVsActualWithProgressBarWebApp/htdocs/forecastvsactualportlet/processing.jsp
    Exception:
    java.lang.NullPointerException at java.net.URLClassLoader$1.run(URLClassLoader.java:190) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:256) at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:246) at oracle.jsp.parse.JspRTTag.<init>(JspRTTag.java:149) at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:575) at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:693) at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:184) at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:154) at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:428) at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:284) at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:483) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:542) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:305) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
    --------------------------------------------------------------------------------

    Is this related to a download from Oracle website?
    You might want to post more information and the "question" here.

  • Sometime fail to call servlet ERROR message: java.io.FileNotFoundException: Response: '500: Internal Server Error' for url:.

              Error:
              java.io.FileNotFoundException: Response: '500: Internal Server Error' for url:
              'http://www.xxxx.com//myServlet/anyfile.exml'
              at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:380)
              The URL is correct.
              When it fails, on IE browser, receive the following message,
              ·     The RPC server is unavailable
              ·     The remote procedure call failed.
              Servlet receives xml and set it into session.
              This class set or get session.
              Servlet is called many times.
              Using weblogic 8.1
              

              Error:
              java.io.FileNotFoundException: Response: '500: Internal Server Error' for url:
              'http://www.xxxx.com//myServlet/anyfile.exml'
              at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:380)
              The URL is correct.
              When it fails, on IE browser, receive the following message,
              ·     The RPC server is unavailable
              ·     The remote procedure call failed.
              Servlet receives xml and set it into session.
              This class set or get session.
              Servlet is called many times.
              Using weblogic 8.1
              

  • I am stcuk in error exception  java.sql.BatchUpdateException

    Dear,
    I have write a program which reads data from a file and write in a database Postrgresql.But when i run my program it shows the error after some time running.It shows the exception which is
    "java.sql.BatchUpdateException: Batch entry 122,098 INSERT INTO GEONAME VALUES (3294551)"
    "at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2516)"
    These are the exceptions can anyone please help me to remove this.
    Thanks

    That might be telling you about a specific error in the sequence of batch commands that you are processing.
    Try retrieving the getUpdateCounts() from that exception and print the results.

  • Loadjava Error while opening file: –resolve  Exception java.io.FileNotFound

    Dears,
    I'm having Oracle 11gr2 on Windows 2008r2. I have very strange issue while trying to load ordinary Java source. I get error that loadjava can't open file. I'm using the following command in loading:
    %ORACLE_HOME%\dbhome_1\BIN\loadjava -thin -user ORAMQ/***@localhost:1521:DEVAR -verbose -fileout %C:\temp\loadjava-9-MQReasonCodeResolver.java.log C:\src\MQReasonCodeResolver.java –resolve-----
    I got the following error in the verbose file out:
    arguments: '-user' 'ORAMQ/***@localhost:1521:DEVAR' '-thin' '-verbose' '-fileout' 'C:\temp\loadjava-9-MQReasonCodeResolver.java.log' 'C:\src\MQReasonCodeResolver.java' '–resolve'
    creating : source MQReasonCodeResolver
    loading  : source MQReasonCodeResolver
    Error while opening file: –resolve
        Exception java.io.FileNotFoundException: –resolve (The system cannot find the file specified)
    creating :  –resolve
    The following operations failed
         –resolve: opening file-----
    The code is very simple and doesn't have any issue:
    import java.lang.reflect.Field;
    public class MQReasonCodeResolver
        public MQReasonCodeResolver()
        public static final String MQ_EXCEPTION_CLASS = "com.ibm.mq.MQException";
        public static final String RC_FIELD_PREFIX = "MQRC_";
        public static final String RC_VALUE_FIELD = "reasonCode";
        public static String resolve( Exception mqex )
            if ( !canResolve( mqex ) )
                return mqex.getClass().toString() + mqex.getMessage();
            Class class1 = mqex.getClass();
            try
                Field field = class1.getField( RC_VALUE_FIELD );
                Object key = field.get( mqex );
                Field[] fields = class1.getFields();
                for ( int i = 0; i < fields.length; i++ )
                    Field ff = fields;
    String name = ff.getName();
    if ( name.startsWith( RC_FIELD_PREFIX ) && ff.get( null ).equals( key ) )
    return mqex.getMessage() + " " + name;
    catch ( Exception ex )
    return "unknown";
    public static boolean canResolve( Exception exx )
    Class class1 = exx.getClass();
    while ( Exception.class.isAssignableFrom( class1 ) )
    if ( MQ_EXCEPTION_CLASS.equals( class1.getName() ) )
    return true;
    class1 = class1.getSuperclass();
    return false;
    I load other classes and no issue, even jar files, I don't know what is the problem with this file? Also, it is strange is creating class and loading it has no issue, but the issue comes when resolve.
    Can anyone help?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi:
    Put your -resolve flag at the beginning of the list of arguments.
    Latest arguments should be files to be uploaded by loadjava.
    Best regards, Marcelo.

  • ERROR:Unreportted Exception java.io.IOEcxeption

    import java.io.*;
    public class MyFileWriter{
         BufferedReader br;
         InputStreamReader isr;
         PrintWriter pw;
         FileWriter fw;
         File f;
         String data;
    public MyFileWriter(){
         isr=new InputStreamReader(System.in);
         br=new BufferedReader(isr);
         f=new File("one.txt");
         fw=new FileWriter(f);
         pw=new PrintWriter(fw);
         readData();
    public void readData(){
         try{
         while(true){
         System.out.println("enter the data except #");
         data=br.readLine();
         if(data.equals("#"))
         break;
         writeData();
    catch(IOException ie){
         System.out.println(ie);
    public void writeData(){
         try{
         pw.println(data);
         *}catch(IOException ie){*
         System.out.println(ie);
         public static void main(String []args){
         MyFileWriter mfw=new MyFileWriter();

    fw=new FileWriter(f);This might throw an IOException so better you write this in to try catch block or report the method that it might throw exception
    This can be done as
         public MyFileWriter() throws IOException
              isr=new InputStreamReader(System.in);
              br=new BufferedReader(isr);
              f=new File("one.txt");
              fw=new FileWriter(f);
              pw=new PrintWriter(fw);
              readData();
         }or by
         public MyFileWriter()
              try
                   isr=new InputStreamReader(System.in);
                   br=new BufferedReader(isr);
                   f=new File("one.txt");
                   fw=new FileWriter(f);
                   pw=new PrintWriter(fw);
                   readData();
              } catch(IOException ioe)
                            System.out.println("Any thing here");
         }And go according to your requirement
    Now for this code
         public void writeData()
              try
                   pw.println(data);
              } catch(IOException ie)
                   System.out.println(ie);
         }here pw.println() method doesnot throws any type of exception particularly IOException
    So thats why you are getting this error
    exception java.io.IOException is never thrown in body of corresponding try statement
                    } catch(IOException ie)so either remove "IOException ie" from there or use only "Exception e"
    Hope this might help you
    Better you refer java docs while coding.

  • Java.io.FileNotFoundException when running jsp

    hi,all.i'm using jdev 10.1.3,migrated from 10.1.2.
    when i built a new application,application template is "Web Application[JSF ADF BC]",and build a new jsp(wrote nothing),then run this jsp page,embedded OC4J Server panel prompted:NOTIFICATION J2EE JSP0008 Unable to dispatch JSP Page. and error message:java.io.FileNotFoundException: D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\default-web-app\dandee5-ViewController-context-root\qscover.jsp
    what's wrong?tia

    I'm having the same problem. The error is:
    2006-03-10 08:54:37.425 NOTIFICATION J2EE JSP0008 Unable to dispatch JSP Page : Exception:java.io.FileNotFoundException: C:\JDev10.1.3\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\default-web-app\partnerexpress-app\jsp\en\access\loginset.jsp (The system cannot find the path specified.
    )2006-03-10 08:54:37.425 NOTIFICATION J2EE JSP0008 Unable to dispatch JSP Page : Exception:java.io.FileNotFoundException: C:\JDev10.1.3\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\default-web-app\partnerexpress-app\jsp\en\access\loginset.jsp (The system cannot find the path specified.
    We are migrating from 10.1.2 environment and 10.1.3 has 2 BIG problems!
    1) You cannot run your applications under JDK 1.4 !!! Our production environment is 10.1.2 app server...this means we would have to build our apps in 1.4 yet be FORCED to develop in 1.5 in order to use OC4J. Not very backwards compatible.
    2) The side application navigator is not very flexible. We cannot right click a file and refactor it for example add a new file or move files via drag and drop. In addition you can't rename a file easily...you have to go to the file menu.
    Any solutions to these problems ? The JDK problem is a big one for anyone moving over
    to this IDE.
    Help!!
    Gurinder

  • Java.io.FileNotFoundException: when calling the parse() method of XMLReader

    Hi all, I'm getting the next exception:
    java.io.FileNotFoundException: C:\OP2\< (The name of the file, directory or volumn's label is not invalid)
    Which file is talking that exception about?
    I've no idea of what do this exception means.
    Please help me as it's very urgent.
    Thanks on advance.

    here you are the code:
    package com.saincotrafico.optimus.jms;
    import javax.jms.*;
    import com.saincotrafico.optimus.xml.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import java.io.*;
    import com.saincotrafico.optimus.client.gui.*;
    import javax.swing.SwingUtilities;
    * Description of the Class
    *@author root
    *@created 15 de febrero de 2002
    public class XMLListener implements MessageListener
    DataManager dm;
    InputSource input = new InputSource();
    DefaultHandler mh = null;
    SAXParserFactory spf = null;
    XMLReader xmlReader = null;
    * Constructor for the XMLListener object
    *@param dm Description of the Parameter
    public XMLListener(DataManager dm)
    System.out.println("AQUI");
    this.dm = dm;
    //mh=dm.getHandler();
    spf = SAXParserFactory.newInstance();
    try
    SAXParser saxParser = spf.newSAXParser();
    xmlReader = saxParser.getXMLReader();
    } catch (Exception ex)
    System.err.println(ex);
    //System.exit(1);
    * Description of the Method
    *@param message Description of the Parameter
    public void onMessage(Message message)
    if (message instanceof TextMessage)
    TextMessage msg = (TextMessage) message;
    try
    creaObjeto(msg.getText());
    Runnable doSetDatos =
    new Runnable()
    private DefaultHandler miHandler=mh;
    public void run()
    System.out.println("EN RUN!!!");
    dm.setDatos(miHandler);
    try { Thread.sleep(30);}catch (Exception ex) { ex.printStackTrace();}
    SwingUtilities.invokeLater(doSetDatos);
    } catch (JMSException e)
    System.out.println("Exception in onMessage(): " + e.toString());
    * Description of the Method
    *@param msg Description of the Parameter
    private void creaObjeto(String msg)
    mh = dm.getHandler();
    xmlReader.setContentHandler(mh);
    try
    System.out.println(msg);
    input.setCharacterStream(new StringReader(msg));
    xmlReader.parse(msg);
    }catch(Exception ex){ex.printStackTrace();}
    the exception happens at xmlReader.parse(msg).

  • File Making Directories Problem. java.io.FileNotFoundException

    When ever I run my program it is SUPPOSED to make the directories, instead it tells me the file doesn't exist and fails.
    Here is my Code:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package passworddatamacsetup;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.JOptionPane;
    * @author jacobgarber
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) {
            try {
                File PasswordDATA = new File("/Applications/PasswordDATA");
                PasswordDATA.mkdirs();
                File passwords = new File("/Applications/PasswordDATA/PasswordFiles");
                passwords.mkdirs();
                File main = new File("./PasswordDATA_-_MAC.jar");
                File out = new File(PasswordDATA.getPath()+"/PasswordDATA.jar");
                copy(main, PasswordDATA);
                JOptionPane.showMessageDialog(null, "Framework setup complete!", "Completed!", JOptionPane.INFORMATION_MESSAGE);
            } catch(Exception ex) {
                JOptionPane.showMessageDialog(null, ex);
        // Copies src file to dst file.
        // If the dst file does not exist, it is created
        public static void copy(File src, File dst) throws IOException {
            try {
                InputStream in = new FileInputStream(src);
                OutputStream out = new FileOutputStream(dst);
                // Transfer bytes from in to out
                byte[] buf = new byte[1024];
                int len;
                while ((len = in.read(buf)) > 0) {
                    out.write(buf, 0, len);
                in.close();
                out.close();
            } catch (FileNotFoundException ex) {
                JOptionPane.showMessageDialog(null, ex);
    }Here is my exception:
    java.io.FileNotFoundException: /Applications/PasswordDATA

    This looks suspicious:
                File out = new File(PasswordDATA.getPath()+"/PasswordDATA.jar");
                copy(main, PasswordDATA);You probably meant:
                File out = new File(PasswordDATA.getPath()+"/PasswordDATA.jar");
                copy(main, out);

  • Error with Java Virtual Machine Laucher

    Hi, I'm getting the follwowing error with I try to lauch universal installer.
    Fatal exception occured. Program will exit.
    Does anyone have any idea what's going on? I have java ee 5 sdk installed on my machine.

    Hello Guys!
    I have a problem here and i cant find the solution!
    somebody can help me?
    In the installation, after run the runInstaller show
    this message:
    Initializing Java Virtual Machine from
    /tmp/OraInstall2008-04-27_0733-08PM/jre/1.4.2/bin/java
    . Please wait...
    [oracle@localhost ~]$ Oracle Universal Installer,
    Version 10.2.0.1.0 Production
    Copyright (C) 1999, 2005, Oracle. All rights
    reserved.
    Exception java.lang.UnsatisfieldLinkError:
    /tmp/OraInstall2008-04-27_0733-08PM/jre/1.4.2/lib/i386
    /libawt.so: libXp.so.6: cannot open shared object
    file: No such file or directory occurred..
    java.lang.UnsatisfieldLinkError:
    /tmp/OraInstall2008-04-27_0733-08PM/jre/1.4.2/lib/i386
    /libawt.so: libXp.so.6: cannot open shared object
    file: No such file or directory<snip>
    So I went to MetaLink and did a search on the "libXp.so.6: cannot open shared object" found in your error message. The very first hit returned was note 308755.1, titled "OUI Reports The Error: Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall*/jre/1.4.2/lib/i386/libawt.so: libXp.So.6: Cannot Open Shared Object File"
    The terms of MetaLink usage prevent me from quoting from the note, but you would be advised to go read it for yourself. Suffice it to say you are missing some rpms. The specific ones missing are not listed in the above referenced not, but it will point you in the right direction.

  • Exception :java.sql.SQLException: Duplicate entry '1-0' for key 1

    Help me in fixing this error
    Exception :java.sql.SQLException: Duplicate entry '1-0' for key 1
    1>>User_ID is primary key and unique and
    2>>User_ID is also auto Incremented
    3>>User_ID is the First coloumn in the table
    PreparedStatement ps=con.prepareStatement("insert into User(user_name,user_email,user_password) values (?,?,?)");
    ps.setString(1,s11);
    ps.setString(2,s22);
    ps.setString(3,s33);
    int i= ps.executeUpdate();

    A growing trend it appears. Must be some new high school and/or college curriculum regarding moral relativism.

Maybe you are looking for