Common causes of java.io.filenotfoundexception

hi,
what are the most obvious causes of a java.io.FileNotFoundException being thrown.
this is occuring in an application i have written - the exception is being thrown everytime a new FileReader is tried to be created.
the files i am trying to read in are not read only files, they do exist and the pathname is correct...
thanks in advance

i specify the pathname as one of the arguments that i pass to the application so when it throws the exception (which i do have a catch clause for btw) it shows me the pathname i have previously specified.
everyones help is well appreciated (this is after one or two cups of irish java!!!).
the full code for the program is as follows:
import java.io.*;
public class tArray {
     public static void main(String[] args) {
          tArr arr = new tArr(args[0], args[1]);
          arr.convert();
class tArr {
     String sourceName;
     String sourceString;
     tArr(String sourceArg, String sourceArg1) {
          sourceName = sourceArg;
          sourceString = sourceArg1;
     void convert() {
          try {
               File source = new File(sourceName);
               File temp = new File(sourceName + ".tmp");
               File[] fileArr = source.listFiles();
               for (int y = 0; y < fileArr.length; y++)
                    System.out.println("listFiles: "
                    + fileArr[y].toString());
               FileReader fr = new FileReader(source);
               BufferedReader in = new BufferedReader(fr);
               if (source.isDirectory())
                    System.out.println("is a directory");
               FileWriter fw = new FileWriter(temp);
               BufferedWriter out = new BufferedWriter(fw);
               boolean eof = false;
               String inChar = "";
               String outChar = "";
               do {
                    inChar = in.readLine();
                    if (inChar != null) {
                         if (inChar.startsWith(sourceString))
                              inChar = (" 64 64");
                         else {
                              outChar = (inChar);
                              out.newLine();
                         outChar = (inChar);
                         out.write(outChar);
                    } else
                         eof = true;
               } while (!eof);
               in.close();
               out.close();
               boolean deleted = source.delete();
               if (deleted)
                    temp.renameTo(source);
          } catch (IOException e) {
               System.out.println("Error... " + e.toString());
          } catch (SecurityException se) {
               System.out.println("Error... " + se.toString());
}the listfiles() method is part of the checking process i am going thru to make sure im not going mad (some would say a lost cause...)

Similar Messages

  • [svn:fx-trunk] 5008: Fix for mx.accessibility.AccImpl.as causing a java.io. FileNotFoundException exception in ASDoc

    Revision: 5008
    Author: [email protected]
    Date: 2009-02-18 20:26:21 -0800 (Wed, 18 Feb 2009)
    Log Message:
    Fix for mx.accessibility.AccImpl.as causing a java.io.FileNotFoundException exception in ASDoc
    QE Notes: None.
    Doc Notes: None.
    Bugs: SDK-19340
    tests: checkintests, asdoc
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19340
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Welcome back everyone.
    Hope you all had good holidays.
    Cheers
    glenn
    tinylion development & design

  • Java.io.FileNotFoundException: JAR entry META-INF/wsdl/....

    Hi Guys!
    I am having the following problem with my webdynpro java application on CE 7.1:
    In one of my dc's i am calling another dc which is an ejb. The called ejb calls a webservice.
    (my dc --> ejb --> webservice)
    My dc has nothing to do with the webservice. It just calls an ejb which calls a webservice.
    Although I am getting a deploymentexception when I try to deploy my dc:
    Caused by: java.io.FileNotFoundException: JAR entry META-INF/wsdl/....*.wsdl not found in /usr/sap/..../..wscl.war
    I have no idea where I should put the wsdl file ...
    Hope anyone can help me.
    Cheers,
    Andi

    Sir
    If I am not wrong you itself had mentioned that : My dc has nothing to do with the webservice. It just calls an ejb which calls a webservice.
    Now I wanted to know about your workaround also request you to go at metadata file of your DC and chck that whether it contain the reference of the EJB or Webservice.
    One more point  : exception is FileNotFoundException so might you have manually put the reference of WSDL url/uri inside EJB xml file ??
    Best Regards
    Satish Kumar
    Edited by: satish jhariya on Mar 24, 2010 2:20 PM

  • Java.io.FileNotFoundException: URLConnection Destination

    Hi,
    I am using ADS for downloading Performance Management documents. So far I am successfully running interactive forms in my DEV and QUA system. However, it does not work in PROD. Here is the error I get:
    <b>Caused by: java.io.FileNotFoundException: IO exception while constructing a URLConnection for destination: dest:FP_ICF_DATA_PROD//sap/bc/fp/form/layout/HAP_PDF_OFFLINE_FORM.XDP</b>
    How can I fix the problem?
    Thanks in advance.
    / Elvez

    Hello Elvez,
    I had the same problem. For me it was caused by the Authorizations which where not maintained in the Role SAP_BC_FPADS_ICF delivered by SAP for User ADS_AGENT.
    Regards
    Gregor

  • Java.io.FileNotFoundException: atg/data/Publishing/versionFileStore/PublishingFiles/fa103/0/_FeaturedCategories_xproperties._fa103307#2 (No such file or directory)

    Hi All,
    While updating featuredTargetters though BCC UI, getting below exceptions and not able to save targetters after editing
    Found file (_FeaturedCategories_xproperties._fa103307#3) in versionFileStore. But in exception stacktrace ,it is complaining about file (FeaturedCategories_xproperties._fa103307#2).
    Not sure whether #2 and #3 really matters and causing this issue. Dont have backup folder to copy files from.
    In DB, EPUB_FILE_ASSET table data is attached in excel.
    Please help me to resolve this issue.
    Caused by :java.io.FileNotFoundException: atg/data/Publishing/versionFileStore/PublishingFiles/fa103/0/_FeaturedCategories_xproperties._fa103307#2 (No such file or directory)
    **** Error Fri  14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-fWE4syJueTzY2iHefWGuTs6VtS!786562057!1428092210169/atg/web/assetmanager/editor/targeting/TargeterFormHandler at java.io.FileInputStream.open(Native Method)
    **** Error Fri 14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-fWE4syJueTzY2iHefWGuTs6VtS!786562057!1428092210169/atg/web/assetmanager/editor/targeting/TargeterFormHandler at java.io.FileInputStream.<init>(FileInputStream.java:146)
    **** Error Fri14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-fWE4syJueTzY2iHefWGuTs6VtS!786562057!1428092210169/atg/web/assetmanager/editor/targeting/TargeterFormHandler at atg.core.util.JarUtils.copy(JarUtils.java:412)
    **** Error Fri 14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-
    **** Error Fri  14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-fWE4syJueTzY2iHefWGuTs6VtS!786562057!1428092210169/atg/web/assetmanager/editor/targeting/TargeterFormHandler at
    /atg/web/assetmanager/editor/targeting/TargeterFormHandler --- java.lang.RuntimeException: Unable to set the file content into atg/data/Publishing/versionFileStore//PublishingFiles/fa103/0/_FeaturedCategories_xproperties._fa103307#3 from /atg/data/Publishing/versionFileStore/PublishingFiles/fa103/0/_FeaturedCategories_xproperties._fa103307#2. The copy operation failed.
    Thanks
    Sri

    Never mind, I solved the problem by simply putting an absolute path in packaging.conf. Still, I'd like to understand what happened with Tomcat after my restart...
    -JMD, Paris

  • SQL Developer running slow, possibly caused by Java Virtual Machine

    Dear all
    I am currently working with SQL Developer 1.5.1, connecting to an Oracle database 10.2.0.2 and it is taking about 10 minutes for SQL Developer to load. I believe the problem may be due to the Java Development kit. I upgraded to the latest version last week.
    The versions running according to Java settings is:
    1.6 1.6.0_15 http://java.sun.com/products/autodl/j2se C:\Program Files\Java\jre6\bin\javaw.exe  true
    1.6 1.6.0_07 http://java.sun.com/products/autodl/j2se C:\Program Files\Java\jre1.6.0_07\bin\javaw.exe  true
    1.4 1.4.2 http://java.sun.com/products/autodl/j2se C:\Program Files\Java\j2re1.4.2\bin\javaw.exe  trueHaving looked at other posts on here I have run SQL Developer with the console and the messages in that are as follows:
    Exception initializing 'oracle.ideimpl.searchbar.SearchBarAddin' in extension 'S
    earch Bar': java.lang.NullPointerException
            at oracle.ideimpl.searchbar.ColorProvider.isFusionLAF(ColorProvider.java
    :29)
            at oracle.ideimpl.searchbar.ColorProvider.updateUIManager(ColorProvider.
    java:35)
            at oracle.ideimpl.searchbar.SearchBarAddin.initialize(SearchBarAddin.jav
    a:37)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
    rImpl.java:405)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
    erImpl.java:214)
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
    dinManagerImpl.java:128)
            at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
            at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
            at oracle.ide.Ide.startup(Ide.java:662)
            at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
            at oracle.ideimpl.Main.start(Main.java:110)
            at oracle.ideimpl.Main.main(Main.java:72)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
            at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
    190)
            at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
            at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
            at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
            at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
            at oracle.ide.boot.Launcher.launch(Launcher.java:68)
            at oracle.ide.boot.Launcher.main(Launcher.java:57)
    Load: C:\Program Files\sqldeveloper\sqldeveloper\bin\jdev\extensions\GeoRaptorLi
    bs\Settings.xml
    java.io.FileNotFoundException: C:\Program Files\sqldeveloper\sqldeveloper\bin\jd
    ev\extensions\GeoRaptorLibs\Settings.xml (The system cannot find the path specif
    ied)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at java.io.FileInputStream.<init>(FileInputStream.java:66)
            at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
    .java:70)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
    nection.java:161)
            at java.net.URL.openStream(URL.java:1007)
            at oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2590)
            at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:236)
            at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:208)
            at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
            at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:172)
            at org.GeoRaptor.MainSettings.load(Unknown Source)
            at org.GeoRaptor.PreferenceAddin.initialize(Unknown Source)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
    rImpl.java:405)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
    erImpl.java:214)
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
    dinManagerImpl.java:128)
            at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
            at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
            at oracle.ide.Ide.startup(Ide.java:662)
            at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
            at oracle.ideimpl.Main.start(Main.java:110)
            at oracle.ideimpl.Main.main(Main.java:72)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
            at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
    190)
            at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
            at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
            at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
            at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
            at oracle.ide.boot.Launcher.launch(Launcher.java:68)
            at oracle.ide.boot.Launcher.main(Launcher.java:57)
    Exception initializing 'org.GeoRaptor.MenuControler' in extension 'GeoRaptor': o
    racle.classloader.util.AnnotatedNoClassDefFoundError:
              Missing class: oracle.jdeveloper.cm.dt.browser.jdbc.TableNode
            Dependent class: org.GeoRaptor.MenuControler
                     Loader: main:11.0
                Code-Source: /C:/Program Files/sqldeveloper/sqldeveloper/extensions/
    org.GeoRaptor.jar
              Configuration: system property C:\Program Files\sqldeveloper\sqldevelo
    per\extensions\org.GeoRaptor.jar
    The missing class is not available from any code-source or loader in the system.
            at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClass
    Loader.java:2176) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by su
    n.misc.Launcher$AppClassLoader@9627532]
            at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLo
    ader.java:1729) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.
    misc.Launcher$AppClassLoader@9627532]
            at oracle.classloader.PolicyClassLoader.access$000 (PolicyClassLoader.ja
    va:143) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@9627532]
            at oracle.classloader.PolicyClassLoader$LoadClassAction.run (PolicyClass
    Loader.java:331) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun
    .misc.Launcher$AppClassLoader@9627532]
            at java.security.AccessController.doPrivileged (Native method) [unknown,
    by unknown]
            at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
    a:1688) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@9627532]
            at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
    a:1670) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@9627532]
            at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre b
    ootstrap, by jre.bootstrap:1.5.0_06]
            at org.GeoRaptor.MenuControler.initialize (Unknown source file) [/C:/Pro
    gram Files/sqldeveloper/sqldeveloper/extensions/org.GeoRaptor.jar (from system p
    roperty C:\Program Files\sqldeveloper\sqldeveloper\extensions\org.GeoRaptor.jar)
    , by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin (AddinManag
    erImpl.java:405) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from syste
    m property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins (AddinMana
    gerImpl.java:214) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from syst
    em property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins (A
    ddinManagerImpl.java:128) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (f
    rom system property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ide.IdeCore.initProductAndUserAddins (IdeCore.java:1804) [/C:/
    Program Files/sqldeveloper/ide/extensions/oracle.ide.jar (from system property P
    CLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ide.IdeCore.startupImpl (IdeCore.java:1481) [/C:/Program Files
    /sqldeveloper/ide/extensions/oracle.ide.jar (from system property PCLMain.create
    ExtensionManagerLoader()), by main:11.0]
            at oracle.ide.Ide.startup (Ide.java:662) [/C:/Program Files/sqldeveloper
    /ide/extensions/oracle.ide.jar (from system property PCLMain.createExtensionMana
    gerLoader()), by main:11.0]
            at oracle.ideimpl.DefaultIdeStarter.startIde (DefaultIdeStarter.java:35)
    [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from system property PCLMa
    in.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.Main.start (Main.java:110) [/C:/Program Files/sqldevel
    oper/ide/lib/ideimpl.jar (from system property PCLMain.createExtensionManagerLoa
    der()), by main:11.0]
            at oracle.ideimpl.Main.main (Main.java:72) [/C:/Program Files/sqldevelop
    er/ide/lib/ideimpl.jar (from system property PCLMain.createExtensionManagerLoade
    r()), by main:11.0]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:585) [unknown, by unknow
    n]
            at oracle.ide.boot.PCLMain.callMain (PCLMain.java:66) [/C:/Program%20Fil
    es/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@962753
    2]
            at oracle.ide.boot.PCLMain.main (PCLMain.java:58) [/C:/Program%20Files/s
    qldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@9627532]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:585) [unknown, by unknow
    n]
            at oracle.classloader.util.MainClass.invoke (MainClass.java:128) [/C:/Pr
    ogram%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Launcher$AppClassL
    oader@9627532]
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain (IdeLauncher.java
    :190) [/C:/Program%20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launch
    er$AppClassLoader@9627532]
            at oracle.ide.boot.IdeLauncher.launchImpl (IdeLauncher.java:90) [/C:/Pro
    gram%20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoa
    der@9627532]
            at oracle.ide.boot.IdeLauncher.launch (IdeLauncher.java:66) [/C:/Program
    %20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@
    9627532]
            at oracle.ide.boot.IdeLauncher.main (IdeLauncher.java:55) [/C:/Program%2
    0Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@96
    27532]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:585) [unknown, by unknow
    n]
            at oracle.ide.boot.Launcher.invokeMain (Launcher.java:729) [/C:/Program%
    20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@9
    627532]
            at oracle.ide.boot.Launcher.launchImpl (Launcher.java:115) [/C:/Program%
    20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@9
    627532]
            at oracle.ide.boot.Launcher.launch (Launcher.java:68) [/C:/Program%20Fil
    es/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@962753
    2]
            at oracle.ide.boot.Launcher.main (Launcher.java:57) [/C:/Program%20Files
    /sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@9627532]I also use a photo Web Site, which is unrelated to my Oracle work but for it's photo uploader also uses Java, and that is running slow, which is why I think the problem is Java based. I would say the problem occurred within the last couple of months but has got much worse in recently weeks. SQL Developer is also slow at times, mainly when I've used another application and it is just in the background.
    Kind regards
    Tim

    Hi there
    Thank you for taking the time to reply. I use GeoRaptor and for what I use it for, I have not come across any errors whilst using it.
    I had no reference to the JDK in my SQL Developer configuration file. I did a search on my system and could not located a copy of JDK, or one in my programs installed control panel, so I installed it again. However I then found a copy in the sqldeveloper folder. However that wasn't referenced in my control panel.
    However having added a reference to the JDK in my SQL Developer configuration file, pointing to C:\Program Files\Java\jdk1.6.0_16, it seems to be taken even longer to load.
    SQL Developer is using 98,608k once loaded and my system has 1.25GB of memory. Whilst loading I was using 1.38GB. For about a year I've had slightly less memory than I sometimes use. The reason for not having 2GB is due to a previous memory failure. However this did not cause a problem for SQL developer until more recently.
    Would it be worth reinstalling GeoRapter?
    Kind regards
    Tim
    Exception initializing 'oracle.ideimpl.searchbar.SearchBarAddin' in extension 'S
    earch Bar': java.lang.NullPointerException
            at oracle.ideimpl.searchbar.ColorProvider.isFusionLAF(ColorProvider.java
    :29)
            at oracle.ideimpl.searchbar.ColorProvider.updateUIManager(ColorProvider.
    java:35)
            at oracle.ideimpl.searchbar.SearchBarAddin.initialize(SearchBarAddin.jav
    a:37)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
    rImpl.java:405)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
    erImpl.java:214)
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
    dinManagerImpl.java:128)
            at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
            at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
            at oracle.ide.Ide.startup(Ide.java:662)
            at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
            at oracle.ideimpl.Main.start(Main.java:110)
            at oracle.ideimpl.Main.main(Main.java:72)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
            at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
    190)
            at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
            at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
            at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
            at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
            at oracle.ide.boot.Launcher.launch(Launcher.java:68)
            at oracle.ide.boot.Launcher.main(Launcher.java:57)
    Load: C:\Program Files\sqldeveloper\sqldeveloper\bin\jdev\extensions\GeoRaptorLi
    bs\Settings.xml
    java.io.FileNotFoundException: C:\Program Files\sqldeveloper\sqldeveloper\bin\jd
    ev\extensions\GeoRaptorLibs\Settings.xml (The system cannot find the path specif
    ied)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at java.io.FileInputStream.<init>(FileInputStream.java:66)
            at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
    .java:70)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
    nection.java:161)
            at java.net.URL.openStream(URL.java:1010)
            at oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2590)
            at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:236)
            at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:208)
            at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
            at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
            at org.GeoRaptor.MainSettings.load(Unknown Source)
            at org.GeoRaptor.PreferenceAddin.initialize(Unknown Source)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
    rImpl.java:405)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
    erImpl.java:214)
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
    dinManagerImpl.java:128)
            at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
            at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
            at oracle.ide.Ide.startup(Ide.java:662)
            at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
            at oracle.ideimpl.Main.start(Main.java:110)
            at oracle.ideimpl.Main.main(Main.java:72)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
            at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
    190)
            at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
            at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
            at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
            at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
            at oracle.ide.boot.Launcher.launch(Launcher.java:68)
            at oracle.ide.boot.Launcher.main(Launcher.java:57)
    Exception initializing 'org.GeoRaptor.MenuControler' in extension 'GeoRaptor': o
    racle.classloader.util.AnnotatedNoClassDefFoundError:
              Missing class: oracle.jdeveloper.cm.dt.browser.jdbc.TableNode
            Dependent class: org.GeoRaptor.MenuControler
                     Loader: main:11.0
                Code-Source: /C:/Program Files/sqldeveloper/sqldeveloper/extensions/
    org.GeoRaptor.jar
              Configuration: system property C:\Program Files\sqldeveloper\sqldevelo
    per\extensions\org.GeoRaptor.jar
    The missing class is not available from any code-source or loader in the system.
            at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClass
    Loader.java:2176) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by su
    n.misc.Launcher$AppClassLoader@4687246]
            at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLo
    ader.java:1729) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.
    misc.Launcher$AppClassLoader@4687246]
            at oracle.classloader.PolicyClassLoader.access$000 (PolicyClassLoader.ja
    va:143) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@4687246]
            at oracle.classloader.PolicyClassLoader$LoadClassAction.run (PolicyClass
    Loader.java:331) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun
    .misc.Launcher$AppClassLoader@4687246]
            at java.security.AccessController.doPrivileged (Native method) [unknown,
    by unknown]
            at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
    a:1688) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@4687246]
            at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
    a:1670) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@4687246]
            at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:320) [jre b
    ootstrap, by jre.bootstrap:1.6.0_16]
            at org.GeoRaptor.MenuControler.initialize (Unknown source file) [/C:/Pro
    gram Files/sqldeveloper/sqldeveloper/extensions/org.GeoRaptor.jar (from system p
    roperty C:\Program Files\sqldeveloper\sqldeveloper\extensions\org.GeoRaptor.jar)
    , by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin (AddinManag
    erImpl.java:405) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from syste
    m property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins (AddinMana
    gerImpl.java:214) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from syst
    em property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins (A
    ddinManagerImpl.java:128) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (f
    rom system property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ide.IdeCore.initProductAndUserAddins (IdeCore.java:1804) [/C:/
    Program Files/sqldeveloper/ide/extensions/oracle.ide.jar (from system property P
    CLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ide.IdeCore.startupImpl (IdeCore.java:1481) [/C:/Program Files
    /sqldeveloper/ide/extensions/oracle.ide.jar (from system property PCLMain.create
    ExtensionManagerLoader()), by main:11.0]
            at oracle.ide.Ide.startup (Ide.java:662) [/C:/Program Files/sqldeveloper
    /ide/extensions/oracle.ide.jar (from system property PCLMain.createExtensionMana
    gerLoader()), by main:11.0]
            at oracle.ideimpl.DefaultIdeStarter.startIde (DefaultIdeStarter.java:35)
    [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from system property PCLMa
    in.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.Main.start (Main.java:110) [/C:/Program Files/sqldevel
    oper/ide/lib/ideimpl.jar (from system property PCLMain.createExtensionManagerLoa
    der()), by main:11.0]
            at oracle.ideimpl.Main.main (Main.java:72) [/C:/Program Files/sqldevelop
    er/ide/lib/ideimpl.jar (from system property PCLMain.createExtensionManagerLoade
    r()), by main:11.0]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:597) [unknown, by unknow
    n]
            at oracle.ide.boot.PCLMain.callMain (PCLMain.java:66) [/C:/Program%20Fil
    es/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@468724
    6]
            at oracle.ide.boot.PCLMain.main (PCLMain.java:58) [/C:/Program%20Files/s
    qldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@4687246]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:597) [unknown, by unknow
    n]
            at oracle.classloader.util.MainClass.invoke (MainClass.java:128) [/C:/Pr
    ogram%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Launcher$AppClassL
    oader@4687246]
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain (IdeLauncher.java
    :190) [/C:/Program%20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launch
    er$AppClassLoader@4687246]
            at oracle.ide.boot.IdeLauncher.launchImpl (IdeLauncher.java:90) [/C:/Pro
    gram%20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoa
    der@4687246]
            at oracle.ide.boot.IdeLauncher.launch (IdeLauncher.java:66) [/C:/Program
    %20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@
    4687246]
            at oracle.ide.boot.IdeLauncher.main (IdeLauncher.java:55) [/C:/Program%2
    0Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@46
    87246]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:597) [unknown, by unknow
    n]
            at oracle.ide.boot.Launcher.invokeMain (Launcher.java:729) [/C:/Program%
    20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@4
    687246]
            at oracle.ide.boot.Launcher.launchImpl (Launcher.java:115) [/C:/Program%
    20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@4
    687246]
            at oracle.ide.boot.Launcher.launch (Launcher.java:68) [/C:/Program%20Fil
    es/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@468724
    6]
            at oracle.ide.boot.Launcher.main (Launcher.java:57) [/C:/Program%20Files
    /sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@4687246]

  • Java.io.FileNotFoundException: test.txt (The system cannot find the file sp

    Hi All,
    am getting the following error, help me out. Thanks in advance...
    java.io.FileNotFoundException: test.txt (The system cannot find the file specified)
         java.io.FileInputStream.open(Native Method)
         java.io.FileInputStream.<init>(FileInputStream.java:106)
         java.io.FileInputStream.<init>(FileInputStream.java:66)
         BinaryStreamServlet.doGet(BinaryStreamServlet.java:13)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    I have placed "test.txt" in the path"D:\Backup\Tomcat web server\apache-tomcat-6.0.14\webapps\examples\WEB-INF\classes\test.txt".
    web.xml entry is as follows,
    <servlet>
    <servlet-name>demoservlet2</servlet-name>
    <servlet-class>BinaryStreamServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>demoservlet2</servlet-name>
    <url-pattern>/demoservlet2</url-pattern>
    </servlet-mapping>
    Source code:
    import java.io.*;
    import java.net.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class BinaryStreamServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException{     
    response.setContentType("text/plain"); /* set the MIME type */
         File f= new File("test.txt");
         byte[] arBytes = new byte[(int) f.length()];
         FileInputStream is= new FileInputStream("test.txt");
         is.read(arBytes);
         OutputStream os = response.getOutputStream();
         os.write(arBytes);
         os.flush();
    }

    I have one Drivers.xml file in /WEB-INF that i want to read .but everytime i get exception file not found..
    i m trying to read this xml file in DriverUtilties.java (a non servlet class)
    inside of /WEB-INF/classess folder is there and hierarchy for non-servlet class DriverUtilties is :- com.dds.apps.ptes.pidentifier.admin.util.common.DriverUtilties
    what code shall i write so that i can read the xml file. ???
    where i set in classpath ?
    MYCODE is like this :
    public static final String DEFAULT_FILE = "/WEB-INF/drivers.xml";
    InputStream in = new FileInputStream(DEFAULT_FILE);
    Thanks in advance

  • Java.io.FileNotFoundException: The system cannot find the path specified

    hi all.
    have this problem
    i have a jsp with the codes as follows:
    try{
    File f=new File("C:/Program Files/Apache Group/Tomcat 4.1/webapps/iiso/account.xml");
    FileWriter fw=new FileWriter(f,false);
    XMLConverter xmlc=new XMLConverter();
    String msg=xmlc.ConvertToXML("account");
    fw.write(msg);
    fw.flush();
    System.out.println("file printed");
    }catch(IOException ioe)
    System.out.println(ioe);
    }it works prefectly on my comp but however when i posted it up on the dev server
    which is running on tomcat 4.0
    i got this error:
    java.io.FileNotFoundException: P:\Program Files\Apache Tomcat 4.0\webapps\IISOelearn\account.xml (The system cannot find the path specified)
    the dev server is running on P drive.
    tried installing tomcat 4.0 on my com and the code runs well.
    could there be other sources tt i miss out causing the error?
    many thanx in advance!
    =)

    Most probably the server has a different path setup from you.
    Instead of hardcoding the full file path into your app, you should have the following
    ServletContext application = getServletConfig().getServletContext();
    String fileName = application.getRealPath("/account.xml");
    File f = new File(fileName);The method ServletContext.getRealPath takes a WEBSITE relative link, and turns it into a real location on disk.
    This makes your code completely independant of what machine it is installed on.
    Cheers,
    evnafets

  • Java.io.FileNotFoundException (Too many file open)

    Hi,
    I have an application wherein I have to open an XMl file, make amends to it and then write it back. It is possible that the same XML file be opened more than once. After processing lots of XMl files I get the following error:
    [java] java.io.FileNotFoundException: /nas/bansalp/app/databases/databases/IntActe_human_528_psimi.xml (Too many open files)
         [java]      at java.io.FileInputStream.open(Native Method)
         [java]      at java.io.FileInputStream.<init>(FileInputStream.java:106)
         [java]      at java.io.FileInputStream.<init>(FileInputStream.java:66)
         [java]      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
         [java]      at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
         [java]      at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:653)
         [java]      at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
         [java]      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
         [java]      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
         [java]      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
         [java]      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
         [java]      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
         [java]      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
         [java]      at alliance.dps.Commons.makedocument(Unknown Source)Code for makedocument is as follows:
    public static Document makedocument(File file) throws Exception
      Document response = null;
      DocumentBuilder builder = null;
      try
         DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
         builder  = builderFactory.newDocumentBuilder();
         if (file==null)
          response = builder.newDocument();
         else
          response = builder.parse(file);
      catch(Exception e) { e.printStackTrace(); }
      return response;
    }Here also I am not explicitely opening any handle. parse method should close the file after creating a DOM tree.
    I would appreciate if someone could give me some directions as to what might be wrong.
    - Parit

    I'm finding that builder.parse(File) doesn't close the file. I now create a FileInputStream from the File and make sure I close it myself in a finally{} block.

  • Java.io.FileNotFoundException - ws-addressing.xsd

    I'm getting the following exception when I deploy and view my BPEL Process in the BPEL Console. What could be causing this exception:
    The following exception occured while loading this Process:
    Exception Name:
    java.io.FileNotFoundException
    Exception Description:
    C:\OraBPELPM_1\integration\orabpel\domains\default\tmp\.bpel_TESTBPEL_1.0.jar\$SERVER-URL$\orabpel\xmllib\ws-addressing.xsd (The system cannot find the path specified)
    Suggested Fix:
    Context:
    Stack Trace:

    I'm also getting this when deploying from the Eclipse BPEL Designer plug in.
    The only solution I've found so far is to replace "$SERVER-URL$" string in the deployed WSDL file for the process (found in {orabpelhome}/domains/default/tmp/.bpel_ProcessName_1.0.jar/) with the string for your server, e.g. "http://myserver:9700"
    I think I've read that this occurs because the Eclipse plugin is not yet synched up with the latest BPEL release.

  • Java.io.FileNotFoundException

    Hello!
    I am getting this error "java.io.FileNotFoundException" when I try to run my program.I know that the file is there.The code seems to work fine in Eclipse but when I try to run it through dos then it gives me this error.I have already looked through the previous posts and could not find anything relevant.
    Thanks for any help

    Below is the code which is causing the error.
    * Retrieves the values for configuration at a certain interval of time
    import java.io.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import java.util.*;
    public class Settings extends TimerTask{
    //----------------------------------------variable declration -------------------------------------------     
         public String fieldvalue;
         public String nodeName;
         public String url="http://zoo.spiral/clientcontrolsite/settingsconfig.xml";
         public String filepath="C:\\com\\settingsconfig.xml";
         File configFile = new File(filepath);
    //---------------------------------------- Gets the config file from server -----------------------------
         public void getConfigFile(){
              if((configFile.exists())!=false){
              boolean fileStatus=configFile.delete();
                   System.out.println(fileStatus);
                   TestWebConnection settingscon = new TestWebConnection();
                   settingscon.ConnectHttp(url,filepath);
                   System.out.println("Config file updated.");
    //------------------------------------ Retrieves values from settings XML file ------------------------     
         public String GetValues(String nodeName){
    try {
    //if(fileExists=true){
         DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         Document doc = docBuilder.parse (configFile);
    System.out.println("reading file");
    //      normalize text representation
         doc.getDocumentElement().normalize();
         NodeList SettingsValues = doc.getElementsByTagName("Settings");
         int totalfields = SettingsValues.getLength();
         for(int s=0; s<SettingsValues.getLength() ; s++){
         Node fieldNode = SettingsValues.item(s);
         if(fieldNode.getNodeType() == Node.ELEMENT_NODE){
         Element firstfieldElement = (Element)fieldNode;
    //     ----------------------------- get child nodes ----------------------------------------------------
         NodeList DnsList = firstfieldElement.getElementsByTagName(nodeName);
         Element DnsElement = (Element)DnsList.item(0);
         NodeList textDnsList = DnsElement.getChildNodes();
         fieldvalue=((Node)textDnsList.item(0)).getNodeValue().trim();
         //System.out.println(fieldvalue);
                   }//end of if clause
                   }//end of for loop with s var
         }//end of try statement
         catch (SAXParseException err) {
         System.out.println ("** Parsing error" + ", line " + err.getLineNumber () + ", uri " + err.getSystemId ());
         System.out.println(" " + err.getMessage ());
         catch (SAXException e) {
         Exception x = e.getException ();
         ((x == null) ? e : x).printStackTrace ();
         catch (Throwable t) {
         t.printStackTrace ();
              return fieldvalue;
         }//end of method
         //     System.exit (0);
    //--------------------------------- Setting up timer for downloading config file ---------------------------     
         public void run(){
              getConfigFile();
    }//end of classThe funny thing is when I run the code it comes with an error only the first time(I am using a timer task)The subsequent tasks are fine.

  • Forwarding/Redirecting throws java.io.FileNotFoundException but file exists

    http://www.mydomain.com/common/handler.jsp:
    <jsp:forward page="/common/error_page.jsp" />This throws a java.io.FileNotFoundException:
    java.io.FileNotFoundException: resource not found: /common/error_page.jspHowever, I can go to http://www.mydomain.com/common/error_page.jsp and verify that it does indeed exist.
    Why would it throw a FileNotFoundException if not only does the forwarding page exist but exists within the exact same web module?
    I checked ibm-web-ext.xml for the "common" web module to notice that fileServingEnabled="true".
    Any ideas why this is happening?

    A forward is relative to the context root - not the server's root.
    So assuming you have a web application called "common", and "common" is its context name, then "/" would already refer to http://www.mydomain.com/common/
    Thus your forward should just be to "/handler.jsp"
    A redirect is slightly different, because it is resolved on the client, not the server.
    So if you had a web context "myContext"
    You access it with http://www.mydomain.com/myContext
    <jsp:forward page="/mypage.jsp"> (or getRequestDispatcher("/mypage.jsp")) would refer you to http://www.mydomain.com/myContext/mypage.jsp.
    to achieve the same destination with a redirect you would have to have
    response.sendRedirect("/myContext/mypage.jsp");

  • Caused by: java.lang.NullPointerException

    hi am having this error when testing my module am in jdeveloper 11.1.1.6.0,i don't know whats going on on
    oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:437)
    Caused by: oracle.jbo.JboException: JBO-26049: An error occurred during loading definition ecadastre.gov.za.model.AppModule.
         at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:602)
         at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1232)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:603)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:523)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:505)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:780)
         at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:282)
         at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:470)
         at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:87)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:158)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2913)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2473)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2347)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3246)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:523)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:869)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Caused by: java.lang.NullPointerException
         at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:1258)
         at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:1068)
         at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:562)
         ... 25 more
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-26049: An error occurred during loading definition ecadastre.gov.za.model.AppModule.
         at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:602)
         at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1232)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:603)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:523)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:505)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:780)
         at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:282)
         at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:470)
         at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:87)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:158)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2913)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2473)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2347)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3246)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:523)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:869)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Caused by: java.lang.NullPointerException
         at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:1258)
         at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:1068)
         at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:562)
         ... 25 more
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:1258)
         at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:1068)
         at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:562)
         at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1232)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:603)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:523)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:505)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:780)
         at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:282)
         at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:470)
         at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:87)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:158)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2913)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2473)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2347)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3246)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:523)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:869)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)

    Hi,
    yes. Here's the error message for this
    oracle.jbo.JboException: JBO-26049: An error occurred during loading definition ecadastre.gov.za.model.AppModule
    Frank

  • Java.io.FileNotFoundException: /gpsst117/erpcsf/temp/xdol9rmcVP5L7.fo

    Hi,
    I am trying to Intergrate OAF and XML Publisher(BIP).
    I am getting error as
    [616]:EXCEPTION:[MODULE_UNKNOWN]:java.io.FileNotFoundException: /gpsst117/erpcsf/temp/xdol9rmcVP5L7031010_0224125953.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.(FileOutputStream.java:179)
         at java.io.FileOutputStream.(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.xdo.oa.common.DocumentHelper.getOutputURL(DocumentHelper.java:635)
         at oracle.apps.xdo.oa.common.webui.XDOCommonRnCO.processRequest(XDOCommonRnCO.java:251)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2336)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1735)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:82)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:92)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    Anybody has any idea. where this FO file is begin created on server?
    Thanks and Regards,
    Akshay

    Hi,
    I was able to resolve the issue. Issue was in XML / BI publisher for the temporary directory.
    I have setup a temp directory which was coming in error message. After removing that directory I was able to solve the error and Document Viewer Region started working as expected.
    Thanks and Regards,
    Akshay

  • Java.io.FileNotFoundException: no resource '/servlet/  (JBuilder7 and Weblogic7)

    Hi!
    I have been trying to make jBuilder7 Enterprise and WebLogic 7 Enterprise work
    together for many days with no success. My problem is actually identical to one
    issue recently posted on this user group:
         From: CMPUser ([email protected])
         Subject: Re: JB7+WL7 :Fail to run EJB and JSP in the same project
         Date: 2002-09-20 10:40:48 PST
    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=3d8b5b77%241%40newsgroups.borland.com
    All I am trying to do is to use the Wizard to build a very simple Servlet. I am
    following the intructions described in the following document:
         http://bdn.borland.com/article/images/28943/12289_3jbweblogic.pdf.
    Once the project is created, I get the following error message when I try to run
    it:
         <Oct 13, 2002 6:42:48 PM EDT> <Notice> <WebLogicServer> <000331> <Started WebLogic
    Admin
         Server "myserver" for domain "mydomain" running in Development Mode>
         <Oct 13, 2002 6:42:49 PM EDT> <Error> <HTTP> <101018> <[ServletContext(id=824316,name=JBuilder_DefaultWebApp,context-path=)]
    Servlet
         failed with ServletException javax.servlet.UnavailableException: ServletContext(id=824316,name=JBuilder_DefaultWebApp,context-path=):
         The server myserver is temporarily suspended
         java.io.FileNotFoundException: no resource '/servlet/borland.demo.web.TestServlet'
    Apparently WebLogic can not find the generated Servelet. Remember: all I am trying
    to do is run a Servlet generated by the JBuilder wizard. Nothing else!
    In my attempt to resolve the problem I tried moving the java file within the same
    directory as the .shtml file. I also changed the Servlet section of the
    .shtml from:
         <servlet
         codebase=""
         code="borland.demo.web.TestServlet.class"
         >
    to
         <servlet
         codebase=""
         code="TestServlet.class"
         >     
    I still get an error but the error message has changed. Unfortunatelly the exception
    message does not provide much insight into the cause of the problem. All
    I know is that I get an servlet.UnavailableException:
         <[ServletContext(id=4211180,name=JBuilder_DefaultWebApp,context-path=)] Servlet
    failed with ServletExceptionjavax.servlet.UnavailableException:
         ServletContext(id=4211180,name=JBuilder_DefaultWebApp,context-path=): The server
    myserver is temporarily suspended     at
         weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3077)
    at
         weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)>
    Could someone please help me solve this? What should I look for? How do I go about
    resolving this?
    I thank you in advance for your time.
    Olga.

    Hi!
    I have been trying to make jBuilder7 Enterprise and WebLogic 7 Enterprise work
    together for many days with no success. My problem is actually identical to one
    issue recently posted on this user group:
         From: CMPUser ([email protected])
         Subject: Re: JB7+WL7 :Fail to run EJB and JSP in the same project
         Date: 2002-09-20 10:40:48 PST
    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=3d8b5b77%241%40newsgroups.borland.com
    All I am trying to do is to use the Wizard to build a very simple Servlet. I am
    following the intructions described in the following document:
         http://bdn.borland.com/article/images/28943/12289_3jbweblogic.pdf.
    Once the project is created, I get the following error message when I try to run
    it:
         <Oct 13, 2002 6:42:48 PM EDT> <Notice> <WebLogicServer> <000331> <Started WebLogic
    Admin
         Server "myserver" for domain "mydomain" running in Development Mode>
         <Oct 13, 2002 6:42:49 PM EDT> <Error> <HTTP> <101018> <[ServletContext(id=824316,name=JBuilder_DefaultWebApp,context-path=)]
    Servlet
         failed with ServletException javax.servlet.UnavailableException: ServletContext(id=824316,name=JBuilder_DefaultWebApp,context-path=):
         The server myserver is temporarily suspended
         java.io.FileNotFoundException: no resource '/servlet/borland.demo.web.TestServlet'
    Apparently WebLogic can not find the generated Servelet. Remember: all I am trying
    to do is run a Servlet generated by the JBuilder wizard. Nothing else!
    In my attempt to resolve the problem I tried moving the java file within the same
    directory as the .shtml file. I also changed the Servlet section of the
    .shtml from:
         <servlet
         codebase=""
         code="borland.demo.web.TestServlet.class"
         >
    to
         <servlet
         codebase=""
         code="TestServlet.class"
         >     
    I still get an error but the error message has changed. Unfortunatelly the exception
    message does not provide much insight into the cause of the problem. All
    I know is that I get an servlet.UnavailableException:
         <[ServletContext(id=4211180,name=JBuilder_DefaultWebApp,context-path=)] Servlet
    failed with ServletExceptionjavax.servlet.UnavailableException:
         ServletContext(id=4211180,name=JBuilder_DefaultWebApp,context-path=): The server
    myserver is temporarily suspended     at
         weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3077)
    at
         weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)>
    Could someone please help me solve this? What should I look for? How do I go about
    resolving this?
    I thank you in advance for your time.
    Olga.

Maybe you are looking for