Help! exception in Evictor.java, db becomes unsable after that

Hi,
I am using BDBJE inside a project. The application runs normally at the beginning (BDB being used at all time). It seems when the heap max is hit (1G in my case) and garbage collection starts to run more often, then the following db error seems to surface , after which any db operation gives the same error.
I am running Sun jdk 1.5 and uses deferred write on the db. The application creates hundreds of dbs , then insert/delete entries from each db, and also delete a db entirely when that db becomes empty.
I can re-produce this fairly easily using the application.
Thanks for any help!
java.io.IOException: (JE 3.0.12) Database blogads.com id=404 IN type=BIN/2 id=3335404 not expected on INList
     at com.sleepycat.je.evictor.Evictor.selectIN(Evictor.java:469)
     at com.sleepycat.je.evictor.Evictor.evictBatch(Evictor.java:330)
     at com.sleepycat.je.evictor.Evictor.doEvict(Evictor.java:242)
     at com.sleepycat.je.evictor.Evictor.doCriticalEviction(Evictor.java:266)
     at com.sleepycat.je.dbi.CursorImpl.close(CursorImpl.java:666)
     at com.sleepycat.je.Cursor.close(Cursor.java:243)
     at com.sleepycat.je.Database.putInternal(Database.java:571)
     at com.sleepycat.je.Database.putNoOverwrite(Database.java:530)

Hello all,
I wanted to let everyone know about the resolution to this problem, in case you encounter it.
I'd like to thank the poster, user535685, for reporting this problem and working with us to test the fix.
The problem occurs under the following conditions:
+ A DeferredWrite Database is used (DatabaseConfig.setDeferredWrite(true) is called).
+ Some information is stored in the Database.
+ The Database is closed without ever calling Database.sync method.
After closing the Database, the exception reported in this thread may occur while performing other activities, causing the Environment to become unusable.
If you encounter this problem, or if you use DeferredWrite databases and you would like to avoid this problem, please send me email and I'll send you a fix. My email is mark.hayes at the obvious dot com.
I've also included a diff below that can be used to patch the 3.2 source code to apply the fix.
Index: src/com/sleepycat/je/dbi/DatabaseImpl.java
===================================================================
RCS file: /a/CVSROOT/je/src/com/sleepycat/je/dbi/DatabaseImpl.java,v
retrieving revision 1.157
diff -c -r1.157 DatabaseImpl.java
*** src/com/sleepycat/je/dbi/DatabaseImpl.java     13 Dec 2006 18:55:34 -0000     1.157
--- src/com/sleepycat/je/dbi/DatabaseImpl.java     12 Jan 2007 02:47:05 -0000
*** 543,604 ****
               * out the root.
              long rootLsn = tree.getRootLsn();
