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");
Similar Messages
-
Java.io.FilenotFoundException (bad File Discriptor)
in my project i am facing one exception that is :
Java.io.FileNotFoundException (Bad File Discriptor)
when this exception coming tell me brieflyEither your filesystem has gone awry or you are doing something wrong in your code. I suspect the latter.
Please post your formatted code using the code tags. -
Getting FileNotFoundException - but file is right there
hi, I'm getting FileNotFoundException when trying to open a property file.
The property file wfms.props, is in the same directory as my source code.
Following is the code snippet I have
private static String applicationPropertiesFile = "wfms.props";
private Properties appProps;
try {
FileInputStream fin = new FileInputStream(applicationPropertiesFile);
appProps = new Properties();
appProps.load(new FileInputStream(applicationPropertiesFile));
catch (Exception e){e.printStackTrace(System.out);}
I'm not sure why it can't see the file..kindly help!thanks so much warnerja..it worked!! I put the file
same place as my class files & used
getClass().getResourceAsStream(filename).This isn't a very good way to read a properties file, since you are basically relying on the class loader to locate the file, forcing you to put the file somewhere in your class path.
In the context of the servlet you are better off using the servlet calls to get the application directory. I typically use a setting in the web.xml (in the WAR file) to point to where other properties files are located.
web.xml:
?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<!-- Define the Log4jInit servlet, which just sets up where the properties file is -->
<servlet>
<servlet-name>DEVOInit</servlet-name>
<servlet-class>com.cisco.devo.servlet.DEVOInit</servlet-class>
<init-param>
<param-name>log4j-init-file</param-name>
<param-value>WEB-INF/conf/log4j.properties</param-value>
</init-param>
<init-param>
<param-name>devo-properties</param-name>
<param-value>WEB-INF/conf/devo.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<taglib>
<taglib-uri>/taglibs</taglib-uri>
<taglib-location>/WEB-INF/taglib.tld</taglib-location>
</taglib>
</web-app>
Get the properties file:
// Get the path that the web application is running in
String prefix = getServletContext().getRealPath("/");
// Dump it to standard out
System.out.println("DEVOInit.init(): prefix = '" + prefix + "'");
// Get the pameter from the web.xml
log4jProps = getInitParameter("log4j-init-file");
// Dump what we think the log4j properties file is
System.out.println("DEVOInit.init(): log4j-init-file = '" + log4jProps + "'");
// if the log4j-init-file is not set, then no point in trying
if(log4jProps != null)
// tell log4j where the properties file is
PropertyConfigurator.configure(prefix+log4jProps);
System.out.println("DEVOInit.init(): Log4J intialized with property file = '"+prefix+log4jProps+"'");
// Initialize the configuration
devoProps = getInitParameter("devo-properties");
System.out.println("DEVOInit.init(): devo-properties = '" + devoProps + "'");
// Call the initialization routine
Configuration.initialized(devoProps, prefix);In the above example, the Configuration object is a singleton that reads in properties from a file. -
Window XP - java.io.FileNotFoundException
hi there, i have been pulling out my hair + jumping up and down for this problem, if any one have ideal pleae let me know
operating system: window XP (it works fine if i use window NT/2000)
file name : record.db
this code is suppose to get the file and read it :
String fname = "record.db"; // or String fname = ".\\record.db";
FileInputStream fis = new FileInputStream(fname);
DataInputStream dis = new DataInputStream(fis);
and it throw
java.io.FileNotFoundException: record_db\record.db(The system find the specified)
BUT if i use the below line it works fine
String fname = "c:\javaProject\classes\record.db";
and i need to make this dynamic so that i can jar it and run it in anywhere ..
thanksCheck a current directory.
StringBuffer sb = new StringBuffer(3);
sb.append(System.getProperty("user.dir"));
sb.append(System.getProperty("file.separator"));
sb.append("record.db");
String fname = sb.toString();
//System.out.println(fname); -
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 -
Getting FileNotFoundException, but the file exists and is read/write
So I'm trying to input a file and i get this exception, but the file does exist and the directory is correct.
import java.util.Scanner;
import java.io.File;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
public class Assignment1 {
public static void main(String[] args){
File file = new File("C://Users//The RTV//Documents//Procject1//src//test.txt");
if(file.exists()){
System.out.println("*");
BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
}when I remove the BufferedInputStream in = new BufferedInputStream(new FileInputStream(file)); The star prints, so the file does exist, but I keep getting that exception when I put the code back. I also get that exception when I remove the File file and the if statement and just have the buffered input. Can anyone explain to me why this is happeneing?Procject1Typo?Less likely if file.exists() passes.
what about "file.canRead()"? You should also try this, could be a permissions problem.My best guess, despite the thread title. From the Javadoc for FileInputStream(File) :
Throws:
FileNotFoundException - if the file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading.
That last part seems kind of misleading.
Edit:
By the way are you logged on as "The RTV" when you test this?
Edited by: endasil on 10-Sep-2009 4:53 PM -
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); -
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.
- ParitI'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.
-
Receiving java.io.FileNotFoundException: (No such file or directory)
Hi,
I'm trying to use XML Bursting program in 11.5.10. I have uploaded the control file, data template. But the XML Publisher Bursting program completes with error and below is the error message in the log file:
XML/BI Publisher Version : 5.6.3
Request ID: 51460124
All Parameters: ReportRequestID=51460123:DebugFlag=Y
Report Req ID: 51460123
Debug Flag: Y
Updating request description
Updated description
Retrieving XML request information
Node Name:WWWPDCDSORACD01
Preparing parameters
null output =/wdevp/ora/applmgr/comn/admin/out/WDEVP_wwwpdcdsoracd01/o51460124.out
inputfilename =/wdevp/ora/applmgr/comn/admin/out/WDEVP_wwwpdcdsoracd01/o51460123.out
Data XML File:/wdevp/ora/applmgr/comn/admin/out/WDEVP_wwwpdcdsoracd01/o51460123.out
Set Bursting parameters..
Temp. Directory:/tmp
[060211_015430388][][STATEMENT] Oracle XML Parser version ::: Oracle XDK Java 9.0.4.0.0 Production
[060211_015430412][][STATEMENT] setOAProperties called..
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=51460123, user-variable:cp:language=en, user-variable:cp:responsibility=54886, user-variable.OA_MEDIA=http://wwwpdcdsoraca01.wyn.wyndhamworldwide.com:8018/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=51460123, user-variable:cp:locale=en-US, user-variable:cp:user=CDUSER, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=51460124, user-variable:cp:org_id=6188, user-variable:cp:reportdescription=Separate Remittance Advice - BIP}
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..
--Exception
/tmp/060211_015430711/Remit_Advice_100454.pdf (No such file or directory)
java.io.FileNotFoundException: /tmp/060211_015430711/Remit_Advice_100454.pdf (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:523)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
I do not see any sub folder 060211_015430711 under /tmp folder.
Any help ...
Thanks
AnandHi,
Yes, i was able to fix the issue. The template associated with the bursting process needs to be in a single table. I had 2 separate tables due to which the program was completing with error. When i placed both those tables in a single table the issue was resolved.
Regards,
Anand -
I have a program that uses file redirection to read using System.in. Is there anyway to throw an exception if the file redirection isn't in the command line
Here is my code:
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
InetAddress addr = InetAddress.getLocalHost();
String msgReply, hostName, fromAddress, toAddress, temp;
String data = "";
int portNum = 25;
hostName = args[0];
fromAddress = args[1];
toAddress = args[2];
Socket theSocket = new Socket(hostName, portNum);
BufferedReader in = new BufferedReader(new InputStreamReader(theSocket.getInputStream()));
OutputStreamWriter out = new OutputStreamWriter(theSocket.getOutputStream());
BufferedWriter wrt = new BufferedWriter(out);
msgReply = in.readLine();
Main.msgCheck(msgReply);
System.out.println(msgReply);
wrt.write("HELO " + addr.getHostAddress() + "\r\n");
wrt.flush();
msgReply = in.readLine();
Main.msgCheck(msgReply);
System.out.println(msgReply);
wrt.write("MAIL FROM:" + fromAddress + "\r\n");
wrt.flush();
msgReply = in.readLine();
Main.msgCheck(msgReply);
System.out.println(msgReply);
wrt.write("RCPT TO:" + toAddress + "\r\n");
wrt.flush();
msgReply = in.readLine();
Main.msgCheck(msgReply);
System.out.println(msgReply);
wrt.write("DATA \r\n");
wrt.flush();
in.readLine();
while (sc.hasNext()) {
temp = sc.nextLine();
if (temp.startsWith(".")) {
data += "." + temp + "\r\n";
} else {
data += temp + "\r\n";
wrt.write(data + "\r\n");
wrt.flush();
wrt.write(".\r\n");
wrt.flush();
msgReply = in.readLine();
Main.msgCheck(msgReply);
System.out.println(msgReply);
System.out.println(data);
wrt.write("QUIT \r\n");
wrt.flush();
msgReply = in.readLine();
Main.msgCheck(msgReply);
System.out.println(msgReply);
System.exit(0);
public static void msgCheck(String msgReply) {
if (msgReply.startsWith("5") || msgReply.startsWith("4")) {
System.exit(0);
} //end Main classCommand line should look like:
java Main smtp.google.com [email protected] [email protected] <test.txt
Is there anyway to check for:
java Main smtp.google.com [email protected] [email protected]
ThanksNo. And why should you care about that anyway? If I don't redirect from the file, that gives me the opportunity to type in the message I want to send, instead of having to put it into a file beforehand. Or I could write a program that produces the message and pipe its output into your program:
java PoliteMessageGenerator | java Main smtp.google.com [email protected] [email protected]
No, that's a feature and not a bug. -
Getting java.io.FileNotFoundException: Too many open files
I have search for different strings in a file again and again. I am using following code:
try
fileReaderObject = new BufferedReader(new FileReader(fileObject));
String inputLine;
while ((inputLine = fileReaderObject.readLine()) != null)
if (zipCode.equalsIgnoreCase(inputLine.split("\t")[0]))
s = inputLine;
fileReaderObject.close();
return s;
fileReaderObject.close();
catch (Exception e)
Utils.writeMessage(e.toString());
e.printStackTrace();
}But getting java.io.FileNotFoundException:file/emp_info (Too many open files)
1. Whats the main reason of this exception and how can it be removed.
2. Is there any way to move the pointer to the start of the file. I tried reset() but its seems to have some problem.
-vcA hint: your fileReaderObject is not closed if an exception occurs.
Lacking desctructors, the Java-ish way is to close in a finally clause. -
We are using WL 8.1 SP4 on RH Linux 7.2 and have this (non-critical, but annoying) error during runtime. When it hits, the same error gets printed out like a 100 times.
This one is really blowing my mind. I have searched through all our files (including binaries) for "dummylog" and "dummylog.txt" and can't find anything referring to this log file, so where the heck could it be coming from?
This error happens at least each time a user logs in to our application:
java.io.FileNotFoundException: d:/tmp/dummylog.txt (No such file or directory)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileWriter.<init>(FileWriter.java:90)
at com.takecargo.utils.SimpleDebugger.write(SimpleDebugger.java:27)
at com.takecargo.utils.SimpleDebugger.debug(SimpleDebugger.java:17)
at com.takecargo.services.ldap.authentication.LdapLoginModuleImpl.abort(LdapLoginModuleImpl.java:251)
at weblogic.security.service.DelegateLoginModuleImpl.abort(DelegateLoginModuleImpl.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
at javax.security.auth.login.LoginContext.login(LoginContext.java:540)
at weblogic.security.service.PrincipalAuthenticator.authInternal(PrincipalAuthenticator.java:331)
at weblogic.security.service.PrincipalAuthenticator.authenticate(PrincipalAuthenticator.java:284)
at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateLocally(WLInitialContextFactoryDelegate.java:582)
at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:525)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:341)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:313)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at com.takecargo.utils.jms.asp.MessageSenderClient.getInitialContext(MessageSenderClient.java:170)
at com.takecargo.utils.jms.asp.MessageSenderClient.initialize(MessageSenderClient.java:46)
at com.takecargo.utils.jms.asp.MessageSenderClient.sendMessage(MessageSenderClient.java:89)
at com.takecargo.facade.message.messagesender.transportXml.TransportXmlSender.sendMessage(TransportXmlSender.java:1239)
at com.takecargo.facade.message.messagesender.transportXml.TransportXmlSender.sendTransportXml(TransportXmlSender.java:243)
at com.takecargo.facade.message.messagesender.MessageSenderBean.sendMessage(MessageSenderBean.java:210)
at com.takecargo.facade.message.messagesender.MessageSenderBean.sendMessage(MessageSenderBean.java:148)
at com.takecargo.facade.message.messagesender.MessageSender_uog2mo_ELOImpl.sendMessage(MessageSender_uog2mo_ELOImpl.java:46)
at com.takecargo.facade.message.JMSSendMessageQueueDispatcher.onMessage(JMSSendMessageQueueDispatcher.java:98)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Message was edited by:
nickleusFrom the stacktrace,
com.takecargo.utils.SimpleDebugger.write(SimpleDebugger.java:27)
this seems to try to write the file. Do you know what that is? Also create the file with that name manually and see if it works.
Thanks,
-satya -
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
SriNever 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 -
How to redirect "-verbose" Java Runtime Parameter setting to text file
Simple question: I am adding a "-verbose" Java Runtime Parameter in the Java Applet Runtime Settings of the Java Control Panel. When I run my applet, a Windows console opens which outputs all the method calls, classes, and jar file information. How can I redirect this output to a text file?
I noticed Xloggc:+filename+ but there does not seem to be an equivalent for redirecting the '-verbose' output to a file.
Thanks!
Edited by: zillius on Dec 14, 2007 1:47 PMThank you both for the reply, but unfortunately that is not quite what I am looking for. The console Window I am talking about is a DOS console screen, not the Java Console
What I am really after here is the ability to redirect a thread dump of a running applet to a text file. When the applet is active, and the "-verbose" parameter is set in the Java Runtime Parameters", I can see all the classes, methods etc. being loaded in the DOS window. Hitting Ctrl-Break at that point will produce a thread dump in the DOS console screen. I would like to be able to redirect THAT output to a text file. It is not in the Java Console. To me it looks like tracing and logging are only for the Java Console, no?
Thanks again for your help.
Edited by: zillius on Dec 19, 2007 7:17 AM -
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
Maybe you are looking for
-
My keyboard will no longer connect to my imac.
I have turned on my computer this morning after a download last night and my keyboard will not connect to my imac. The keyboard is working as is the mouse.
-
Can't send mail out...and can't figure it out
Hi, after 4 hours or researching, I have finally eliminated the setting issues down to one, can't send mail with outside (not within the company) recipient address. I get Relay access denied. I have done a lot of reading and playing with different se
-
Where do I find the copy stamp / tool in Photoshop elements 12?
Where do I find the copy stamp / tool in Photoshop elements 12?
-
Almost there. Scenario: 2504 wlc Aps 1140 Port 1 lan radius all ok Port 2 defined for guest wlan directed attach no isp router dhcp 1 utp cable on router acquire ip address On guest wlan no ip address is given i think i tried every combinations Any h
-
Hello, I want to paint something on a JPanel, but the image seems to be null and I don't know why. The wierd thing is that if ImageIO.read() fails, the error should be caught. But it seems like that it does reads but afbeelding is still null. What's