Exception stacktrace truncated
Hello, all.
Is there a way to stop this exception stacktrace trunctation "feature" that seems to come with 1.4.x ? Here's an example:
Caused by: java.lang.reflect.InvocationTargetException
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.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
... 14 more
Caused by: javax.media.jai.util.ImagingException: All factories fail for the operation "encode"
at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1695)
at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.FileStoreRIF.create(FileStoreRIF.java:143)
... 20 more
The ...14 more, and ...20 are getting on my nerves. There's no point in knowing how deep the stack trace is If I don't know where it begins. I wonder who in the Java team came up with this bright idea.
Anyways, does anyone know how to get rid of this and have the complete stack trace displayed.
Thanks,
Sonny
One think to note is that even though it truncates some of the exceptions, you aren't actually losing any information. Its all in how you read it.
For example, this test program: package teststacktrace;
public class TestStackTrace {
public static void main(String[] args) {
try {
method1();
} catch (java.sql.SQLException e) {
throw new RuntimeException("RuntimeException", e);
private static void method1() throws java.sql.SQLException {
try {
method2();
} catch (java.io.IOException e) {
throw (java.sql.SQLException) new java.sql.SQLException("SQLException").initCause(e);
private static void method2() throws java.io.IOException {
throw new java.io.IOException("IOException");
}produces this stacktrace:
java.lang.RuntimeException: RuntimeException
at teststacktrace.TestStackTrace.main(TestStackTrace.java:10)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
Caused by: java.sql.SQLException: SQLException
at teststacktrace.TestStackTrace.method1(TestStackTrace.java:18)
at teststacktrace.TestStackTrace.main(TestStackTrace.java:8)
... 5 more
Caused by: java.io.IOException: IOException
at teststacktrace.TestStackTrace.method2(TestStackTrace.java:23)
at teststacktrace.TestStackTrace.method1(TestStackTrace.java:16)
... 6 moreYou'll notice that the last method mentioned in a deeper exception (textually lower in the list) overlaps with the first method mentioned in the next exception. Everything that follows the overlapping line is essentially what was truncated from the lower exception.
So to read the full depth, you read the stack trace of the top exception from bottom to top, then read the stack trace of the next exception from bottom to top etc.
T
Similar Messages
-
Why does Exception.StackTrace disappear?
I'm attempting to catch unhandled exceptions in my app on windows 8.1
I've noticed that in my App_UnhandledException handler, that the UnhandledExceptionArgs.Exception.StackTrace is valid on entry.
However, I take the same Exception object, and pass it to a function, and the value mysteriously becomes null.
As a workaround, I capture the stack trace into a string variable before any other operations on the exception object, but I don't understand why this should be necessary.
Anthony Wieser | Wieser Software Ltd |
www.wieser-software.comFor some reason, it seems the getter of the 'Exception' property of the 'UnhandledExceptionEventArgs' returns the original exception the first time (I've checked, it's the exact same reference), and creates a new exception the subsequent times. I don't know
where this behavior comes from, but instead of saving the stacktrace you should keep a reference to the whole exception:
var exception = e.Exception;
// Now inspect exception instead of e.Exception -
Hi, I am debugging a Web Service. It sometimes throws an exception while deserializing the input. But when I look through the log all I see is:
####<Jul 27, 2010 9:20:43 AM EDT> <Info> <WebService> <myhost.net> <prodServer114> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1280236843573> <BEA-220024> <Handler weblogic.webservice.core.handler.InvokeHandler threw an exception from its handleRequest method. The exception was:
java.lang.NumberFormatException: For input string: "".>
How do I make weblogic spit out the exception stacktrace?
I am using Weblogic 9.2.
Thanks in advance!Hi, I am debugging a Web Service. It sometimes throws an exception while deserializing the input. But when I look through the log all I see is:
####<Jul 27, 2010 9:20:43 AM EDT> <Info> <WebService> <myhost.net> <prodServer114> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1280236843573> <BEA-220024> <Handler weblogic.webservice.core.handler.InvokeHandler threw an exception from its handleRequest method. The exception was:
java.lang.NumberFormatException: For input string: "".>
How do I make weblogic spit out the exception stacktrace?
I am using Weblogic 9.2.
Thanks in advance! -
How to make a 500 error page with exception stacktrace
Hi Guys ,
The weblogic default 500 error page is not showing the exception stacktrace. we try to build a customer error page to display trace just like tomcat .
By pointing 500 error to myerror.jsp in web.xml ,we are able to replace defaut page. but still can't get the trace by using ex.printStacktrace() , it look like weblogic swallow the stacktrace and hijack the exception object.
Any idea ?
KYanyone ?
-
Exception stacktrace to a string?
Hi
My problem is that I want to get java exception stacktraces to a string using JNI calls in C.
I know how to do it with Java using Throwable.printStackTrace and so on, but I'm just wondering if it's valid to do it that way due to the somewhat unclear descriptions of the exception functions in JNI. My program is invoking java from C so there is no java function I will return to that can handle the exceptions at a higher level so I want to handle things from C.
I know I can get the exception using ExceptionDescribe, but then it says I can't use any other JNI calls until I use ExceptionClear (or ExceptionDescribe) to clear the exception. Thus my question is, can I use the jthrowable object the ExceptionDescribe returned after I call ExceptionClear, i.e. does the clear only clear the thrown status, but doesn't remove the actual throwable object? And if I can use it, I assume I have to release my reference to the throwable object useing DeleteLocalRef. Does it work this way or can't I use the throwable object at all in my code?
Example:
jthrowable err;
>>>JNI call that throws an exception
if ((err = (*env)->ExceptionOccurred(env)) != NULL)
(*env)->ExceptionClear(env);
>>>Function that use JNI to call java functions to print the exception stacktrace to a string
(*env)->DeleteLocalRef(env, err);
Hope someone can answer if this is possible or if I simply have to live without the stacktrace. The references and tutorials are a bit vague on this.My problem is that I want to get java exception
stacktraces to a string using JNI calls in C.Throwable.printStackTrace(PrintStream s)
Throwable.printStackTrace(PrintWriter s)
You use a string stream for the output.
You would of course have to convert all that to C code (and only use it after clearing the exception.) -
I just bought an iPhone 4s and synched it yesterday. I backed up the old phone (a 3GS), then restored all those files to the 4S. It generally worked well, except all SMS messages after October 20 were not there. How do I get the newest messages from the old phone on the new phone? (I wouldn't mind getting ALL the SMS messages...)
Thanks for any help.
Arthur in VABasics from the manual are restrt, reset, restore.
Have you tried each of these? -
Hardcore exception stacktrace related to long message in JDialog
Hi,
Here's the code for my showDialog method:
void showDialog(String title, String messageContent) {
String output = "<font face=\"Arial, sans-serif, Helvetica, Geneva\">" + messageContent;
//output = output.substring(0, 254); Works with 254. 255+ creates the problem.
//System.out.print(output); outputs correctly, even with very very long strings
JPanel panel = new JPanel(new BorderLayout());
JTextPane message = new JTextPane();
message.setEditable(false);
message.setContentType("text/html");
message.setBackground(lightGray);
message.setHighlighter(null);
message.setPreferredSize(new Dimension(250, 150));
message.setText(output);
//System.out.println(message + "\n--------\n"); //not null
panel.add(message, BorderLayout.CENTER);
JDialog dialog = new JDialog(frame, title);
//System.out.println(dialog + "\n--------\n"); //not null
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setSize(250, 200);
dialog.setLocationRelativeTo(frame);
dialog.setContentPane(panel);
dialog.show();
}It works as expected for relatively short Strings (messageContent). Once I try to display my dialogs with more content in it (Strings of length 255+), shit hits the fan:
java.lang.NullPointerException
at javax.swing.text.GlyphView.paint(GlyphView.java:367)
at javax.swing.text.BoxView.paintChild(BoxView.java:144)
at javax.swing.text.BoxView.paint(BoxView.java:407)
at javax.swing.text.BoxView.paintChild(BoxView.java:144)
at javax.swing.text.BoxView.paint(BoxView.java:407)
at javax.swing.text.ParagraphView.paint(ParagraphView.java:569)
at javax.swing.text.html.ParagraphView.paint(ParagraphView.java:220)
at javax.swing.text.BoxView.paintChild(BoxView.java:144)
at javax.swing.text.BoxView.paint(BoxView.java:407)
at javax.swing.text.html.BlockView.paint(BlockView.java:264)
at javax.swing.text.BoxView.paintChild(BoxView.java:144)
at javax.swing.text.BoxView.paint(BoxView.java:407)
at javax.swing.text.html.BlockView.paint(BlockView.java:264)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1319)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:636)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:770)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:749)
at javax.swing.JComponent.paintComponent(JComponent.java:541)
at javax.swing.JComponent.paint(JComponent.java:808)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4794)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
at javax.swing.JComponent.paint(JComponent.java:798)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1312)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
at java.awt.Component.dispatchEventImpl(Component.java:3678)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)This error message isn't really helping me. :(
Might any of you gurus have a clue what the problem is, and what I can do about it?Hi, the message is not with 255 characters limit I think. Is there a function called paint overridded in your class? Textpane takes around 65556 chars.
-
NULL in primary keys NOT logged to exceptions table
Problem: Inconsistent behavior when enabling constraints using the "EXCEPTIONS INTO" clause. RDBMS Version: 9.2.0.8.0 and 10.2.0.3.0
- NULL values in primary keys are NOT logged to exceptions table
- NOT NULL column constraints ARE logged to exceptions table
-- Demonstration
-- NULL values in primary keys NOT logged to exceptions table
TRUNCATE TABLE exceptions;
DROP TABLE t;
CREATE TABLE t ( x NUMBER );
INSERT INTO t VALUES ( NULL );
ALTER TABLE t
ADD ( CONSTRAINT tpk PRIMARY KEY (x) EXCEPTIONS INTO exceptions );
SELECT * FROM exceptions; -- returns no rows
-- NOT NULL column constraints logged to exceptions table
TRUNCATE TABLE exceptions;
DROP TABLE t;
CREATE TABLE t ( x NUMBER );
INSERT INTO t VALUES ( NULL );
ALTER TABLE t MODIFY ( X NOT NULL EXCEPTIONS INTO EXCEPTIONS );
SELECT * FROM exceptions; -- returns one row
I would have expected all constraint violations to be logged to exceptions. I was not able to find any documentation describing the behavior I describe above.
Can anyone tell me if this is the intended behavior and if so, where it is documented?
I would also appreciate it if others would confirm this behavior on their systems and say if it is what they expect.
Thanks.
- Doug
P.S. Apologies for the repost from an old thread, which someone else found objectionable.I should have posted the output. Here it is.
SQL>TRUNCATE TABLE exceptions;
Table truncated.
SQL>DROP TABLE t;
Table dropped.
SQL>CREATE TABLE t ( x NUMBER );
Table created.
SQL>INSERT INTO t VALUES ( NULL );
1 row created.
SQL>ALTER TABLE t ADD ( CONSTRAINT tpk PRIMARY KEY (x) EXCEPTIONS INTO exceptions );
ALTER TABLE t ADD ( CONSTRAINT tpk PRIMARY KEY (x) EXCEPTIONS INTO exceptions )
ERROR at line 1:
ORA-01449: column contains NULL values; cannot alter to NOT NULL
SQL>SELECT * FROM exceptions;
no rows selected
SQL>
SQL>TRUNCATE TABLE exceptions;
Table truncated.
SQL>DROP TABLE t;
Table dropped.
SQL>CREATE TABLE t ( x NUMBER );
Table created.
SQL>INSERT INTO t VALUES ( NULL );
1 row created.
SQL>ALTER TABLE t MODIFY ( X NOT NULL EXCEPTIONS INTO EXCEPTIONS );
ALTER TABLE t MODIFY ( X NOT NULL EXCEPTIONS INTO EXCEPTIONS )
ERROR at line 1:
ORA-02296: cannot enable (MYSCHEMA.) - null values found
SQL>SELECT * FROM exceptions;
ROW_ID OWNER TABLE_NAME CONSTRAINT
AAAkk5AAMAAAEByAAA MYSCHEMA T T
1 row selected.
As you can see, I get the expected error message. But I only end up with a record in the exceptions table for the NOT NULL column constraint, not for the null primary key value. -
Query user ACL results in exception, PortalException, Invalid pointer AxisFault
Hi,
I am developing a remote portlet application in Java for plumtree portal v 5.0.3, using EDK library v 5.0. The requirement is to determine if the user accessing the application has "Admin" privileges for the portlet or not.. For this, I query User (and all the user's groups) ACL to check if the AccessLevel is Admin. This method seemed to work fine on the development environment but fails on staging environment. I have checked the SOAP-API-URI and other settings like sending Login Tokens etc, and all seems to be fine. The application is written in Java hosted on a UNIX box, while the portal is on Windows environment.
Following is the code where the error occurs:
IPortletContext edk = PortletContextFactory.createPortletContext(request, response); IRemoteSession remoteSession = edk.getRemotePortalSession(); //IRemoteSession remoteSession = RemoteSessionFactory.getTokenContext(edk.getRequest().getRemoteAPIEndpoint(), edk.getRequest().getLoginToken()); -- Tried this but no difference
IPortletManager portletManager = remoteSession.getPortletManager(); logger.debug("Got Remote portal session");
int portletId = edk.getRequest().getPortletID(); IACL acl = portletManager.queryACL(portletId);<-- This is where it breaks
Following is the exception stacktrace that I get.
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultString: Server was unable to process request. --> Invalid pointer faultActor: null faultDetail: stackTrace: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultString: Server was unable to process request. --> Invalid pointer faultActor: null faultDetail:
Server was unable to process request. --> Invalid pointer at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135) at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:949) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1203) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:294) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:261) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:147) at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:286) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546) at org.apache.axis.Message.getSOAPEnvelope(Message.java:377) at org.apache.axis.client.Call.invokeEngine(Call.java:2132) at org.apache.axis.client.Call.invoke(Call.java:2102) at org.apache.axis.client.Call.invoke(Call.java:1851) at org.apache.axis.client.Call.invoke(Call.java:1777) at org.apache.axis.client.Call.invoke(Call.java:1315) at com.plumtree.remote.prc.soap.DirectoryAPISoapBindingStub.queryACL(Unknown Source) at com.plumtree.remote.prc.soap.DirectoryProcedures.QueryACL(Unknown Source) at com.plumtree.remote.prc.xp.XPACLPersistence.QueryEntries(Unknown Source) at com.plumtree.remote.prc.xp.XPACLPersistence.QueryACL(Unknown Source) at com.plumtree.remote.prc.xp.XPObjectManager.queryACL(Unknown Source) at com.plumtree.remote.prc.ObjectManagerWrapper.queryACL(Unknown Source) at com.enbridge.txb.web.shared.security.PortalAuthenticationUtil.isUserACLAdmin(PortalAuthenticationUtil.java:159) at com.enbridge.txb.web.shared.security.SetAdminPrefsAction.getAdminPrefs(SetAdminPrefsAction.java:82) at java.lang.reflect.Method.invoke(Native Method) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:278) at com.enbridge.txb.web.shared.BaseAction.execute(BaseAction.java:116) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Unknown Source)
Server was unable to process request. --> Invalid pointer at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135) at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:949) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1203) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:294) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:261) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:147) at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:286) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546) at org.apache.axis.Message.getSOAPEnvelope(Message.java:377) at org.apache.axis.client.Call.invokeEngine(Call.java:2132) at org.apache.axis.client.Call.invoke(Call.java:2102) at org.apache.axis.client.Call.invoke(Call.java:1851) at org.apache.axis.client.Call.invoke(Call.java:1777) at org.apache.axis.client.Call.invoke(Call.java:1315) at com.plumtree.remote.prc.soap.DirectoryAPISoapBindingStub.queryACL(Unknown Source) at com.plumtree.remote.prc.soap.DirectoryProcedures.QueryACL(Unknown Source) at com.plumtree.remote.prc.xp.XPACLPersistence.QueryEntries(Unknown Source) at com.plumtree.remote.prc.xp.XPACLPersistence.QueryACL(Unknown Source) at com.plumtree.remote.prc.xp.XPObjectManager.queryACL(Unknown Source) at com.plumtree.remote.prc.ObjectManagerWrapper.queryACL(Unknown Source) at com.enbridge.txb.web.shared.security.PortalAuthenticationUtil.isUserACLAdmin(PortalAuthenticationUtil.java:159) at com.enbridge.txb.web.shared.security.SetAdminPrefsAction.getAdminPrefs(SetAdminPrefsAction.java:82) at java.lang.reflect.Method.invoke(Native Method) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:278) at com.enbridge.txb.web.shared.BaseAction.execute(BaseAction.java:116) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Unknown Source)
can anyone please help me? :-(
Thanks,GauravHi,
By default on CE SLD is not available. Please go through this to configure SLD
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20c58fff-0c62-2b10-4381-9ac4d920a8cc
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09527da-39a7-2b10-9f99-c6a007e516a5
Regards
Ayyapparaj -
Handling Java Exception via WSIF
Hi all,
On BPEL, I want to catch exception thrown by Java method exposed via WSIF so that I can propagate the error message to BPEL client, but it seems that instead of getting my exception, BPEL keeps getting remoteException, is it possible at all ?
Below is my Java class:
public class InvalidParameterException extends Exception
public InvalidParameterException(String string)
super(string);
public final class CommonUtil
public static String formatMSISDN(String rawMSISDN) throws InvalidParameterException
throw new InvalidParameterException("test");
return "test2";
}And below is part the WSDL:
<message name="RawMSISDNMessage">
<part name="rawMSISDN" type="xsd:string"/>
</message>
<message name="FormattedMSISDNMessage">
<part name="formattedMSISDN" type="xsd:string"/>
</message>
<message name="InvalidParameterException">
<part name="message" type="xsd:string"/>
</message>
<portType name="CommonUtilityPT">
<operation name="formatMSISDN">
<input name="FormatMSISDNRequest" message="tns:RawMSISDNMessage"/>
<output name="FormatMSISDNResponse" message="tns:FormattedMSISDNMessage"/>
<fault name="FormatMSISDNFault" message="tns:InvalidParameterException"/>
</operation>
</portType>
<binding name="JavaBinding" type="tns:CommonUtilityPT">
<java:binding/>
<format:typeMapping encoding="Java" style="Java">
<format:typeMap typeName="xsd:string" formatType="java.lang.String"/>
</format:typeMapping>
<operation name="formatMSISDN">
<java:operation methodName="formatMSISDN" methodType="static"
parameterOrder="rawMSISDN" returnPart="formattedMSISDN"/>
<input name="FormatMSISDNRequest"/>
<output name="FormatMSISDNResponse"/>
<fault name="FormatMSISDNFault"/>
</operation>
</binding>
<service name="CommonUtility">
<port name="JavaPort" binding="tns:JavaBinding">
<java:address className="com.visitek.xlpoc.CommonUtil"/>
</port>
</service>
...Any help would be greatly appreciated.
Best Regards,
James
Edited by: user543925 on May 25, 2010 5:06 AMHi,
After restarting SOA Suite, it seems that the expected fault is returned (InvalidParameterException). But this time another exception is thrown which indicates as if fault handler for InvalidParameterException was not specified, while I've done so in BPEL:
<faultHandlers>
<catch faultName="ns3:InvalidParameterException">
<sequence name="Sequence">
<assign name="AssignOutput">
<copy>
<from expression="ora:getFaultName()"/>
<to variable="outputVariable" part="payload"
query="/client:processResponse/client:message"/>
</copy>
</assign>
<reply name="ReplyOutput" variable="outputVariable"
partnerLink="allowexistofferbpel_client"
portType="client:AllowExistOfferBPEL" operation="process"/>
<terminate name="ExitBPEL"/>
</sequence>
</catch>
</faultHandlers>
...And below is the exception stacktrace:
com.visitek.xlpoc.InvalidParameterException: The length of parameter 'rawMSISDN' should be between 9 and 15
at com.visitek.xlpoc.CommonUtil.formatMSISDN(Unknown Source)
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:597)
at oracle.integration.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(WSIFOperation_Java.java:1048)
<May 27, 2010 5:52:12 PM WIT> <Error> <oracle.soa.bpel.engine.ws> <BEA-000000> <<WSInvocationManager::invoke> got RuntimeException
oracle.fabric.common.FabricException: oracle.fabric.common.BusinessFaultException
at oracle.integration.platform.blocks.wsif.WsifReference.request(WsifReference.java:705)
at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
Caused By: oracle.fabric.common.BusinessFaultException
at oracle.integration.platform.blocks.wsif.WsifReference.request(WsifReference.java:657)
at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
<May 27, 2010 5:52:12 PM WIT> <Error> <oracle.soa.bpel.engine> <BEA-000000> <<CubeEngine::handleWorkItem> This exception occurred because the fault thrown in the BPEL flow was not handled by any fault handlers and reached the top-level scope. Root cause : com.oracle.bpel.client.BPELFault: faultName: {InvalidParameterException}
parts: {{
exception=<exception xmlns="http://visitek.co.id/xlpoc/">
<tns:faultstring xmlns:tns="http://visitek.co.id/xlpoc/">The length of parameter 'rawMSISDN' should be between 9 and 15</tns:faultstring>
<tns:detail xmlns:tns="http://visitek.co.id/xlpoc/">com.visitek.xlpoc.InvalidParameterException: The length of parameter 'rawMSISDN' should be between 9 and 15</tns:detail>
</exception>
>
Not fatal connection error ... not retrying.
<May 27, 2010 5:52:13 PM WIT> <Error> <oracle.webservices.service> <OWS-04115> <An error occurred for port: FabricProvider: javax.xml.rpc.soap.SOAPFaultException.>
...And this is the response message:
<messages>
<input>
<InvokeFormatMSISDN_formatMSISDN_InputVariable>
<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="rawMSISDN">
<rawMSISDN>test</rawMSISDN>
</part>
</InvokeFormatMSISDN_formatMSISDN_InputVariable>
</input>
<fault>
<bpelFault>
<faultType>
<message>0</message>
</faultType>
<InvalidParameterException xmlns="">
<part name="exception">
<exception xmlns="http://visitek.co.id/xlpoc/">
<tns:faultstring xmlns:tns="http://visitek.co.id/xlpoc/">The length of parameter 'rawMSISDN' should be between 9 and 15</tns:faultstring>
<tns:detail xmlns:tns="http://visitek.co.id/xlpoc/">com.visitek.xlpoc.InvalidParameterException: The length of parameter 'rawMSISDN' should be between 9 and 15</tns:detail>
</exception>
</part>
</InvalidParameterException>
</bpelFault>
</fault>
<faultType>
<message>0</message>
</faultType>
</messages>
...The attribute xmlns in InvalidParameterException is empty, this could be the problem, but I don't why.
Any help would be greatly appreciated.
Regards,
James -
Hi Everyone,
Database is up, while running adcfgclone.pl on Application Tier and getting below error. Any help is highly appreciated.
Tech Stack details
10gR2 - database
E-Business Suite 12
====================
Error in /oraapp01/oracle/DFIN/inst/apps/DFIN_frcmde37ka/admin/log/ApplyAppsTier_04021635.log
Skipping prodsetup driver processing; driver file not found at: /oraapp01/oracle/DFIN/comn/clone//apps/driver/frcmde37ka_prodsetup.drv
Executing runAutoConfig...
Deleting files of type INSTALL
Starting CVM.....
Exception Occurred while running CVM: java.lang.Exception: Invalid AD_TOP
StackTrace:
java.lang.Exception: Invalid AD_TOP
at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1499)
at oracle.apps.ad.clone.ApplyApplTop.runCVM(ApplyApplTop.java:510)
at oracle.apps.ad.clone.ApplyApplTop.runAutoConfig(ApplyApplTop.java:552)
at oracle.apps.ad.clone.ApplyApplTop.doConf(ApplyApplTop.java:339)
at oracle.apps.ad.clone.ApplyApplTop.doApply(ApplyApplTop.java:382)
at oracle.apps.ad.clone.ApplyApplTop.<init>(ApplyApplTop.java:267)
at oracle.apps.ad.clone.ApplyAppsTier.<init>(ApplyAppsTier.java:105)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
at java.lang.Thread.run(Thread.java:797)
Product Top Drivers executed :
ApplyApplTop Completed Successfully.
# Checking the status of AutoConfig run of ApplyApplTop
# AutoConfig Completed successfully
ThanksHere it is
Error
Starting Context Value Management System at Thu Apr 03 12:16:37 BST 2008
Using version 120.8.12000000.4
Options:
Force : no
Contextfile : /oraapp01/oracle/DFIN/inst/apps/DFIN_frcmde37ka/appl/admin/DFIN_frcmde37ka.xml
Templatefile : /oraapp01/oracle/DFIN/apps/ad/12.0.0/admin/template/adxmlctx.tmp
ValueUpdateFile : /oraapp01/oracle/DFIN/apps/apps_st/appl/ad/12.0.0/admin/template/adcvmat.xml
Verifying value management system requirements:
ContextFile : VALID
Template File : VALID
ValueUpdateFile : INVALID
Deactivating Context Value Management System.System Exit Status: 1
========================================================================
Restored the Context file in :
/oraapp01/oracle/DFIN/inst/apps/DFIN_frcmde37ka/appl/admin/DFIN_frcmde37ka.xml
Aborting the running of Context Value Management
Exception Occurred while running CVM: java.lang.Exception: Fatal Exception
StackTrace:
java.lang.Exception: Fatal Exception
at oracle.apps.ad.context.CtxValueMgt.processCSH(CtxValueMgt.java:1285)
at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1571)
at oracle.apps.ad.clone.ApplyApplTop.runCVM(ApplyApplTop.java:510)
at oracle.apps.ad.clone.ApplyApplTop.runAutoConfig(ApplyApplTop.java:552)
at oracle.apps.ad.clone.ApplyApplTop.doConf(ApplyApplTop.java:339)
------------ -
Hi,
We have a text file in unix box and its permission is -rw-r-----.
And a java web application is not able to read this file and for
some other reason we are not able to see the server console output
for exception stacktrace.
Is the permisson of the file not allowing the application to read it?
If its true then what could be the exception (IOException ??)
-VIf the process is not running under the same user that own the file he won't be able to write, and, if the process is not running under the same user or group, he won't be able to read it.
The Exception will be probably be "FileNotFoundException: Permission Denied" -
Throwing index out of bound exception- please explain to fix the error
import java.util.StringTokenizer;
import java.lang.String;
public class tokenize
String s="I have learned that people will forget what you said, people will forget what you did, but people will never forget how you made them feel. ";
String s1="Nature always wears the colors of the spirit.";
public void noofwords()
StringTokenizer str= new StringTokenizer(s," ");
StringTokenizer str1= new StringTokenizer(s1," ");
System.out.println("the no of words in the string s is: "+str.countTokens()+" and the number of words in s1 is: "+str1.countTokens);
public void nooflines()
StringTokenizer str2= new StringTokenizer(s1,".,?");
StringTokenizer str3 = new StringTokenizer(s,".,?");
System.out.println("the number of lines in string s is: "+str3.countTokens()+" "+"and number of lines in the string s1 is: "+str2.countTokens());
public void noofchars()
System.out.println("no of characters in string s is: "+s.length()+ " " +"and the number of lines in the string s1 is : "+s1.length());
public void noofvowels()
StringTokenizer str4 = new StringTokenizer(s," ");
String strpackets;
int count =0;
if(str4.hasMoreElements())
strpackets= str4.nextToken();
for( int a=0;a<=strpackets.length();a++)
char c= strpackets.charAt(a);
if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'||c=='A'||c=='E'||c=='I'||c=='O'||c=='U')
count++;
System.out.println("the number of vowels in the sring s is: "+count);
public static void main(String[] args)throws StringIndexOutOfBoundsException
tokenize tze = new tokenize();
tze.noofwords();
tze.noofchars();
tze.nooflines();
tze.noofvowels();
Edited by: 881507 on Sep 10, 2012 9:46 PMProvide the exception stacktrace.
Post your code inside the code tag.
881507 wrote:
public class tokenize Follow the convention to writing a class.
public class Tokenize 881507 wrote:System.out.println("the no of words in the string s is: "str.countTokens()" and the number of words in s1 is: "+str1.countTokens);is this compiled?
881507 wrote:
char c= strpackets.charAt(a);this is the point which throw the exception.
It should be
for( int a=0;a<strpackets.length();a++) -
Catching all possible exceptions in gui thread
Hi,
I have such a problem: I am developing Swing app and sometimes it crashes by throwing an Exception which I don't catch. The effect is that this exception prints stack trace on System.err but user is not notified and wonders what is happening... I would prefer to show custom ErrorDialog with stacktrace.
I am searching for simple and effective way to catch every possible exception thrown from within any library. I think of a few ways from which everyone has some disadvantages.
The ideal way would be replacing AWT event queue dispatcher so I could process every GUI event inside try { } catch (Exception e) {} block. That would be a good place to catch all exceptions. Unfortunately I don't know if it is possible.
For now I am trying such a solution:
I start background thread together with main app. Then I redirect System.err and System.out streams to PipedStream connected to this background thread. This thread can analyze anything that is going to System.err and maybe recognize potential exception stacktraces. Then it can notify main thread of an exception. But it is not ideal as I have to parse the stream and it can always be not ideal in exception recognition. And the code is quite costly.
Do you have any ideas, had similar problems?But how can I cause GUI thread to run in my thread
group? As I suppose GUI thread is started by JVM and
is something separate from my code - I can get a
reference to GUI thread but don't know how to
manipulate or replace it...One alternative is to completely separate the GUI code from your code.
Your code, which is wrapped in appropriate try/catch blocks, runs on its own thread and does its own processing. When it's done with that processing, it queues the results on the event thread for display. If an exception occurs during your processing, then you queue something that notifies the GUI.
The simplest way to implement this is to spawn a new thread for each operation. The Runnable that you give to that thread looks like the following:
public MyOperationClass implements Runnable
public void run()
try
// do your exception-generating code here
SwingUtilities.invokeLater( new MyGUIUpdateClass(param1, param2));
catch (Exception e)
SwingUtilities.invokeLater(new MyExceptionReporter(e));
}This is only a bare-bones solution (and hasn't been compiled). Since it separates the GUI from actual processing, you'll probably want to display a wait cursor while the processing thread is doing its thing. You'll probably end up implementing a class that implements this pattern. You may also want to create a producer-consumer thread, so that the user won't invoke, say, a dozen different operations at once.
However, this sort of code is absolutely essential to Swing programming. Most apps do extensive non-GUI processing, such as database queries. If you run such queries in the GUI thread, your GUI will freeze.
Sun has named this pattern "SwingWorker", although I don't think they've fleshed it out very fully: http://java.sun.com/products/jfc/tsc/articles/threads/threads2.html -
Exception Details while running HelloWorld Page
Hi,
I am getting the following error while running HelloworldPG.xml from Jdeveloper
Any help in this will be greatly appreciated.
Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection) at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:884) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)## Detail 0 ##oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862) at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:876) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)## Detail 0 ##java.sql.SQLException: Io exception: The Network Adapter could not establish the connection at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334) at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3678) at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352) at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:371) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:753) at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:704) at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:609) at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:681) at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:552) at oracle.apps.fnd.security.DBConnObj.(DBConnObj.java:206) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187) at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946) at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661) at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:211) at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1671) at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2363) at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2301) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2172) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1986) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1890) at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:1482) at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:996) at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:360) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:225) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:184) at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:147) at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1107) at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:971) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:940) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:907) at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570) at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:1025) at oracle.apps.fnd.common.WebAppsContext.init(WebAppsContext.java:3486) at oracle.apps.fnd.common.WebAppsContext.(WebAppsContext.java:537) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:346) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862) at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:876) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)## Detail 0 ##java.sql.SQLException: Io exception: The Network Adapter could not establish the connection at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334) at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3678) at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352) at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:371) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:753) at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:704) at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:609) at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:681) at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:552) at oracle.apps.fnd.security.DBConnObj.(DBConnObj.java:206) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187) at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946) at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661) at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:211) at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1671) at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2363) at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2301) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2172) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1986) at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1890) at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:1482) at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:996) at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:360) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:225) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:184) at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:147) at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1107) at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:971) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:940) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:907) at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570) at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:1025) at oracle.apps.fnd.common.WebAppsContext.init(WebAppsContext.java:3486) at oracle.apps.fnd.common.WebAppsContext.(WebAppsContext.java:537) at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:346) at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144) at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80) at runregion.jspService(runregion.jsp:96) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)Can you please elaborate on the problem you had with the DBC file and how you resolved it. Our instance was refreshed recently. Since then I am getting this error :
Exception Details.
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = No suitable driver; (Could not lookup message because there is no database connection)
at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:884)
at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347)
at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
at runregion.jspService(runregion.jsp:96)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: No suitable driver; (Could not lookup message because there is no database connection)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:876)
at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:347)
at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
at runregion.jspService(runregion.jsp:96)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:532)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
[ Exception message truncated ]
This is the content of our new DBC file :
#DB Settings
#Sun Feb 26 22:36:05 EST 2006
GUEST_USER_PWD=APPSDBA/APPSDBA
APPL_SERVER_ID=0DBF592746421876E0440003BA0763D035769940832816096332902802117385
FND_JDBC_BUFFER_DECAY_INTERVAL=300
APPS_JDBC_DRIVER_TYPE=THIN
FND_JDBC_BUFFER_MIN=1
GWYUID=APPLSYSPUB/PUB
FND_JDBC_BUFFER_MAX=5
APPS_JDBC_URL=jdbc\:oracle\:thin\:@(DESCRIPTION\=(ADDRESS\=(PROTOCOL\=tcp)(HOST\=dev)(PORT\=3621))(CONNECT_DATA\=(SID\=hrd1)))
FND_JDBC_STMT_CACHE_FREE_MEM=TRUE
FND_JDBC_STMT_CACHE_SIZE=200
TWO_TASK=hrd1
FND_MAX_JDBC_CONNECTIONS=500
FND_JDBC_USABLE_CHECK=false
FNDNAM=APPS
FND_JDBC_PLSQL_RESET=false
DB_PORT=3621
FND_JDBC_CONTEXT_CHECK=true
FND_JDBC_BUFFER_DECAY_SIZE=5
DB_HOST=dev.test.com
Thanks !!!
Maybe you are looking for
-
Buttons not working in CRM 2015 Outlook client
I have this strange problem where no user in an organisation (even administrators) can't click the new Account, Contact or Lead buttons in the CRM Outlook client. The button is visible and enabled but nothing happens when clicked. The CRM Activity bu
-
Hi, can anyone help me to know, is there any certification is available for 11g Oracle ADF developers like SCJP for java developers. If available pls guide me what is the procedure to write the exam, exam fees, syllabus, eligibility. Thanks, Sankari
-
How do I transfer my Adobe CC software to my new computer?
Hi there, I am switching from from my current MacBook to a new MacBook and I would like a step by step guide as to how to transfer my Adobe CC software to my new computer? Regards, Natalia
-
Forms Runtime crashes when installing on clients (W95)
I'm trying to test my application which has been created with Developer 2000. Forms only, no reports or anything else yet. It is my understanding that all I have to do is install the FORMS RUNTIME item from the developer CD. If this is wrong, please
-
Coumn values are overlapping...
Hi, We are populating report [group left] by fetching values from temporary table. Actually that temp table is based on the procedure. In proc, we insert the rows for the particular column using new line character.. for eg Platform is one column name