-             if (rootLsn == DbLsn.NULL_LSN) {
!                  * There's nothing in this database. (It might be the abort of
!                  * a truncation, where we are trying to clean up the new, blank
!                  * database. Do delete the MapLN.
!                 envImpl.getDbMapTree().deleteMapLN(id);
!             } else {
!                 UtilizationTracker snapshot = new UtilizationTracker(envImpl);
!                  * Start by recording the lsn of the root IN as obsolete.  A
!                  * zero size is passed for the last parameter because it is too
!                  * expensive to fetch the node.
                  snapshot.countObsoleteNodeInexact
                      (rootLsn, LogEntryType.LOG_IN, 0);
-                 /* Fetch LNs to count LN sizes only if so configured. */
-                 boolean fetchLNSize =
-                     envImpl.getCleaner().getFetchObsoleteSize();
-                 /* Use the tree walker to visit every child lsn in the tree. */
-                 ObsoleteProcessor obsoleteProcessor =
-                     new ObsoleteProcessor(snapshot);
-                 SortedLSNTreeWalker walker = new ObsoleteTreeWalker
-                     (this, rootLsn, fetchLNSize, obsoleteProcessor);
-                  * Delete MapLN before the walk. Note that the processing of
-                  * the naming tree means this MapLN is never actually
-                  * accessible from the current tree, but deleting the MapLN
-                  * will do two things:
-                  * (a) mark it properly obsolete
-                  * (b) null out the database tree, leaving the INList the only
-                  * reference to the INs.
-                 envImpl.getDbMapTree().deleteMapLN(id);
-                  * At this point, it's possible for the evictor to find an IN
-                  * for this database on the INList. It should be ignored.
-                 walker.walk();
-                  * Count obsolete nodes for a deleted database at transaction
-                  * end time.  Write out the modified file summaries for
-                  * recovery.
-                 envImpl.getUtilizationProfile().countAndLogSummaries
-                     (snapshot.getTrackedFiles());
          } finally {
              deleteState = DELETED;
--- 543,596 ----
               * out the root.
              long rootLsn = tree.getRootLsn();
!              * Use a snapshot tracker that is accumulated under the log write
!              * latch when we're doing counting.  Start by recording the LSN of
!              * the root IN as obsolete.  A zero size is passed for the last
!              * parameter because it is too expensive to fetch the node.
!             UtilizationTracker snapshot = new UtilizationTracker(envImpl);
!             if (rootLsn != DbLsn.NULL_LSN) {
                  snapshot.countObsoleteNodeInexact
                      (rootLsn, LogEntryType.LOG_IN, 0);
+
+             /* Fetch LNs to count LN sizes only if so configured. */
+             boolean fetchLNSize =
+                 envImpl.getCleaner().getFetchObsoleteSize();
+
+             /* Use the tree walker to visit every child lsn in the tree. */
+             ObsoleteProcessor obsoleteProcessor =
+                 new ObsoleteProcessor(snapshot);
+             SortedLSNTreeWalker walker = new ObsoleteTreeWalker
+                 (this, rootLsn, fetchLNSize, obsoleteProcessor);
+
+             /*
+              * Delete MapLN before the walk. Note that the processing of
+              * the naming tree means this MapLN is never actually
+              * accessible from the current tree, but deleting the MapLN
+              * will do two things:
+              * (a) mark it properly obsolete
+              * (b) null out the database tree, leaving the INList the only
+              * reference to the INs.
+              */
+             envImpl.getDbMapTree().deleteMapLN(id);
+
+             /*
+              * At this point, it's possible for the evictor to find an IN
+              * for this database on the INList. It should be ignored.
+              */
+             walker.walk();
+
+             /*
+              * Count obsolete nodes for a deleted database at transaction
+              * end time.  Write out the modified file summaries for
+              * recovery.
+              */
+             envImpl.getUtilizationProfile().countAndLogSummaries
+                 (snapshot.getTrackedFiles());
          } finally {
              deleteState = DELETED;
          }Mark

Similar Messages

  • Java Help Exception in Linux

    Hi all, I have a piece of code that initializes Java help on windows perfectly but the same code causes an exception in Linux. below is the exception I am getting in Linux. because of this, the applications help is not appearing in Linux. Does anybody know why this happens only in Linux / has come across this or a fix for this earlier?
    Also I am working on Linux for the first time and I noticed that when i gave a couple of System.outs in the code to find out what was happening, they appeared allright in windows, but did not appear in Linux !! (then even the exception below disappeared, and that did not load help either !!)
    java.lang.NullPointerException
    at javax.help.HelpSet.parseInto(HelpSet.java:567)
    at javax.help.HelpSet.<init>(HelpSet.java:129)
    at com.mysoftware.util.MyJavaHelp.<init>(MyJavaHelp.java:52)
    at com.mysoftware.util.MyJavaHelp.getInstance(MyJavaHelp.java:64)
    Parsing failed for null
    Got an IOException (null)
    An answer to this will be highly appreciated...

    At present I am not sure if I can post code. I am trying to find that out. However, can u tell me what u mean by a Windows - window? I will try to figure that out...
    Thanks a lot..

  • Help with reflection in java

    hi
    i am new to java .I write my program in myeclipse4.0 while running the code it gives error dialogbox like javavirtualMachine says that fatal error came so program is exited.after that ArrayIndexOutOfBoundException is came. I am unable to understand this error.can any one help me.
    code is as follows
    import java.lang.reflect.*;
    public class RefTest1
         public static void Listsuperclass1(String name)
              try
              Class c = Class.forName(name);
              Class sc = c.getSuperclass();
              String cname = c.getName();
              String sname = sc.getName();
              System.out.println("\t\t"+cname+"extends"+sname);
              catch(ClassNotFoundException cnf)
                   cnf.printStackTrace();
              catch(Exception e)
                   e.printStackTrace();
         public static void main(String[] args)
              Listsuperclass1(args[0]);
    Thank you

    njb7ty wrote:
    I suggest dropping that example program and concentrating on reading a book on Java such as 'Head First in Java'. Otherwise, you will spend a lot of time trying to get something to work and gain little value from it.Likewise... Jumping into reflections before you can [read a stack-trace|http://www.0xcafefeed.com/2004/06/of-thread-dumps-and-stack-traces/] is like signing up a toddler for the New York Marathon... it's probably simply beyond your skill level... so step back... go read a book, do some tutorials, get your head around just the process of the designing, writing, compiling, running, and debugging java programs... and what the different diagnostics mean... Then, equipped with your nose-clip and your trusty stone ;-) you contemplate leaping into the deep end ;-)
    Cheers. Keith.

  • Data Quality vendor-specific error: An error occurred when calling function 'sdq_init_connector ()' in connector ": "(-8) Exception!." Detailed error message: Exception thrown by Java: java.lang.UnsatisfiedLinkError: nio (Not found in com.ibm.oti.vm.boots

    When attempting to create a new Account in siebel integrated with OEDQ the following error occurs.
    ERROR
    Data Quality vendor-specific error: An error occurred when calling function 'sdq_init_connector ()' in connector ": "(-8) Exception!." Detailed error message: Exception thrown by Java: java.lang.UnsatisfiedLinkError: nio (Not found in com.ibm.oti.vm.bootstrap.library.path)(SBL-APS-00118)
    STEPS
    The issue can be reproduced at will with the following steps:
    1) from EDQ director we have imported the EDQ_CDS,EDQ-REFERENCE DATA & EDQ_HISTORICAl DATA packages sucessfully.
    2) Created dnd.param file in SIebel server SDQCOnnector folder.
    3) Copied the libdnd.so file to siebsrvr lib directory(32 bit)
    3) In dnd.param file we have mentioned the javalib file and instllation directory path(<Siebsrvr roo>/dnd/install)
    4) Unzipped the EDQ-Siebel Connector files in dnd/install folder
    5) Copied the dnd.properties file in dnd/install directory and modified it accordingly to point to installed EDQ instance.
    6) Configured the Siebel components for EDQ integration.
    7) Realtime EDQ jobs are running.
    8) Create a new Account
    Env details are
    On : 8.2.2.14 [IP2014] version, Client Functionality
    EDQ 11.1.1.7.4
    IBM JDK 1.7 32 bit
    Using Open UI
    Any Champ have faced this issue and overcame it please let me know the resolution steps. your help is
    Regards
    Monoj Dey
    9007554589

    Hi Monoj,
    A few questions:
    - What OS is Siebel running on?
    - What version of the Siebel connector are you using?
    - Which libdnd.so file are you using?
    - What's the contents of your dnd.parms file?
    thanks,
    Nick

  • Exceptions thrown when Java Class is imported.

    hi
    This problem comes when I imported a java class in forms 6i. To dig out problem, I made a simple "Hello World" class, import it to forms, use it. It works fine in client/server and on web as well. BUT when i close the form on web (only)by exiting from browser, it throws as exception. message appeared on screen is as
    "ifweb60.ese -- Application error
    "The exception unknown software exception occurred in the application at location ..."
    I m using forms 6i with patch 4a, this problem is occurring with every java class. I even used ORA_JAVA.delete_global_ref( object), after using java class. but i doubt that object could n't deleted with it. cuz after using delete method, i checked the object with ORA_JAVA.IS_NULL and it is not found null :)
    Any one, who has come across this problem and got soln, please help me
    Thanks
    Asif
    null

    Bola,
    This is a benign warning message, but indeed a bug. It is currently being tracked
    as CR059395 internally. It did not make it into the upcoming 3.5 sp2. If this
    problem is causing you trouble, you may wish to request a patch through your Support
    channel.
    Cheers,
    PJL
    "Bola Taylor" <[email protected]> wrote:
    >
    >
    >
    Hi all
    I am currently getting some exceptins thrown each time I view any news
    items without
    logging into personalisation server.
    It is a warning but exceptions are being thrown
    Here are the errors in the attached file
    Any help would be appreciated
    Bola

  • Study security related exception handling in Java

    Hi all,
    I am required to do an indepth study on security-related exception handling in Java, their Pluses and minuses... Can ppl suggest me places where I can get a kick start? Any resource that u know can help me out?
    I appreciate ur help in this regard...FYI, I am a grad student and I am doing this as a part of my course-work...I am writing up a report on this...
    Thanx a bunch, in advance for ur help ppl..

    Take a look at the JAAS API and docs.
    - Saish

  • Please help: Exception when deploying ADF Web app to AS 10.1.3

    Hi everyone, I hope someone could help me with this.
    I'm using JDeveloper 10.3.2.0.4066. Oracle AS is 10.1.3.
    The application works fine on the embedded OC4J, but when deployed to Oracle AS I get the following 500 Internal server error:
    oracle.jbo.JboException: JBO-25222: Unable to create application module.     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:155)     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2431)     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2047)     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1913)     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2756)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)     at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:258)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:397)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:392)     at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1550)     at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1408)     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)     at oracle.adf.model.BindingContext.get(BindingContext.java:465)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)     at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)     at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)     at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)     at oracle.adf.model.BindingContext.get(BindingContext.java:491)     at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:327)     at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:641)     at oracle.adf.model.servlet.ADFBindingFilter.isPageViewable(ADFBindingFilter.java:532)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:301)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##javax.naming.NamingException [Root exception is java.lang.ClassCastException: com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication]     at oracle.jbo.server.InitialContextImpl.createJboHome(InitialContextImpl.java:59)     at oracle.jbo.common.JboInitialContext.lookup(JboInitialContext.java:77)     at javax.naming.InitialContext.lookup(InitialContext.java:351)     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:136)     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2431)     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2047)     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1913)     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2756)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)     at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:258)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:397)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:392)     at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1550)     at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1408)     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)     at oracle.adf.model.BindingContext.get(BindingContext.java:465)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)     at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)     at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)     at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)     at oracle.adf.model.BindingContext.get(BindingContext.java:491)     at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:327)     at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:641)     at oracle.adf.model.servlet.ADFBindingFilter.isPageViewable(ADFBindingFilter.java:532)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:301)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)Caused by: java.lang.ClassCastException: com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication     at oracle.jbo.common.PropertyManager.loadStaticEnvironmentFromProperties(PropertyManager.java:392)     at oracle.jbo.common.PropertyManager.loadProperties(PropertyManager.java:223)     at oracle.jbo.server.SessionImpl.init(SessionImpl.java:136)     at oracle.jbo.server.ApplicationModuleHomeImpl.createSession(ApplicationModuleHomeImpl.java:110)     at oracle.jbo.server.ApplicationModuleHomeImpl.<init>(ApplicationModuleHomeImpl.java:47)     at oracle.jbo.server.InitialContextImpl.createJboHome(InitialContextImpl.java:51)     ... 43 more
    I see that I have a ClassCastException but I don't know anything about this class.
    I did not find any other thread related to this.
    Could someone please help me?
    Thank you.

    Hi I am afraid I do have similar problem in production now. We just upgrade app server from 10.1.3.0 to 10.1.3.1 plus ADF Runtime libraries 10.1.3.2 plus one-off patch (bug 4398431) for JDBC Driver (fixing deadlock in java threads related to JDBC pooling)
    Any hint what might be a issue. I suspect it might be related to jbo.timetolive because first occurence of this message is about 1 hour after restart of application server and we are using default BC configuration jbo.timetolive= 1hour
    After that we see folowing error messga in application.log
    JBO-30003: The application pool (aacp.wpailin.bc.PailinAppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-25222: Unable to create application module.
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
    at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
    at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536)
    at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396)
    at oracle.adf.model.BindingContext.beginRequest(BindingContext.java:683)
    at oracle.adf.model.BindingRequestHandler.invokeBeginRequest(BindingRequestHandler.java:346)
    at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:166)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-25222: Unable to create application module.
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
    at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
    at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536)
    at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396)
    at oracle.adf.model.BindingContext.beginRequest(BindingContext.java:683)
    at oracle.adf.model.BindingRequestHandler.invokeBeginRequest(BindingRequestHandler.java:346)
    at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:166)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)

  • PMCLI exception at ESSO java client

    Hello experts,
    I made an ESSO client with java.But the problem is that at the line String s = ProvisioningConnection.sendInstructions(Operation object); i get the following exception:
    com.passlogix.vgo.pm.exceptions.PMCLIException: None of known servers is up. Failed to send an operation!
         at com.passlogix.vgo.pm.cli.ProvisioningConnection.sendInstruction(ProvisioningConnection.java:351)
         at com.test.essoconnector.CustomConnector.callRemoteWebService(CustomConnector.java:87)
         at com.test.essoconnector.CustomConnector.main(CustomConnector.java:28)
    Any help would be greatly appreciated because i searched a little bit on the internet and found nothing that is relevant or related to this exception.
    I checked if the server is up and running and it is, so i can't be due to the fact the server is down.
    Could it be a networking problem in the way that the server is not accesible from the network i'm in?
    Thanks in advance and best regards!
    Carol

    Sending command Instruction to Web Service.(current retrycount==0) From maximum set as Retry=0
    com.passlogix.vgo.pm.exceptions.PMCLIException: None of known servers is up. Failed to send an operation!
         at com.passlogix.vgo.pm.cli.ProvisioningConnection.sendInstruction(ProvisioningConnection.java:351)
         at com.passlogix.integration.provision.client.apicommand.APICommand.invoke(APICommand.java:187)
         at com.passlogix.integration.provision.client.apicommand.APICommandInvoker.invoke(APICommandInvoker.java:113)
         at com.passlogix.integration.provision.client.ProvisionManagerClientImpl.executeRequest(ProvisionManagerClientImpl.java:323)
         at com.passlogix.integration.provision.client.ProvisionManagerClientImpl.request_credential_addition(ProvisionManagerClientImpl.java:279)
         at com.passlogix.integration.provision.wrapper.PasslogixWrapper.addPasslogixCredential(PasslogixWrapper.java:83)
         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 com.passlogix.integration.provision.OIM.OIMInterface.addPasslogixCredential(OIMInterface.java:121)
         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 com.thortech.xl.adapterGlue.ScheduleItemEvents.adpPASSLOGIXROOTRESOURCEADDCREDENTIAL.ADDCREDENTIALSONE(adpPASSLOGIXROOTRESOURCEADDCREDENTIAL.java:413)
         at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpPASSLOGIXROOTRESOURCEADDCREDENTIAL.implementation(adpPASSLOGIXROOTRESOURCEADDCREDENTIAL.java:89)
         at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
         at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
         at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:3150)
         at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:717)
         at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
         at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
         at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(tcProvisioningOperationsBean.java:4134)
         at Thor.API.Operations.tcProvisioningOperationsIntfEJB.retryTasksx(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 com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy880.retryTasksx(Unknown Source)
         at Thor.API.Operations.tcProvisioningOperationsIntfEJB_4xftoh_tcProvisioningOperationsIntfRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at Thor.API.Operations.tcProvisioningOperationsIntfEJB_4xftoh_tcProvisioningOperationsIntfRemoteImpl.retryTasksx(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 weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
         at $Proxy189.retryTasksx(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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
         at $Proxy878.retryTasksx(Unknown Source)
         at Thor.API.Operations.tcProvisioningOperationsIntfDelegate.retryTasks(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 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy879.retryTasks(Unknown Source)
         at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.retryTasks(ResourceProfileProvisioningTasksAction.java:715)
         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 org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269)
         at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(tcLookupDispatchAction.java:133)
         at com.thortech.xl.webclient.actions.tcActionBase.execute(tcActionBase.java:894)
         at com.thortech.xl.webclient.actions.tcAction.execute(tcAction.java:213)
         at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
         at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
         at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
         at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
         at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1914)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:463)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at com.thortech.xl.webclient.security.CSRFFilter.doFilter(CSRFFilter.java:78)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthContextFilter.java:108)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    The add_credential execution failed. Error: Error in Sending instruction from the provisioning manager in API Command None of known servers is up. Failed to send an operation!.
    com.passlogix.integration.provision.client.CommandInvocationException: Error in Sending instruction from the provisioning manager in API Command None of known servers is up. Failed to send an operation!

  • How doest jdk docs help as in writing java code?

    hi i wonder how does jdk docs help as in writing java code because if i google a java code the jdk docs always becomes the result of my search but in my experience jdk docs never helps me.
    is there any one know how to use jdk docs? and how to get the code from there.
    im telling about jdk docs from here http://download.oracle.com/javase/1.4.2/docs/api/
    cross posted from http://www.thenewboston.com/forum/viewtopic.php?f=119&t=13778
    Edited by: 871484 on Jul 18, 2011 4:18 PM

    871484 wrote:
    ok can any one give me example how to use jdk docs? for example this code
    Your question still does not make any sense, and you still haven't clarified what you're not understanding.
    However, if you think that just by reading the API docs, with no other training or study, that you will be able to write that code, then you are seriously misunderstanding the purpose of the docs.
    Obviously English is not your native language. You grew up speaking some other language at home and with your friends, and at some point in school or as private study, you started to learn English. You learned about the grammar and the alphabet and pronunciation, sentence structure, word order, etc. Now you have the basics of how the language works, and you know some words. When you want to learn new words to fit into the structure you have learned, you use a dictionary.
    If you didn't study the grammar, sentence structure, etc., and just said, "I want to learn English. I will look at a dicationary," clearly that would not work.
    Right?
    So, since you now understand and agree with the English example, let me state something that I hope is obvious to you by now: The API docs are your dictionary. They are not a substitute for learning the language basics.
    Furthermore, once you know the language basics in English and have your dictionary, you still won't know how to write a resume (which you may know as a CV). You will look at examples and perhaps take a course on resume (CV) writing. Just reading a dictionary won't help you write a resume(CV). Similarly, if you know some Java basics, you can't learn how to write a Swing app just by reading the Javadocs. You'll look at tutorials and examples. Then, once you know the basic structure of a Swing app, you'll look to the javadocs for more details about more kinds of GUI classes--different buttons and windows and panes and panels and layout managers, etc.

  • Unexpected exception with file: java.lang.NullPointerException

    Hi :)
    Still a Newbee
    Geting the message Unexpected exception with file: java.lang.NullPointerException
    Have traced the error down with the use of System.out.println(a sequential number); but having got it down to bReader.close();, I think, I'm not understanding why. I think it has something to do with the line while (text != null){
    Don't fully understand yet as a newbee, but one can only learn. Like my other error (I once spent six hours on a pair of {}!!!! we all learn) I've spent two evenings now resarching and trying to solve this, so a bit of help would be very much appreciated.
    Error occurs after System.out.println(7);
    Code
    private void initialiseData()
    String text;
    int size;
    try
    File file = new File("needleData.txt");
    FileReader fReader = new FileReader(file);
    BufferedReader bReader = new BufferedReader(fReader);
    text = bReader.readLine(); // Read the first line to get the number of needles stored
    size = Integer.parseInt(text);
    while (text != null){
    String type;
    double length;
    double thickestDiameter;
    int donationYear;
    String construction;
    boolean isStraight;
    boolean hasEye;
    boolean wasMachineMade;
    boolean isExhibited;
    text = bReader.readLine();
    type = text;
    //System.out.println("type " + type);
    text = bReader.readLine();
    length = Double.parseDouble(text);
    //System.out.println("length " + length);
    text = bReader.readLine();
    thickestDiameter = Double.parseDouble(text);
    //System.out.println("thickestDiameter " + thickestDiameter);
    text = bReader.readLine();
    donationYear = Integer.parseInt(text);
    //System.out.println("donationYear " + donationYear);
    text = bReader.readLine();
    construction = text;
    //System.out.println("construction " + construction);
    text = bReader.readLine();
    isStraight = text.equalsIgnoreCase("true")? true: false;
    //System.out.println("isStraight " + isStraight);
    text = bReader.readLine();
    hasEye = text.equalsIgnoreCase("true")? true: false;
    //System.out.println("hasEye " + hasEye);
    text = bReader.readLine();
    wasMachineMade = text.equalsIgnoreCase("true")? true: false;
    //System.out.println("wasMachineMade " + wasMachineMade);
    text = bReader.readLine();
    isExhibited = text.equalsIgnoreCase("true")? true: false;
    //System.out.println("isExhibited " + isExhibited);
    int i=0;
    needles = new Needle [9];
    needles[i] = new Needle("type", length, thickestDiameter, donationYear, "construction",isStraight, hasEye, wasMachineMade, isExhibited);
    size ++;
    i ++;
    System.out.println(7);
    bReader.close();
    System.out.println(8);
    fReader.close();
    System.out.println(9);
    } catch(FileNotFoundException e){
    System.out.println("File not found : " + e);
    } catch(IOException e){
    System.out.println("I/O exception reading file: "+ e);
    } catch(Exception e){
    System.out.println("Unexpected exception with file: " + e);
    Thanks :(

    Re-post (Formated) if i understand the formating correctly.
    private void initialiseData()
    String text;
    int size;
    try
    File file = new File("needleData.txt");
    FileReader fReader = new FileReader(file);
    BufferedReader bReader = new BufferedReader(fReader);
    text = bReader.readLine(); // Read the first line to get the number of needles stored
    size = Integer.parseInt(text);
    [while (text != null){
    String type;
    double length;
    double thickestDiameter;
    int donationYear;
    String construction;
    boolean isStraight;
    boolean hasEye;
    boolean wasMachineMade;
    boolean isExhibited;
    text = bReader.readLine();
    type = text;
    //System.out.println("type " + type);
    text = bReader.readLine();
    length = Double.parseDouble(text);
    //System.out.println("length " + length);
    text = bReader.readLine();
    thickestDiameter = Double.parseDouble(text);
    //System.out.println("thickestDiameter " + thickestDiameter);
    text = bReader.readLine();
    donationYear = Integer.parseInt(text);
    //System.out.println("donationYear " + donationYear);
    text = bReader.readLine();
    construction = text;
    //System.out.println("construction " + construction);
    text = bReader.readLine();
    isStraight = text.equalsIgnoreCase("true")? true: false;
    //System.out.println("isStraight " + isStraight);
    text = bReader.readLine();
    hasEye = text.equalsIgnoreCase("true")? true: false;
    //System.out.println("hasEye " + hasEye);
    text = bReader.readLine();
    wasMachineMade = text.equalsIgnoreCase("true")? true: false;
    //System.out.println("wasMachineMade " + wasMachineMade);
    text = bReader.readLine();
    isExhibited = text.equalsIgnoreCase("true")? true: false;
    //System.out.println("isExhibited " + isExhibited);
    int i=0;
    needles = new Needle [9];
    needles = new Needle("type", length, thickestDiameter, donationYear, "construction",isStraight, hasEye, wasMachineMade, isExhibited);
    size ++;
    i ++;
    System.out.println(7);
    bReader.close();
    System.out.println(8);
    fReader.close();
    System.out.println(9);
    } catch(FileNotFoundException e){
    System.out.println("File not found : " + e);
    } catch(IOException e){
    System.out.println("I/O exception reading file: "+ e);
    } catch(Exception e){
    System.out.println("Unexpected exception with file: " + e);

  • Exception of type java.lang.UnsatisfiedLinkError was thrown Anyone ?

    We are getting this exception when trying to run a very basic aspx. This project works across several other servers, after bringing a new server online, we are finding we get this exception. Below is the complete response from tcptrace.
    HTTP/1.1 500 Internal Server ErrorServer: Microsoft-IIS/5.0Date: Tue, 24 Feb 2004 16:28:31 GMTX-Powered-By: ASP.NETX-AspNet-Version: 1.1.4322Cache-Control: privateContent-Type: text/html; charset=utf-8Content-Length: 5522
    <html> <head> <title>Exception of type java.lang.UnsatisfiedLinkError was thrown.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head>
    <body bgcolor="white">
    <span><H1>Server Error in '/PPAApps' Application.<hr width=100% size=1 color=silver></H1>
    <h2> <i>Exception of type java.lang.UnsatisfiedLinkError was thrown.</i> </h2></span>
    <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
    <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    <br><br>
    <b> Exception Details: </b>java.lang.UnsatisfiedLinkError: Exception of type java.lang.UnsatisfiedLinkError was thrown.<br><br>
    <b>Source Error:</b> <br><br>
    <table width=100% bgcolor="#ffffcc"> <tr> <td> <code>
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>
    </td> </tr> </table>
    <br>
    <b>Stack Trace:</b> <br><br>
    <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre>
    [UnsatisfiedLinkError: Exception of type java.lang.UnsatisfiedLinkError was thrown.] java.lang.ExceptionInInitializerError.checkAndThrowException(Throwable thrown) +59 java.util.Locale..cctor() +1678
    [TypeInitializationException: The type initializer for "java.util.Locale" threw an exception.] java.lang.Float..ctor(String s) +214 com.plumtree.remote.portlet.xp.XPSettingsManager.IsCSPVersionAtLeast(Double version) com.plumtree.remote.portlet.xp.XPSettingsManager..ctor(IXPRequest request, IXPResponse response) com.plumtree.remote.portlet.xp.XPSettingsFactory.getXPSettingsManager(IXPRequest request, IXPResponse response) com.plumtree.remote.portlet.xp.XPPortletContext..ctor(IXPRequest request, IXPResponse response) com.plumtree.remote.portlet.xp.XPPortletContextFactory.createPortletContext(IXPRequest req, IXPResponse resp) Plumtree.Remote.Portlet.PortletContextFactory.CreatePortletContext(HttpRequest req, HttpResponse resp) Com.Plumtree.Remote.Transformer.Condition.GatewayedStandardCondition.UseFilter(HttpContext ctx) Com.Plumtree.Remote.Transformer.FilterManager.UpdateFilter(HttpContext ctx) Com.Plumtree.Remote.Transformer.PTTransformer.BeginRequestHandler(Object sender, EventArgs e) System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87</pre></code>
    </td> </tr> </table>
    <br>
    <hr width=100% size=1 color=silver>
    <b>Version Information:</b> Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
    </font>
    </body></html><!-- [UnsatisfiedLinkError]: Exception of type java.lang.UnsatisfiedLinkError was thrown. at java.lang.ExceptionInInitializerError.checkAndThrowException(Throwable thrown) at java.util.Locale..cctor()[TypeInitializationException]: The type initializer for "java.util.Locale" threw an exception. at java.lang.Float..ctor(String s) at com.plumtree.remote.portlet.xp.XPSettingsManager.IsCSPVersionAtLeast(Double version) at com.plumtree.remote.portlet.xp.XPSettingsManager..ctor(IXPRequest request, IXPResponse response) at com.plumtree.remote.portlet.xp.XPSettingsFactory.getXPSettingsManager(IXPRequest request, IXPResponse response) at com.plumtree.remote.portlet.xp.XPPortletContext..ctor(IXPRequest request, IXPResponse response) at com.plumtree.remote.portlet.xp.XPPortletContextFactory.createPortletContext(IXPRequest req, IXPResponse resp) at Plumtree.Remote.Portlet.PortletContextFactory.CreatePortletContext(HttpRequest req, HttpResponse resp) at Com.Plumtree.Remote.Transformer.Condition.GatewayedStandardCondition.UseFilter(HttpContext ctx) at Com.Plumtree.Remote.Transformer.FilterManager.UpdateFilter(HttpContext ctx) at Com.Plumtree.Remote.Transformer.PTTransformer.BeginRequestHandler(Object sender, EventArgs e) at System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)-->HTTP/1.1 500 Internal Server ErrorServer: Microsoft-IIS/5.0Date: Tue, 24 Feb 2004 16:29:06 GMTX-Powered-By: ASP.NETX-AspNet-Version: 1.1.4322Cache-Control: privateContent-Type: text/html; charset=utf-8Content-Length: 5522
    <html> <head> <title>Exception of type java.lang.UnsatisfiedLinkError was thrown.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head>
    <body bgcolor="white">
    <span><H1>Server Error in '/PPAApps' Application.<hr width=100% size=1 color=silver></H1>
    <h2> <i>Exception of type java.lang.UnsatisfiedLinkError was thrown.</i> </h2></span>
    <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
    <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    <br><br>
    <b> Exception Details: </b>java.lang.UnsatisfiedLinkError: Exception of type java.lang.UnsatisfiedLinkError was thrown.<br><br>
    <b>Source Error:</b> <br><br>
    <table width=100% bgcolor="#ffffcc"> <tr> <td> <code>

    This is the response I got from support:
    This is bug 22205 and will be fixed in the release of the Exchange Groupware Portlet Suite 3.0.4 at the end of April. The workaround in the interim is to copy the D:\Program Files\plumtree\jre folder from the installation CD (or another working portal server) onto the problem server. Please let me know if this resolves the issue for you. Neal Rapoporthttp://www.portalconsultant.com

  • Handling exceptions in EBS Java concurrent program

    Hi,
    I want to do exception handling in Java concurrent program, is there any standard set of exceptions already provided by EBS for concurrent programs or should I create my own Exception class for exception handling.
    Thanks!

    Hi Kashif, Thanks for replying.
    I am creating a Java concurrent program in EBS by implementing the interface - oracle.apps.fnd.cp.request.JavaConcurrentProgram
    EBS Version - 12.1.3
    DB - Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit
    OS - Oracle Linux Server release 6.2
    Also can I create a properties file to store messages and access the file from my concurrent program.
    Thanks!

  • Help Needed in Creating Java Class and Java Stored Procedures

    Hi,
    Can anyone tell how can i create Java Class, Java Source and Java Resource in Oracle Database.
    I have seen the Documents. But i couldn't able to understand it correctly.
    I will be helpful when i get some Examples for creating a Java Class, Java Source and Stored Procedures with Java with details.
    Is that possible to Create a Java class in the oracle Database itself ?.
    Where are the files located for the existing Java Class ?..
    Help Needed Please.
    Thanks,
    Murali.v

    Hi Murali,
    Heres a thread which discussed uploading java source file instead of runnable code on to the database, which might be helpful :
    Configure deployment to a database to upload the java file instead of class
    The files for the java class you created in JDev project is located in the myworks folder in jdev, eg, <jdev_home>\jdev\mywork\Application1\Project1\src\project1
    Hope this helps,
    Sunil..

  • UCM: File is missing. Exception type is 'java.lang.Throwable'.

    We have been having an intermittent issue with SES crawling UCM's data. There is a loose correlation between the issue occurring and the following exception appearing in UCM's Content Server Log:
    File is missing. Exception type is 'java.lang.Throwable'. [ Details ]
    An error has occurred. The stack trace below shows more information.
    !syFileMissing,42000034474,1,61242!syExceptionType,java.lang.Throwable
    java.lang.Throwable
         at intradoc.common.IdcLogWriter.doMessageAppend(IdcLogWriter.java:81)
         at intradoc.common.Log.addMessage(Log.java:268)
         at intradoc.common.Log.errorEx2(Log.java:216)
         at intradoc.common.LoggingUtils.logMessage(LoggingUtils.java:97)
         at intradoc.common.SystemUtils.reportErrorEx(SystemUtils.java:462)
         at intradoc.common.SystemUtils.errEx(SystemUtils.java:547)
         at intradoc.common.SystemUtils.err(SystemUtils.java:538)
         at intradoc.indexer.CommonIndexerBulkLoader.handleLoadError(CommonIndexerBulkLoader.java:544)
         at intradoc.indexer.CommonIndexerBulkLoader.loadRecordWebChange(CommonIndexerBulkLoader.java:205)
         at intradoc.indexer.IndexerBulkLoader.createBulkLoad(IndexerBulkLoader.java:309)
         at intradoc.indexer.IndexerBulkLoader.doWork(IndexerBulkLoader.java:164)
         at intradoc.indexer.Indexer.doIndexing(Indexer.java:431)
         at intradoc.indexer.Indexer.buildIndex(Indexer.java:340)
         at intradoc.server.IndexerMonitor.doIndexing(IndexerMonitor.java:1012)
         at intradoc.server.IndexerMonitor$4.run(IndexerMonitor.java:832)
    Can anybody tell me what conditions would cause this error?

    well yes:
    panel.addGLEventListener(new GLR());
    "GLR" implements "GLEventListener" and defines the required methods
    I installed the Netbeans OpenGL Pack on NetBeans 6.5 and there is a problem with that...mh :(
    Ok I also tried to create a GLPanel-Sample-Project and modify it but netbeans don't know "javax.swing.GroupLayout;" I installed the JDK as well.
    mh what can i do: try to fix my actual error or try to get GroupLayout in java.swing^^

  • An unhandled win32 exception occured in java.exe , While running JNI

    I'm trying to use JNI to call 3rd party VB DLL , like this
    JNI <> VC++ DLL <> VB DLL
    In VC++DLL ,I have function(named Open) that call 3 function in VBDLL
    I have tested c++ code this function (by copy it and paste in normal vc++ project) ,and It works !
    But when I call this function(Open) via JNI , I've got "An unhandled win32 exception occured in java.exe" by Visual Studio Just-in-Time Debugger !!
    I think the problem is in the 3rd function that I call in Open, because when I remove the 3rd function It doesn't raise any exception.
    Before I do this, I alrealdy test every function in VBDLL in VB Project , and they work fine (Include the 3rd function that I think It cause exception).
    Can anybody tell me what's going on here ?
    or anything that I can do to fine What cause this problem ?
    Thanks in advance ^^
    Edited by: voteforpedro on Sep 2, 2008 4:18 AM

    You either have a pointer problem or you are calling the 3rd party library in an unexpected fashion.
    In terms of testing the most likely reason is that it wasn't tested enough. Moving/changing code modifies the layout in memory which can expose previously hidden pointer problems.

Maybe you are looking for

  • How does CLOSED_CODE updated in PO_LINES_ARCHIVE_ALL table

    Hi,   How does CLOSED_CODE column will be updated in PO_LINES_ARCHIVE_ALL table. We have setup "Archive On Approve" for archiving.   Does below is a valid check to verify the line count between lines table and archive table?   We are comparing the li

  • Final Cut X Crashes every time I try to import imovie event library.  Help?

    Like it says in the title. I try to import my event library.  I begins to import, freezes and then crashes.

  • Asset sold and purchased back

    Hi Gurus, I wanted to find out how other companies handle this situation. We have an asset that was sold last year and it was purchased back this year. From what I understand from the user, is they wanted to see the history and total accumulated depr

  • Sending Multiple Fax/E-mail Recipients at once

    I'm a RightFax integrator and am trying to assist a customer that would like to integrate RightFax with Oracle Purchasing. What we would like to do is provide the user with the ability to transmit one purchase order to multiple fax recipients and/or

  • Transporting from DEV server to Production Server

    Dear Experts, Like in ABAP and other SAP modules we are having Transport Requests to transport from Dev server to Production server In XI how can we transport all the configuration done by me from Dev server to Production server.