Java.io.FileNotFoundException: d:SunSDKaddonsaccessmanager\.storepass
Hi,
I have a system developed in NetBeans 5.5 that uses a secured web service, developed on the same machine. Using the IDE I am able to configure security and get everything working. Today I installed the Sun Java Application Platform SDK on a machine to host only the secured web service portion of the system. After setting everything up, a web app on a second computer accesses the secured web service which causes a very long exception dump.
To configure access manager I've logged into the amserver webapp to configure a UserNameToken account: Access Control > Realm - sun > Subject - UserNameTokenWSP. I have added the following to the "Agent key values" list:
UserCredential=UserName:user|UserPassword:password
Except with a different username and password. I save, then deploy the web services to the app server. When the web app on an other computer calls into the web service, I get a very long stack dump. The interesting parts are:
java.io.FileNotFoundException: d:SunSDKaddonsaccessmanager\.storepass (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sun.identity.saml.xmlsig.JKSKeyProvider.initialize(JKSKeyProvider.java:94)
at com.sun.identity.saml.xmlsig.JKSKeyProvider.<init>(JKSKeyProvider.java:131)
java.io.FileNotFoundException: d:SunSDKaddonsaccessmanager\.keypass (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sun.identity.saml.xmlsig.JKSKeyProvider.initialize(JKSKeyProvider.java:113)
at com.sun.identity.saml.xmlsig.JKSKeyProvider.<init>(JKSKeyProvider.java:131)
[#|2007-02-22T17:09:22.030-0500|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core.security|_ThreadID=13;_ThreadName=httpWorkerThread-8080-0;_RequestID=fc566d5e-84da-4159-ace4-2c95ba4b9038;|AMClientAuthModule.secureResponse: Failed in securing the response.|#]
[#|2007-02-22T17:09:22.046-0500|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=httpWorkerThread-8080-0;_RequestID=fc566d5e-84da-4159-ace4-2c95ba4b9038;|
java.lang.NullPointerException
at com.sun.identity.wss.security.BinarySecurityToken.<init>(BinarySecurityToken.java:130)
at com.sun.identity.wss.security.AMTokenProvider.getSecurityToken(AMTokenProvider.java:142)
at com.sun.identity.wss.security.SecurityTokenFactory.getSecurityToken(SecurityTokenFactory.java:125)
at com.sun.identity.wss.security.handler.SOAPRequestHandler.secureResponse(SOAPRequestHandler.java:266)
I'm new to access manager and don't know where to start looking.
Thanks,
Ryan
My previous answer was completely wrong. You are trying to open a directory as a file. You can't do that. You can use the File API to list what's in the directory, or you can open a file inside the directory.
Message was edited by:
ejp
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.
-
Report Script returns no data and "java.io.FileNotFoundException" error
When attempting to write to a new file (Eg: C:\TEST.txt), Report Script returns no data and "java.io.FileNotFoundException" error occurs.
This error occurs only in Essbase 9.3.1.3 release, however it works fine in release 9.3.1.0.
After running the report the script, it pops up the follwing message:
"java.io.FileNotFoundException: ..\temp\eas17109.tmp (The system cannot find the file specified): C:\TEST.txt"
When checked the TEST.txt, it was empty.Sorry folks, I just found out the reason. Its because there was no data in the combination what I was extracting.
but is this the right error message for that? It should have atleast create a blank file right? -
XML Publisher post-processing error 'java.io.FileNotFoundException'
Hi,
We are getting following XML Publisher post-processing error while running XML Publisher report.
It was working earlier but suddenly its erroring out.
[9/07/10 9:00:17 PM] [OPPServiceThread1] Post-processing request 559655.
[9/07/10 9:00:18 PM] [39177:RT559655] Executing post-processing actions for request 559655.
[9/07/10 9:00:18 PM] [39177:RT559655] Starting XML Publisher post-processing action.
[9/07/10 9:00:18 PM] [39177:RT559655]
Template code: XXHPOXPRRFLR
Template app: XXH
Language: en
Territory: 00
Output type: PDF
[9/07/10 9:00:18 PM] [UNEXPECTED] [39177:RT559655] java.io.FileNotFoundException: /apps/oracle/DEV/inst/apps/DEV_hlt439erplap001/logs/appl/conc/out/o559655.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:274)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
[9/07/10 9:00:18 PM] [39177:RT559655] Completed post-processing actions for request 559655.
Please help me out to resolve this issue.
Thanks & Regards,
SagarikaHi,
java.io.FileNotFoundException: /apps/oracle/DEV/inst/apps/DEV_hlt439erplap001/logs/appl/conc/out/o559655.out (No such file or directory)Most probably this file is not created (since no changes have been done recently, so definitely it is not a permission issue), and if there are any log files generate at the client side it should help in investigating the issue.
Thanks,
Hussein -
I am installing OIM/OAM in a cluster configuration using release 11.1.1.7.
I looked at the EDG here:
http://docs.oracle.com/cd/E28280_01/core.1111/e12035/toc.htm
And its pointing me to the 11.1.1.5 version
http://docs.oracle.com/cd/E21764_01/core.1111/e12035/toc.htm
So that is the guide I am following.
I am at this step:
18.1.5.2 Integrating Oracle Access Manager with Oracle Identity Manager by Using idmConfigTool
http://docs.oracle.com/cd/E21764_01/core.1111/e12035/wiring.htm#sthref356
When I run the config tool I get SEVERE messages like this one:
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Any suggestions on how to fix this ?
Please note that I can see jps-config.xml under the domain configuration in the fmwconfig directory.
Here is the complete output
Enter sso access gate password :
Enter sso keystore jks password :
Enter sso global passphrase :
Enter mds db schema password :
Enter idstore admin password :
Enter admin server user password :
********* Seeding OAM Passwds in OIM *********
Completed loading user inputs for - CSF Config
Completed loading user inputs for - Dogwood Admin WLS
Connecting to t3://admin.mycompany.com:7001
Connection to domain runtime mbean server established
Seeding credential :SSOAccessKey
Seeding credential :SSOGlobalPP
Seeding credential :SSOKeystoreKey
********* Activating OAM Notifications *********
Completed loading user inputs for - MDS DB Config
Jun 6, 2013 1:46:05 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:06 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Initialized MDS resources
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:06 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:07 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Upload to DB completed
Releasing all resources
Notifications activated.
********* Seeding OAM Config in OIM *********
Completed loading user inputs for - OAM Access Config
Validated input values
Initialized MDS resources
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:08 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Download from DB completed
Releasing all resources
Updated /oracle/product/fmw/Oracle_IAM/server/oamMetadata/db/oim-config.xml
Initialized MDS resources
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:08 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:09 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Upload to DB completed
Releasing all resources
OAM configuration seeded. Please restart oim server.
********* Configuring Authenticators in OIM WLS *********
Completed loading user inputs for - LDAP connection info
Connecting to t3://admin.mycompany.com:7001
Connection to domain runtime mbean server established
Starting edit session
Edit session started
Connected to security realm.
Validating provider configuration
Validated desired authentication providers
OAM Asserter already exists in the security realm
OAMIDAsserter is already configured to support 11g webgate
OIM Signature Authenticator already exists in the security realm
A type of LDAP Authenticator already exists in the security realm. Please create authenticator manually if different LDAP provider is required.
Control flags for authenticators set sucessfully
Reordering of authenticators done sucessfully
Saving the transaction
Transaction saved
Activating the changes
Changes Activated. Edit session ended.
Connection closed sucessfully
The tool has completed its operation. Details have been logged to automation.logi found this task :
JDev 11.1.1.1.0 + ADF+ BC4J application on Tomcat6 -
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). -
Hello,
I am in the processing porting a J2EE based application deployed originally in OC4J to WLS. I am not changing anything as far as J2EE/Web configuration files such as web.xml. Whenever I hit the URL of the application, I am getting the below exception.
What does usually "java.io.FileNotFoundException: Response: '404: Not Found' for url...." indicate?
If you could please give me some pointers to narrow down the places to look, I would appreciate it.
Thanks,
Mustafa
java.io.FileNotFoundException: Response: '404: Not Found' for url: 'http://cayc
001geo1:7001/IUS_Editor/mapservlet'
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnectionjava:487)
at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConection.java:37)
at oracle.lbs.mapclient.MapViewer.getXMLResponse(MapViewer.java:6013)
at oracle.lbs.mapclient.MapViewer.getDataSources(MapViewer.java:629)
at gov.census.geo.maftiger.interactiveupdate.navigation.mapservlet.ISGegraphyController.getMapviewerDS(ISGeographyController.java:730)
at gov.census.geo.maftiger.interactiveupdate.navigation.mapservlet.ISGegraphyController.doPost(ISGeographyController.java:161)
at gov.census.geo.maftiger.interactiveupdate.navigation.mapservlet.ISGegraphyController.doGet(ISGeographyController.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.ru(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurtyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
a:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
a:184)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActiHello,
I was able to sort out this issue. I was comparing the web.xml and found out that the servlet-mapping was missing.
Thanks,
Mustafa -
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/PasswordDATAThis 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:
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
-
Java.io.FileNotFoundException in a JSP Page
Hi people,
My JSP page is launching an IOException: java.io.FileNotFoundException and the compiler is telling that the problem is occurring at this code:
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
Could you tell me what is the problem with this code right here???
Greetings and best regards...
LucasThe uri look like paths so the jsp is looking for a file at that location.
http://java.sun.com/products/jsp/syntax/1.2/syntaxref1211.html#8780
uri="URIForLibrary"
The Uniform Resource Identifier (URI) that uniquely locates the TLD that describes the set of custom tags associated with the named tag prefix. A URI can be any of the following:
A Uniform Resource Locator (URL), as defined in RFC 2396, available at http://www.hut.fi/u/jkorpela/rfc/2396/full.html
A Uniform Resource Name (URN), as defined in RFC 2396
An absolute or relative pathname
If the URI is a URL or URN, then the TLD is located by consulting the mapping indicated in web.xml extended using the implicit maps in the packaged tag libraries. If URI is pathname, it is interpreted relative to the root of the web application and should resolve to a TLD file directly, or to a JAR file that has a TLD file at location META-INF/taglib.tld. -
How to catch when user enters a bogus jsp page. I have login.jsp. If someon enter log.jsp i get javax.servlet.ServletException: java.io.FileNotFoundException and then the whole path is shown. This onlyhappens with 9ias. When i was using http server that came with 9i database, i was able to catch this with send_error=true in zone.properties. It doesnt work with 9ias. How is everyone catching these errors? I cant seem to find out how to do it.
ThanksAnyone have any suggestions on this? I take it noone catches this..
-
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?tiaI'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 -
How to catch java.io.FileNotFoundException when a user enters a bogus jsp page. For example. I have a page called login.jsp. If a user enters log.jsp, the entire path is show and i get java.io.FileNotFoundException. This should not happen. This only happened since I upgraded to 9iAS. I tried send_error=true in zone.properties like i did when i was just using oracle http that came with database and it doesnt work. How are all you guys catching this?? I cant find any documentation. They say send_error=true will work, but IT DOESNT.
Thanks for your timeHi Adam,
I am also facing the same problem of the java.io.FIleNotFOundException in the browser display when i am giving a wrong file path in the Url. you have mentioned that you have solved it when you were using Orcale 8i Http Server, can you please guide me for that( as we are also using Oracle 8i) I checked with putting send_error=true in zone.properties file but that is not working. What exctly you have done to get rid of that error message. I am using Windows Nt platform.
Thanks and Regards.
Arnab -
Hi All,
Currently i am developing RTF template for standard RDF, 'INVOICE PRINT
SELECTED INVOICES' in AR module.
After we registered template in oracle applications we tried to run the xml output
concurrent program (this gives input to template) which gives “Completed and
Warning”
And log file shows following error
[UNEXPECTED] [2275:RT915351] java.io.FileNotFoundException: /tmp/xml/xdo1172562108722.fo (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:967)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3555)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3614)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:229)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
[2/27/07 2:41:48 AM] [2275:RT915351] Completed post-processing actions for request 915351.
[2/27/07 2:42:51 AM] [OPPServiceThread0] Post-processing request 915353.
[2/27/07 2:42:51 AM] [2275:RT915353] Executing post-processing actions for request 915353.
[2/27/07 2:42:51 AM] [2275:RT915353] Starting XML Publisher post-processing action.
[2/27/07 2:42:51 AM] [2275:RT915353]
Template code: CSIT
Template app: AR
Language: en
Territory: US
Output type: PDF
could any one help from this problem.
thanks and regards,
sai krishna @cavaya.comHi
Can u please run standalone 'XML report Publisher' concurrent Program .Choose request_id of program which went in warning.
You can check one thing as well.Check temp directory in Adminstration page of XML Publisher.
Thanks
Darshan -
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
Maybe you are looking for
-
Having trouble and I just cannot seem to make any progress. I think that I have tried so many things that I have confused myself and now I am unsure of where to turn. I have a simple query that should take a set of inputted words – run each word thr
-
hi, Could any body find the root cause of the issue. I am getting regular crash when i run my application in AS 3.0. The jdk is 1.4.2_12-b03 mixed mode I am attaching some of the core dumps here # An unexpected error has been detected by HotSpot Virt
-
HT204150 Which contacts are the "master copy"
Hi all, when updating my contacts on my iphone / mac or ipad, which ones become the master copy?. The reason I ask is each time i edit a name on my iPhone it reverts back to the previous edit when I use that contact to send an e mail from my mac?. Do
-
How to consuming reports from OBIEE using web services?
I need know if there are a forum for post about consuming reports from Oracle Business Intelligence Enterprise Edition using web services for deploy on ASP.Net web application. Kind Regards. deniscuba
-
LDAP Configuration in Weblogic 9.1 on HP-UX
Application unable to login, getting invalid login user. LDAP in Windows Box. In log file following lines we getting, Suggest how to resolve this issue: <XACML Authorization isAccessAllowed(): returning DENY> ####<Oct 26, 2006 11:07:42 AM IST> <Debug