IBM JRE 1.5: Uncaught exception in compiler

I installed trial version of Flex Builder 2 Eclipse plug-in.
If I run eclipse with the shortcut created by Flex Builder
installation, everything works fine (it uses the Sun JRE 1.4.2
included with the installation). If I modify the shortcut to run
eclipse with the IBM JRE 1.5 (according to Flex 2.0.1 system
requirements, such configuration is supported) and create new Flex
project, the following error appears during the first build:
Error
Mon May 28 13:53:00 IDT 2007
Uncaught exception in compiler
java.lang.IllegalAccessError:
org.apache.xerces.util.XMLAttributesImpl$Attribute
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:222)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.j ava:160)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:49 8)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java: 468)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager. java:427)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :410)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:188)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:33 9)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:391)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:561)
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerMMImpl.<init>(XMLDocumentFragmentScanner MMImpl.java:105)
at
org.apache.xerces.impl.XMLDocumentScannerMMImpl.<init>(XMLDocumentScannerMMImpl.java:258)
at
org.apache.xerces.impl.XMLNSDocumentScannerMMImpl.<init>(XMLNSDocumentScannerMMImpl.java: 120)
at
org.apache.xerces.parsers.IntegratedParserConfigurationMMImpl.createDocumentScanner(Integ ratedParserConfigurationMMImpl.java:282)
at
org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown
Source)
at
org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown
Source)
at
org.apache.xerces.parsers.IntegratedParserConfigurationMMImpl.<init>(IntegratedParserConf igurationMMImpl.java:193)
at
org.apache.xerces.parsers.XML11ConfigurationMMImpl.<init>(XML11ConfigurationMMImpl.java:1 82)
at
org.apache.xerces.parsers.XML11ConfigurationMMImpl.<init>(XML11ConfigurationMMImpl.java:1 39)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1263)
at org.apache.xerces.util.ObjectFactory.newInstance(Unknown
Source)
at
org.apache.xerces.util.ObjectFactory.findJarServiceProvider(Unknown
Source)
at org.apache.xerces.util.ObjectFactory.createObject(Unknown
Source)
at org.apache.xerces.util.ObjectFactory.createObject(Unknown
Source)
at
org.apache.xerces.parsers.SAXParserMMImpl.<init>(SAXParserMMImpl.java:155)
at
org.apache.xerces.parsers.SAXParserMMImpl.<init>(SAXParserMMImpl.java:138)
at
org.apache.xerces.jaxp.SAXParserMMImpl.<init>(SAXParserMMImpl.java:109)
at
org.apache.xerces.jaxp.SAXParserFactoryMMImpl.newSAXParser(SAXParserFactoryMMImpl.java:10 2)
at
flex2.compiler.config.FileConfigurator.load(FileConfigurator.java:60)
at
flex2.tools.Compiler.processConfiguration(Compiler.java:465)
at
flex2.tools.oem.internal.OEMUtil.getApplicationConfiguration(OEMUtil.java:208)
at
flex2.tools.oem.internal.OEMUtil.getApplicationConfiguration(OEMUtil.java:180)
at
flex2.tools.oem.Application.recompile(Application.java:662)
at flex2.tools.oem.Application.compile(Application.java:530)
at
flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:224)
at
com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(Un known
Source)
at
com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder.build(Unknown
Source)
at
com.adobe.flexbuilder.project.compiler.internal.ASBuilder.build(Unknown
Source)
at
com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.buildApplication(U nknown
Source)
at
com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(Unknown
Source)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:603)
at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:230)
at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:145)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

I found the problem! Seems to be due to the fact that I'm using a package called "data", which caused a conflict while trying to access "this.data" in an item renderer.
Explicitely casting "this.data" solved the problem!
If someone would like to try to reproduce this error, old code:
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackground="false" xmlns:components="visual.components.*">
<components:ContactElement ContactID="{this.data.ContactID}"
Sender="{this.data.Sender}"
Target="{this.data.Target}"
Accepted="{this.data.Accepted}"
Player="{this.data.Player}"/>
</s:ItemRenderer>
New code:
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackground="false" xmlns:components="visual.components.*">
<fx:Script>
<![CDATA[
import data.ContactItem;
]]>
</fx:Script>
<components:ContactElement ContactID="{ContactItem(this.data).ContactID}"
Sender="{ContactItem(this.data).Sender}"
Target="{ContactItem(this.data).Target}"
Accepted="{ContactItem(this.data).Accepted}"
Player="{ContactItem(this.data).Player}"/>
</s:ItemRenderer>
Thanks again for the help. I panicked quite a lot when I discovered that ugly error!

Similar Messages

  • Uncaught exceptions in compiler

    I'm using Flash Builder plug-in deployed in Eclipse Galileo. The life was good with sdk 4.0.0 however to use new classes such as TextFlowUtil, I switched to nightly build 4.0.0.10802. Now I'm getting dozens of exceptions. Error logs attached.
    Any idea as to what's going on and what I can do to get over this hurdle?

    ok, it's fixed now!
    Here are my observations:
    1. If you are using nightly builds, you need to upgrade to Flash Builder (plug-in) Beta 2. I was still on original beta from the 2009 Flash Camp time!
    2. Make sure that your nightly build sdk is installed inside the Beta 2 deployment. Due to the sequence of deployment, mine was in the original Flash Builder Plug-in and Flash Builder didn't like it and comlained - "Unable to locate specified base class 'spark.components.Application' for component class 'VideoThumbnails'."
    3. Change your project's property to point default sdk to the nightly build sdk. If your's is pointing to 4.0.0, it may give some circular dependancy exceptions and not let you switch to the nightly build sdk. To circumvent, I started a new project and used its interface to switch my default sdk to the nightly build sdk

  • Oracle 11.2.0.2g driver with IBM JRE(J2RE 1.5.0 IBM J9 2.3 Linux x86-32)

    Hi All,
    I am trying to use oracle 11.2 jdbc thin driver with IBM JRE and getting following exception messages.
    Details from Ojdbc5.jar
    Implementation-Version: 11.2.0.2.0
    Repository-Id: JAVAVM_11.2.0.2.0_LINUX_100812.1
    And Details from Java System Properties
    java.vm.info: J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20060504 (JIT enabled)
    J9VM - 20060501_06428_lHdSMR
    JIT - 20060428_1800_r8
    GC - 20060501_AA
    java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
    at javax.crypto.Cipher.getInstance(Unknown Source)
    at oracle.security.o5logon.O5LoginClientHelper.decryptAES(Unknown Source)
    at oracle.security.o5logon.O5LoginClientHelper.generateOAuthResponse(Unknown Source)
    at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:655)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:366)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
    at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
    at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
    at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
    at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
    at com.tes.archival.extractor.DataExtractorWithJdbcImpl.extractArchivalRecords(DataExtractorWithJdbcImpl.java:61)
    at com.tes.archival.executor.ExtractorExecutor$1.call(ExtractorExecutor.java:57)
    at com.tes.archival.executor.ExtractorExecutor$1.call(ExtractorExecutor.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:284)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
    at java.lang.Thread.run(Thread.java:797)
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
    at javax.crypto.b.<clinit>(Unknown Source)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    ... 24 more
    Caused by: java.lang.SecurityException: Jurisdiction policy files are not signed by trusted signers!
    at javax.crypto.b.a(Unknown Source)
    at javax.crypto.b.a(Unknown Source)
    at javax.crypto.b.access$600(Unknown Source)
    at javax.crypto.b$0.run(Unknown Source)
    at java.security.AccessController.doPrivileged(AccessController.java:241)
    ... 27 more
    Any help in resolving this issue will be much appreaciated.
    Regards,
    Raman

    804915 wrote:
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
    Caused by: java.lang.SecurityException: Jurisdiction policy files are not signed by trusted signers!Probably a permissions problem. Or something is wrong with the certs.

  • UNCAUGHT EXCEPTION IN JAVELIN COMPILER!

    Has anyone seen the following error when deploying a JWS? I am using WLS 8.1 SP4 but the issue is also known to occur in 8.1 SP3.
    I have a WLS domain running without any application deployed. Create a simple JWS and deploy - I am stuck here.
    Error: uncaught exception while semantic checking in file:/C:/bea/user_projects/applications/Bug24866/Bug24866Web/MyWS/MyWS.jws
    UNCAUGHT EXCEPTION IN JAVELIN COMPILER!
    File a pri-1 bug on knex-compilerthread: Exclusive Thread
    error: null
    <Apr 15, 2005 10:42:11 AM EDT> <Error> <WLW> <000000> <Error: uncaught exception while semantic checking in file:/C:/bea/user_projects/applications/Bug24866/Bug24866Web/MyWS/MyWS.jws>
    <Apr 15, 2005 10:42:11 AM EDT> <Error> <WLW> <000000> <UNCAUGHT EXCEPTION IN JAVELIN COMPILER! --------------------------------------- File a pri-1 bug on knex-compilerthread: Exclusive Thread error: null stack: java.lang.IllegalArgumentException
    stack:
    at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    java.lang.IllegalArgumentException
    at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
            at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
            at com.bea.xml.XmlBeans.compileXsd([Lcom.bea.xml.XmlObject;Lcom.bea.xml.SchemaTypeLoader;Lcom.bea.xml.XmlOptions;)Lcom.bea.xml.SchemaTypeSystem;(XmlBeans.java:346)
            at com.bea.xml.marshal.SchemaTypeBuilder.commit(Ljava.util.Collection;)V(SchemaTypeBuilder.java:753)
            at com.bea.xml.marshal.SchemaTypeBuilder.addElementForDocLiteral(Ljava.lang.String;[Ljava.lang.String;[Lcom.bea.compiler.info.IType;ZLjava.util.Collection;)Lcom.bea.xml.marshal.GeneratedSchemaElement;(SchemaTypeBuilder.java:133)
            at com.bea.wlw.runtime.jws.compiler.CompatSchemaBuilder.addElementForDocLiteral(Ljava.lang.String;[Lcom.bea.wlw.runtime.jws.compiler.JavaOpParam;Z)Ljava.lang.String;(CompatSchemaBuilder.java:396)
    at com.bea.xml.XmlBeans.compileXsd([Lcom.bea.xml.XmlObject;Lcom.bea.xml.SchemaTypeLoader;Lcom.bea.xml.XmlOptions;)Lcom.bea.xml.SchemaTypeSystem;(XmlBeans.java:346)
    at com.bea.xml.marshal.SchemaTypeBuilder.commit(Ljava.util.Collection;)V(SchemaTypeBuilder.java:753)
    at com.bea.xml.marshal.SchemaTypeBuilder.addElementForDocLiteral(Ljava.lang.String;[Ljava.lang.String;[Lcom.bea.compiler.info.IType;ZLjava.util.Collection;)Lcom.bea.xml.marshal.GeneratedSchemaElement;(SchemaTypeBuilder.java:133)
    at com.bea.wlw.runtime.jws.compiler.CompatSchemaBuilder.addElementForDocLiteral(Ljava.lang.String;[Lcom.bea.wlw.runtime.jws.compiler.JavaOpParam;Z)Ljava.lang.String;(CompatSchemaBuilder.java:396)
    at com.bea.wlw.runtime.jws.compiler.TypeXlatorImpl.createMessage(Ljava.lang.String;Ljava.lang.String;ZZILjava.lang.String;Lcom.bea.jws.Protocol;[Lcom.bea.wlw.runtime.jws.compiler.JavaOpParam;Ljava.lang.String;Lcom.bea.wlw.runtime.jws.compiler.JwsXmlMapType;[Lcom.bea.compiler.info.IType;Lcom.bea.wlw.runtime.jws.compiler.CompatSchemaBuilder;Z)Lcom.bea.wlw.runtime.core.cook.WsdlOpMessage;(TypeXlatorImpl.java:99)
    at com.bea.wlw.runtime.jws.compiler.TypeXlatorImpl.fromJavaOp(Lcom.bea.wlw.runtime.jws.compiler.JavaOp;Ljava.util.Map;Ljava.lang.String;Lcom.bea.wlw.runtime.jws.compiler.CompatSchemaBuilder;Lcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)Lcom.bea.wlw.runtime.core.cook.WsdlOp;(TypeXlatorImpl.java:579)
    at com.bea.wlw.runtime.jws.compiler.WSInfo.generateWsdlOp(Lcom.bea.wlw.runtime.jws.compiler.JavaOp;Lcom.bea.wlw.runtime.core.cook.WsdlOp;Lcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)Lcom.bea.wlw.runtime.core.cook.WsdlOp;(WSInfo.java:830)
    at com.bea.wlw.runtime.jws.compiler.WSInfo.processJavaOp(Lcom.bea.wlw.runtime.jws.compiler.JavaOp;ZLcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)V(WSInfo.java:494)
    at com.bea.wlw.runtime.jws.compiler.JwsChecker.check(Lcom.bea.compiler.info.IDeclaredEntity;Lcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)V(JwsChecker.java:146)
    at javelin.java.JavaChecker.checkEntity(Lcom.bea.compiler.info.IDeclaredEntity;Lcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)V(JavaChecker.java:1316)
    at javelin.java.JavaChecker.checkMethodDeclaration(Ljavelin.java.JavaNode$MethodDeclaration;)V(JavaChecker.java:832)
    at javelin.java.JavaChecker.checkClassBodyDeclarations(Ljavelin.java.JavaNode$ClassBodyDeclaration;Lcom.bea.language.info.ILangUserType;ZZ)V(JavaChecker.java:617)
    at javelin.java.JavaChecker.checkClassDeclaration(Ljavelin.java.JavaNode$ClassDeclaration;Z)V(JavaChecker.java:331)
    at javelin.java.JavaChecker.checkClassDeclaration(Ljavelin.java.JavaNode$ClassDeclaration;)V(JavaChecker.java:293)
    at javelin.java.JavaChecker.check()V(JavaChecker.java:181)
    at javelin.work.WorkCheck.checkNode(Ljavelin.SourceNode;)V(WorkCheck.java:94)
    at javelin.work.WorkCheck.check()V(WorkCheck.java:76)
    at javelin.work.WorkCheck.run()V(WorkCheck.java:65)
    at javelin.threading.WorkList.runItem(Ljavelin.threading.WorkItem;)V(WorkList.java:500)
    at javelin.threading.WorkItem.ensureComplete(Ljavelin.threading.WorkItem;)V(WorkItem.java:103)
    at javelin.work.WorkCompile.run()V(WorkCompile.java:65)
    at javelin.threading.WorkList.runItem(Ljavelin.threading.WorkItem;)V(WorkList.java:500)
    at javelin.threading.WorkItem.ensureComplete(Ljava.util.List;Z)V(WorkItem.java:172)
    at javelin.work.WorkCompileFiles.compile(Ljava.util.Collection;I)V(WorkCompileFiles.java:345)
    at javelin.work.WorkCompileFiles.compile(Ljava.util.Collection;)V(WorkCompileFiles.java:313)
    at javelin.work.WorkCompileFiles.recompile(Ljava.util.Collection;)V(WorkCompileFiles.java:284)
    at javelin.work.WorkCompileFiles.compileFromInitialState()V(WorkCompileFiles.java:203)
    at javelin.work.WorkCompileFiles.run()V(WorkCompileFiles.java:148)
    at javelin.threading.WorkList$ExclusiveThread.run()V(WorkList.java:333)
    at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    >
            at com.bea.wlw.runtime.jws.compiler.TypeXlatorImpl.createMessage(Ljava.lang.String;Ljava.lang.String;ZZILjava.lang.String;Lcom.bea.jws.Protocol;[Lcom.bea.wlw.runtime.jws.compiler.JavaOpParam;Ljava.lang.String;Lcom.bea.wlw.runtime.jws.compiler.JwsXmlMapType;[Lcom.bea.compiler.info.IType;Lcom.bea.wlw.runtime.jws.compiler.CompatSchemaBuilder;Z)Lcom.bea.wlw.runtime.core.cook.WsdlOpMessage;(TypeXlatorImpl.java:99)
            at com.bea.wlw.runtime.jws.compiler.TypeXlatorImpl.fromJavaOp(Lcom.bea.wlw.runtime.jws.compiler.JavaOp;Ljava.util.Map;Ljava.lang.String;Lcom.bea.wlw.runtime.jws.compiler.CompatSchemaBuilder;Lcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)Lcom.bea.wlw.runtime.core.cook.WsdlOp;(TypeXlatorImpl.java:579)
            at com.bea.wlw.runtime.jws.compiler.WSInfo.generateWsdlOp(Lcom.bea.wlw.runtime.jws.compiler.JavaOp;Lcom.bea.wlw.runtime.core.cook.WsdlOp;Lcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)Lcom.bea.wlw.runtime.core.cook.WsdlOp;(WSInfo.java:830)
            at com.bea.wlw.runtime.jws.compiler.WSInfo.processJavaOp(Lcom.bea.wlw.runtime.jws.compiler.JavaOp;ZLcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)V(WSInfo.java:494)
            at com.bea.wlw.runtime.jws.compiler.JwsChecker.check(Lcom.bea.compiler.info.IDeclaredEntity;Lcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)V(JwsChecker.java:146)
            at javelin.java.JavaChecker.checkEntity(Lcom.bea.compiler.info.IDeclaredEntity;Lcom.bea.compiler.IToken;Lcom.bea.compiler.IToken;)V(JavaChecker.java:1316)
            at javelin.java.JavaChecker.checkMethodDeclaration(Ljavelin.java.JavaNode$MethodDeclaration;)V(JavaChecker.java:832)
            at javelin.java.JavaChecker.checkClassBodyDeclarations(Ljavelin.java.JavaNode$ClassBodyDeclaration;Lcom.bea.language.info.ILangUserType;ZZ)V(JavaChecker.java:617)
            at javelin.java.JavaChecker.checkClassDeclaration(Ljavelin.java.JavaNode$ClassDeclaration;Z)V(JavaChecker.java:331)
            at javelin.java.JavaChecker.checkClassDeclaration(Ljavelin.java.JavaNode$ClassDeclaration;)V(JavaChecker.java:293)
            at javelin.java.JavaChecker.check()V(JavaChecker.java:181)
            at javelin.work.WorkCheck.checkNode(Ljavelin.SourceNode;)V(WorkCheck.java:94)
            at javelin.work.WorkCheck.check()V(WorkCheck.java:76)
            at javelin.work.WorkCheck.run()V(WorkCheck.java:65)
            at javelin.threading.WorkList.runItem(Ljavelin.threading.WorkItem;)V(WorkList.java:500)
            at javelin.threading.WorkItem.ensureComplete(Ljavelin.threading.WorkItem;)V(WorkItem.java:103)
            at javelin.work.WorkCompile.run()V(WorkCompile.java:65)
            at javelin.threading.WorkList.runItem(Ljavelin.threading.WorkItem;)V(WorkList.java:500)
            at javelin.threading.WorkItem.ensureComplete(Ljava.util.List;Z)V(WorkItem.java:172)
            at javelin.work.WorkCompileFiles.compile(Ljava.util.Collection;I)V(WorkCompileFiles.java:345)
            at javelin.work.WorkCompileFiles.compile(Ljava.util.Collection;)V(WorkCompileFiles.java:313)
            at javelin.work.WorkCompileFiles.recompile(Ljava.util.Collection;)V(WorkCompileFiles.java:284)
            at javelin.work.WorkCompileFiles.compileFromInitialState()V(WorkCompileFiles.java:203)
            at javelin.work.WorkCompileFiles.run()V(WorkCompileFiles.java:148)
            at javelin.threading.WorkList$ExclusiveThread.run()V(WorkList.java:333)
            at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    <Apr 15, 2005 10:57:58 AM EDT> <Error> <WebLogicServer> <BEA-000337> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default' has been busy for "947" seconds working on the request "Http Request: /Bug24866Web/MyWS/MyWS.jws", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi -
    A few questions:
    What happens if you build your project in the ide? Do you see the same exception?
    Can you narrow down the problem so that the only file in your project is MyWs.jws?
    What does your MyWS.jws file look like?
    Thanks
    Mike Kaufman
    BEA Systems, Inc.

  • Launching a signed application that requires ibm-jre-1.5.0 from sun 1.4.2

    I am having problems with java web start not starting my application.
    The progress gui shows 'starting application' while the progress bar keeps blinking away.
    The application jars are signed using IBM-jdk's jarsigner.
    The setup is as follows:
    The client machines have only Sun's jdk-1.4.2_05 installed.
    The application requires a Java5 jre, so a jnlp file has been crafted that installs the required jre (provided by WebSphere thin client).
    The jre-installation goes well, i.e. the jre shows up in the web start guis as installed by the name specified.
    When web start tries to run the application on the 1.5.0-jre, it fails with the following produced in the web start log file:
    Java Web Start 1.4.2_05 Console, started Tue May 12 15:10:46 CEST 2009
    Java 2 Runtime Environment: Version 1.4.2_05 by Sun Microsystems Inc.
    Logging to file: C:\javaws.log
    Java Web Start 1.4.2_05 Console, started Tue May 12 15:12:30 CEST 2009
    Java 2 Runtime Environment: Version 1.4.2_05 by Sun Microsystems Inc.
    Logging to file: C:\javaws.log
    IBM WebSphere Application Server, Release 6.1
    Client Runtime Installer Tool
    Copyright IBM Corp., 2004, 2006
    Start installation.
    Found [java/jre/bin/javaw.exe] at
    file:C:/Documents%20and%20Settings/apptest/Application%20Data/Sun/Java/Deployment/javaws/cache/http/D<myserver>/P9080/DMruntime/RMWASThinClientJRERuntime-6.1-windows.jar!/java/jre/bin/javaw.exe.
    Extracting: C:/Documents and Settings/apptest/Application
    Data/Sun/Java/Deployment/javaws/cache/http/D<myserver>/P9080/DMruntime/RMWASThinClientJRERuntime-6.1-windows.jar.
    Extracting IBM WebSphere Application client runtime [1.5.0]:
    C:\Documents and Settings\apptest\Application
    Data\Sun\Java\Deployment\javaws\cache\.ext\E1242133972562\.
    Finished installing the IBM WebSphere Application client runtime in
    C:\Documents and Settings\apptest\Application
    Data\Sun\Java\Deployment\javaws\cache\.ext\E1242133972562\.
    Finished extracting IBM WebSphere Application client runtime.
    Java Web Start 1.4.2_05 Console, started Tue May 12 15:14:20 CEST 2009
    Java 2 Runtime Environment: Version 1.5.0 by IBM Corporation
    Logging to file: C:\javaws.log
    Exception in thread "javawsApplicationMain"
    java.lang.NoClassDefFoundError: sun.security.util.DerInputStream
    at com.sun.javaws.security.SunSecurityUtil.getExtendedKeyUsage(Unknown Source)
    at com.sun.javaws.security.SunSecurityUtil.checkLeafKeyUsage(Unknown Source)
    at com.sun.javaws.security.SunSecurityUtil.checkExtensions(Unknown Source)
    at com.sun.javaws.security.SunSecurityUtil.checkTrustedChain(Unknown Source)
    at com.sun.javaws.security.CertificateDialog.verifyCertificate(Unknown Source)
    at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
    at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
    at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:810)
    Java Web Start 1.4.2_05 Console, started Tue May 12 15:17:15 CEST 2009
    Java 2 Runtime Environment: Version 1.4.2_05 by Sun Microsystems Inc.
    Logging to file: C:\javaws.log
    Java Web Start 1.4.2_05 Console, started Tue May 12 15:47:10 CEST 2009
    Java 2 Runtime Environment: Version 1.4.2_05 by Sun Microsystems Inc.
    Logging to file: C:\javaws.logI am quite unsure what to do. The DerInputStream is in the 1.4.2's rt.jar.
    I am confused as to who is actually having the problem, the sun web start JRE or the ibm jre.
    Does anyone have any hints?
    Thanks,
    /Morten

    Found it!!!
    It was not the applet.-tag... But the JRE that copies the proxy-settings from IE at some point (installation maybe) and uses those settings allthough I changed my settings in IE to work on our intranet.
    So I just changed the proxy-settings in the JRE control panel and now it works fine.
    /Peter

  • IBM JRE 1.2.2 - NullPointerException

    Hi All,
    anyone knows the solution to this : ???
    We need to use WebStart in connection
    with IBM WebSphere and IBM-JRE 1.2.2 on the client side.
    The JRE is installed well, an is used by webstart.
    WebStart shows "Starting Application" and hangs.
    I always get a null pointer exception when I enable logging:
    java.lang.NullPointerException
    at java.lang.ClassLoader.setSigners(ClassLoader.java:650)
    at java.lang.ClassLoader.defineClass
    (ClassLoader.java:474)
    at java.security.SecureClassLoader.defineClass
    (SecureClassLoader.java:103)
    at com.sun.jnlp.JNLPClassLoader.defineClass
    (JNLPClassLoader.java:279)
    at com.sun.jnlp.JNLPClassLoader.access$0
    (JNLPClassLoader.java:245)
    at com.sun.jnlp.JNLPClassLoader$1.run
    (JNLPClassLoader.java:226)
    at java.security.AccessController.doPrivileged(Native
    Method)
    at com.sun.jnlp.JNLPClassLoader.findClass
    (JNLPClassLoader.java:220)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at com.sun.javaws.Launcher.continueLaunch
    (Launcher.java:481)
    at com.sun.javaws.Launcher.handleApplicationDesc
    (Launcher.java:334)
    at com.sun.javaws.Launcher.handleLaunchFile
    (Launcher.java:151)
    at com.sun.javaws.Launcher.<init>(Launcher.java:113)
    at com.sun.javaws.Main.main(Main.java:153)
    Have we overseen something? What is the problem?
    Thanks for help!
    Sven

    my jar-file is signed.
    i have another application, signed by the same self-signed keys -> it works !
    and uses the IBM JRE 1.2.2 too.
    other guys in this forum are working with IBM-JRE 1.2.2 and signed jar-files too.
    if i change the the <j2se version="1.2.2"> tag to <j2se version="1.3"> my
    application is also working. ( without websphere-ORB! )
    thanks so far ...

  • Still getting uncaught exception in c++ API running keywords query

    When I run a search based on keyword in java application, the first time, most likely the query results is returned, but for the subsequent keywords searches, the application throws the error below...
    com.sleepycat.dbxml.XmlException: Uncaught exception from C++ API, errcode = INTERNAL_ERROR
         at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
         at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:85)
         at epss.utilities.XQueryUtil.getQueryResultsByKeywords(XQueryUtil.java:168)
         at epss.search.XmlContentByKeywords.getDocumentContentByKeywords(XmlContentByKeywords.java:123)
         at com.epss.test.TestApp.main(TestApp.java:83)
    I know one of the many things to consider fixing this problem is to make sure all berkeley db xml objects (e.g. xmlContainer, XmlManager, XmlResults, XmlQueryExpression, etc) delete() method is called on those obects once they are done to free resources etc. I've been doing all that and still getting the error. This problem doesn't happen when i run a search for based on id (attribute value).
    Note: I'm not explicitly using trasanction since i turned on transaction in EnvironmentConfig to create XmlManager.
    This is the method that does the query and return us the results...
         * Gets the query results by keywords.
         * @param keywords
         * the keywords under search
         * @param manager
         * the object used to perform activities such as preparing XQuery
         * queries
         * @return the query results by keywords
         public static synchronized XmlResults getQueryResultsByKeywords(
                   final String keywords, XmlManager manager) {
              /* Represents a parsed XQuery expression. */
              XmlQueryExpression expr = null;
              /* Encapsulates the results of a query that has been executed. */
              XmlResults results = null;
              /* The query context */
              XmlQueryContext context = null;
              // The value
              XmlValue value = null;
              // Declare string variables
              String query = null;
              // Run logic
              try {
                   /* Do null check */
                   if (manager != null) {
                        // Make XmlValue object
                        value = new XmlValue(keywords);
                        // Get a query context
                        context = manager.createQueryContext();
                        // Bind xquery variable value to its variable name
                        context.setVariableValue(DataConstants.KEYWORD, value);
                        // Build the query string
                        query = QueryStringUtil.xQueryStringByKeywords(
                                  DataConstants.ELEMENTS, DataConstants.KEYWORD);
                        // Compile an XQuery expression into an XmlQueryExpression
                        expr = manager.prepare(query, context);
                        // Evaluates the XQuery expression against the containers
                        results = expr.execute(context);
                        /* Release resources */
                        if (results.size() == 0) {
                             results.delete();
                             results = null;
                        // Free the native resources
                        expr.delete();
                        // Dereference objects
                        expr = null;
                        value = null;
                        context = null;
                        query = null;
                        manager.delete();
                        manager = null;
                        return results;
              } catch (final XmlException e) {
                   // Free the native resources
                   expr.delete();
                   // dereference objects
                   expr = null;
                   value = null;
                   context = null;
                   query = null;
                   // Write to log
                   WriteLog.logExceptionToFile(e);
              return null;
    This is the callback method that return the query string...
         * Returns query keyword query string to retrive keywords.
         * @param elementName The particular node under search
         * @param keywords The keywords being searched under the node
         * @return The string used for the query
         public static synchronized String xQueryStringByKeywords(
                   final String elementName, final String keywords) {
              /* Build query string */
              final StringBuffer sb = new StringBuffer();
              sb.append("let $found := false\n");
              sb.append("let $terms := tokenize($");
              sb.append(keywords);
              sb.append(", \",\")\n");
              sb.append("for $element in collection('");
              sb.append(DataConstants.CONTAINER);
              sb.append("')");
              sb.append("/(FUNDOC | JOBDOC)");
              sb.append("//");
              sb.append(elementName);
              sb.append("//");
              sb.append("parent::*[1]");
              sb.append("\nlet $found := for $term in $terms\n");
              sb
                        .append(" return if (contains(lower-case($element), lower-case($term)))");
              sb.append(" \nthen \"true\"");
              sb.append(" else \"false\" \n");
              sb.append(" return if ($found = \"false\") \nthen () else $element");
              return sb.toString();
    Edited by: user3453165 on Jan 20, 2010 7:20 AM

    I am using berkeley db xml 2.5.13 on windows xp. Yes that's the complete error message. I am going to add my environment class and also part of the keyword search class that extends the environment, which will give u idea about how i'm creating and using transaction. I don't explicitly use transaction. I used to explicitly use it but i thought it's redundant. So when i create the db environment, i just call           envc.setTransactional(true) and pass the EnvironmentConfig object (i.e. envc) to the environment to create instance of XmlManager and this is fine. Look below and u will see what i mean. Please let me know if u need more information. Thanks for your help. Appreciate it.
    Tue, 2010-01-19 10:58:27 PM
    com.sleepycat.dbxml.XmlException: Uncaught exception from C++ API, errcode = INTERNAL_ERROR
         at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
         at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:85)
         at epss.utilities.XQueryUtil.getQueryResultsByKeywords(XQueryUtil.java:166)
         at epss.search.XmlContentByKeywords.getDocumentContentByKeywords(XmlContentByKeywords.java:123)
         at com.epss.test.TestApp.main(TestApp.java:66)
    The environment class...
    package epss.core;
    import java.io.File;
    import java.io.FilenameFilter;
    import java.io.IOException;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.Environment;
    import com.sleepycat.db.EnvironmentConfig;
    import com.sleepycat.dbxml.XmlContainer;
    import com.sleepycat.dbxml.XmlContainerConfig;
    import com.sleepycat.dbxml.XmlManager;
    import com.sleepycat.dbxml.XmlManagerConfig;
    import epss.utilities.GlobalUtil;
    * Class used to open and close Berkeley Database environment.
    public class DatabaseEnvironment {
         /** The db env_. */
         private Environment dbEnv_ = null;
         /** The mgr_. */
         private XmlManager mgr_ = null;
         /** The opened container. */
         private XmlContainer openedContainer = null;
         /** The new container. */
         private XmlContainer newContainer = null;
         /** The path2 db env_. */
         private File path2DbEnv_ = null;
         /** Whether we are creating or opening database environment. */
         private int mode = -1;
         /** Constants for mode opening or mode creation. */
         private static final int OPEN_DB = 0, CREATE_DB = 1;
         * Set the Mode (CREATE_DB = 1, OPEN_DB = 0).
         * @param m
         * the m
         protected synchronized void setDatabaseMode(final int m) {
              if (m == OPEN_DB || m == CREATE_DB)
                   mode = m;
         * Gets the manager.
         * @return the manager
         protected synchronized XmlManager getManager() {
              return mgr_;
         * Gets the opened container.
         * @return the opened container
         protected synchronized XmlContainer getOpenedContainer() {
              return openedContainer;
         * Gets the new container.
         * @return the new container
         protected synchronized XmlContainer getNewContainer() {
              return newContainer;
         * Initialize database environment.
         * @throws Exception
         * the exception
         protected synchronized void doDatabaseSetup(String container)
                   throws Exception {
              switch (mode) {
              case OPEN_DB:
                   // check database home dir exist
                   if (!(isPathToDbExist(new File(DataConstants.DB_HOME)))) {
                        WriteLog.logMessagesToFile(DataConstants.DB_FILE_MISSING);
                        cleanup();
                        throw new IOException(DataConstants.DB_FILE_MISSING);
                   } else {
                        // Configure database environment
                        configureDatabaseEnv();
                        // Configuration settings for an XmlContainer instance
                        XmlContainerConfig config = new XmlContainerConfig();
                        // DB shd open within a transaction
                        config.setTransactional(true);
                        // Opens a container, returning a handle to an XmlContainer obj
                        openedContainer = getManager().openContainer(container, config);
                   break;
              case CREATE_DB:
                   // Set environment home
                   setDatabaseHome();
                   // Validate database home dir exist
                   if (isPathToDbExist(new File(DataConstants.DB_HOME))) {
                        // Configure database environment
                        configureDatabaseEnv();
                        // Configuration settings for an XmlContainer instance
                        XmlContainerConfig config = new XmlContainerConfig();
                        // Sets whether documents are validated
                        config.setAllowValidation(true);
                        // DB shd open within a transaction
                        config.setTransactional(true);
                        // The database container path
                        File file = new File(path2DbEnv_, container);
                        // Creates a container, returning a handle to
                        // an XmlContainer object
                        newContainer = getManager().createContainer(file.getPath(),
                                  config);
                        newContainer.setAutoIndexing(true);
                   break;
              default:
                   throw new IllegalStateException("mode value (" + mode
                             + ") is invalid");
         * Validate path2 db env.
         * @param path2DbEnv
         * the path2 db env
         * @return true, if checks if is path to db env
         private synchronized boolean isPathToDbExist(final File path2DbEnv) {
              boolean returnValue = false;
              if (!(path2DbEnv.isDirectory() || path2DbEnv.exists())) {
                   throw new IllegalArgumentException(DataConstants.DIR_ERROR
                             + path2DbEnv.getAbsolutePath()
                             + DataConstants.DOES_NOT_EXIST);
              } else {
                   path2DbEnv_ = path2DbEnv;
                   // Test whether db home exist when mode is 0
                   if (path2DbEnv_.exists() && mode == OPEN_DB) {
                        // Test whether all db files exist
                             returnValue = true;
                   } else {
                        // Test whether db home exist when mode is 1
                        if (path2DbEnv_.exists() && mode == CREATE_DB) {
                             returnValue = true;
              return returnValue;
         * Set database environment home.
         * @throws IOException
         * Signals that an I/O exception has occurred.
         private synchronized void setDatabaseHome() throws IOException {
              // The base dir
              File homeDir = new File(DataConstants.DB_HOME);
              // If db home delete fails, throw io exception
              if (!GlobalUtil.deleteDir(homeDir) && homeDir.exists()) {
                   WriteLog.logMessagesToFile(DataConstants.ERROR_MSG);
                   throw new IOException(DataConstants.ERROR_MSG);
              } else {
                   // If delete is successful, recreate db home
                   final boolean success = homeDir.mkdir();
                   // if home dir creation is successful
                   if (success) {
                        // Construct file object
                        File logDir = new File(homeDir, DataConstants.LOG_DIR);
                        // File dbHome = new File(homeDir, DataConstants.DB_DIR);
                        // Create log file
                        boolean logCreated = logDir.mkdir();
                        // Create db home
                        // boolean dbHomeCreated = dbHome.mkdir();
                        if (logCreated) {
                             WriteLog.logMessagesToFile(homeDir.getAbsolutePath()
                                       + " successfully created");
                   } else {
                        WriteLog.logMessagesToFile(homeDir.getAbsolutePath()
                                  + " failed to create");
         * Sets environment configuration and it's handlers.
         * @throws Exception
         * the exception
         private synchronized void configureDatabaseEnv() throws Exception {
              // Construct a new log file object
              File logDir = new File(path2DbEnv_, DataConstants.LOG_DIR);
              // The environment config
              EnvironmentConfig envc = new EnvironmentConfig();
              // estimate how much space to allocate
              // for various lock-table data structures
              envc.setMaxLockers(10000);
              // estimate how much space to allocate
              // for various lock-table data structures
              envc.setMaxLocks(10000);
              // estimate how much space to allocate
              // for various lock-table data structures
              envc.setMaxLockObjects(10000);
              // automatically remove log files
              // that are no longer needed.
              envc.setLogAutoRemove(true);
              // If environment does not exist create it
              envc.setAllowCreate(true);
              // For multiple threads or processes that are concurrently reading and
              // writing to berkeley db xml
              envc.setInitializeLocking(true);
              // This is used for database recovery from application or system
              // failures.
              envc.setInitializeLogging(true);
              // Provides an in-memory cache that can be shared by all threads and
              // processes
              envc.setInitializeCache(true);
              // Provides atomicity for multiple database access operations.
              envc.setTransactional(true);
              // location of logging files.
              envc.setLogDirectory(logDir);
              // set the size of the shared memory buffer pool
              envc.setCacheSize(500 * 1024 * 1024);
              // turn on the mutexes
              envc.setMaxMutexes(500000);
              // show error messages by BDB XML library
              envc.setErrorStream(System.err);
              // File db_home = new File(path2DbEnv_, "db");
              // Create a database environment
              dbEnv_ = new Environment(path2DbEnv_, envc);
              // Configure an XmlManager instance via its constructors
              XmlManagerConfig mgrConf = new XmlManagerConfig();
              mgrConf.setAllowExternalAccess(true);
              mgrConf.setAllowAutoOpen(true);
              // Create xml manager object
              mgr_ = new XmlManager(dbEnv_, mgrConf);
              mgr_.setDefaultContainerType(XmlContainer.NodeContainer);
         * This method is used to close the database environment freeing any
         * allocated resources that may have been held by it's handlers and closing
         * any underlying subsystems.
         * @throws DatabaseException
         * the database exception
         protected synchronized void cleanup() throws DatabaseException {
              if (path2DbEnv_ != null) {
                   path2DbEnv_ = null;
              if (newContainer != null) {
                   newContainer.delete();
                   newContainer = null;
              if (openedContainer != null) {
                   openedContainer.delete();
                   openedContainer = null;
              if (mgr_ != null) {
                   mgr_.delete();
                   mgr_ = null;
              if (dbEnv_ != null) {
                   dbEnv_.close();
                   dbEnv_ = null;
    // This is the keyword search class...
    public final class XmlContentByKeywords extends DatabaseEnvironment {
         public synchronized Document getDocumentContentByKeywords(String keywords)
                   throws Exception {
              // Encapsulates the results of a query that has been executed.
              XmlResults results = null;
              // The manager
              XmlManager manager = null;
              // Run the logic
              if (keywords != null) {
                   try {
                        // Flag to open db
                        final int OPEN_DB = 0;
                        // The keywords content
                        Document keywordsContent = null;
                        // Open db connection
                        try {
                             // Get database instance
                             setDatabaseMode(OPEN_DB);
                             // Open this container in db environment
                             doDatabaseSetup(DataConstants.CONTAINER);
                        } catch (Exception ex) {
                             // Create error node with error message
                             keywordsContent = Wrapper.createErrorDocument(ex
                                       .getMessage());
                             // Return the error node doc
                             return keywordsContent;
                        // Manager instance
                        // final XmlManager manager = getManager();
                        manager = getManager();
                        // Transaction instance
                        // final XmlTransaction txn_ = getTxn();
                        // The map
                        Map<String, Document> map = null;
                        // The temp map
                        Map<String, Document> tempMap = null;
                        // Return the query results
                        results = XQueryUtil.getQueryResultsByKeywords(keywords, manager);
    // use results here...
    // close results when done
    results.delete();
    results = null;
    manager.delete();
    manager = null;
    }

  • Uncaught exception: Static initializer: java/lang/SecurityException

    So i'm trying to compile some code of a small game for Doja.
    The code compiles fine but when i load it in the emulator i get the following eror:
    Uncaught exception java/lang/Error: Static initializer: java/lang/SecurityException.
    Now i haven't seen that before. I looked into it and first i thought there must be some static initializer block in some class but there isn't.
    Now i'm kinda stumped. What else can be the problem?

    A security exception is usually thrown when you try to use some function of the API that you're not allowed to use.
    For example, if the user has not given your application permission to connect to the internet, but you try to do so.
    Sometimes this error can be resolved by turning on the appropriate option in the ADF file.
    Cheers,
    Sam

  • Help needed finding uncaught exception in amended SQLBooks sample

    Hi all
    I've been playing with the SQLBooks example and now I've got a an uncaught exception error coming up when I try press the + (add) button on the main screen.
    I've changed the DB that I'm using and have created my own equivalent classes for the book object.
    The app compiles with no errors or warnings and the main screen loads up (no data showing as my DB is empty).
    I hit the + button to add a new 'book' and the cellForRowAtIndexPath method runs no problem (I've stepped through that) but after this there isn't anything else for me to step into and the simulator returns to the code with something about an UNCAUGHT EXCEPTION. I'm new to xcode and mac development so don't have the knowledge to debug past what I've done.
    Any suggestions on where I can start?
    Regards
    Wayne

    If you haven't noticed it, the other person who responded to your message is correct. However, the log is a little confusing and it can be difficult to sort the messages in the log into categories. You may want to type the name of your application into the search box to narrow things down a bit. Do that and then run your application and you'll see only the messages sent by it (and not by Xcode).
    If you notice the stack trace in your code (it's a couple of lines long so it's tough to miss), you'll probably find the more informative message a few lines above.
    Hope that helps.
    D

  • IBM JRE and Webservice (JWSD 1.3)

    Initally, I can run this program in SUN JRE and JBoss. However, I have received some add change requests, therefore, we need to use IBM JRE and existing JBOSS 3.2.3.In addition, I have got a problem using IBM JRE and JBoss 3.2.3.
    Actually, I use Sun JRE to compile those coding and then ftp to the JBOSS 3.2.3. Then, I use IBM JRE to run java application and sent web services request to JBOSS 3.2.3(using IBM JRE).
    The following is a log file in JBOSS 3.2.3 which provides web service.
    2007-07-16 09:17:32,083 ERROR [STDERR] Jul 16, 2007 9:17:32 AM com.sun.xml.rpc.server.http.JAXRPCServletDelegate doPost
    SEVERE: caught throwable
    java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/ver1_1/Message1_1Impl
    The following is a log file which is created by Java application
    ERROR - Error in invokeBatchJobAction: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
    ERROR - Error in run: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
    ERROR -
    e.getCause().getMessage(): com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
    Does anyone can tell me what problem?

    It seems you're using Sun implementation (JAXRPC) and this one is looking for Sun SAAJ implementation.
    You could get the same kind of error when using JAX-WS SAAJ (Sun implementation) who in turn require the Sun Xerces impl

  • Uncaught exception: java.lang.illegalArugumentException after OS upgrade

    Configuration:
    AT&T 8310 OS 8310M_PBr4.5.0_rel152_PL2.7.0.90_A4.5.0.110_AT&T
    Desktop Manager - 4.6.013
    Enteprise server (IBM Lotus Notes) - 4.1.5.26
    Created backup of device
    Ran the upgrade from Desktop Manager, upgrade Failed!
    Attempted a fresh install of the OS as per bb support article - 11320 - restored the device data, had issues with accessing email.
    Decided to wipe device and re-activate.  Started to get the Uncaught exception message after the wipe and had issues with the activation.
    Wiped the device several times and still getting the message, it also takes a long time for the inbox to open up.
    I'm thinking this might be an Enterprise issue and the policy that the user had set before performing the upgrade.
    Has anyone else experienced this issue upgrading BES user's BBs to the new 4.5 os?

    On our BES we have a few policies setup for BB users.  The users that are getting this message are on a restricted Policy, the other users that have the less restricted policy (downloads, personal email enabled) do not get this error after the upgrade is completed.
    We are not doing a mass roll out of the upgrade to users, but have found that some users that have email sync issues are resolved with the upgrade.
    Is there a best practice guide that shows the best way to upgrade the device os for users running on BES. 

  • Please help figure out an uncaught exception,

    Hello All,
    I've setup javamail API package to use with Resin web server by copying the necessary jar files under WEB-INF/lib. I've copied mail.jar, mailapi.jar, pop3.jar, smtp.jar and activation.jar.
    According to my readings I have everything I need to send simple messages out. But when I run my web application to send a simple message, I get FileNotFoundException exception, please see the snippet diagnostics below. Furthermore, I get an exception somewhere that does not seem to be one of the exceptions I'm catching. I cannot figure out what that exception is and where it's coming from.
    I get a FileNotFoundException somewhere during the process of sending the message, but that doesn't seem to stop the process so I'm not sure if that has anything to do with the final uncaught exception.
    By the way the email message is sent and does reach its destination in spite of the uncaught exception.
    Does anyone have any idea what is happening and why?
    Thanks in advance for any hints and tips.
    <<<<<<<< snippet >>>>>>>>>
    [2003-05-19 23:00:56.245]DEBUG: JavaMail version 1.3
    [2003-05-19 23:00:56.255]DEBUG: java.io.FileNotFoundException: C:\j2sdk1.4.1_02\jre\lib\javamail.providers (The system cannot find the file specified)
    [2003-05-19 23:00:56.265]DEBUG: URL jar:file:/C:/resin-ee-2.1.9/public_html/WEB-INF/lib/imap.jar!/META-INF/javamail.providers
    [2003-05-19 23:00:56.505]DEBUG: successfully loaded resource: jar:file:/C:/resin-ee-2.1.9/public_html/WEB-INF/lib/imap.jar!/META-INF/javamail.providers
    [2003-05-19 23:00:56.595]DEBUG: URL jar:file:/C:/resin-ee-2.1.9/public_html/WEB-INF/lib/smtp.jar!/META-INF/javamail.address.map
    [2003-05-19 23:00:56.595]DEBUG: successfully loaded resource: jar:file:/C:/resin-ee-2.1.9/public_html/WEB-INF/lib/smtp.jar!/META-INF/javamail.address.map
    [2003-05-19 23:00:56.595]DEBUG: java.io.FileNotFoundException: C:\j2sdk1.4.1_02\jre\lib\javamail.address.map (The system cannot find the file specified)
    [2003-05-19 23:00:56.835]DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    [2003-05-19 23:00:56.855]DEBUG SMTP: useEhlo true, useAuth false
    <<<<<<<< snip >>>>>>>>>

    In the debug output you showed there, the JavaMail code is looking for a resource that could be in several different places. It doesn't find it in the first place but then it finds it in the second place, so it doesn't have any problem with that. So it carries on to send the mail normally.
    If your program is ending abnormally, you should get a stack trace with the uncaught exception at the top. If you can't find that, wrap your code in this:try {
      // your main routine goes here
    } catch(Throwable t) {
      // output this exception somewhere you can find it
    }

  • Caught and Uncaught Exceptions

    Can you kindly explain Caught and Uncaught exceptions? If I use the throws keyword in the method signature ,is it a caught or uncaught exception?

    "Caught" and "uncaught" are not really standard terms. Perhaps the OP is thinking of "checked" and "unchecked"?
    Read the tutorial at the link provided, but here's' a quick overiew of checked/unchecked exceptions:
    The base class for all exceptions is Throwable. Java provides Exception and Error that extend Throwable. RuntimeException (and many others) extend Exception.
    RuntimeException and its descendants, and Error and its descendants, are called unchecked exceptions. Everything else is a checked exception.
    If your method, or any method it calls, can throw a checked exception, then your method must either catch that exception, or declare that your method throws that exception. This way, when I call your method, I know at compile time what can possibly go wrong and I can decide whether to handle it or just bubble it up to my caller. Catching a given exception also catches all that exception's descendants. Declaring that you throw a given exception means that you might throw that exception or any of its descendants.
    Unchecked exceptions (RuntimeException, Error, and their descendants) are not subject to those restrictions. Any method can throw any unchecked exception at any time without declaring it. This is because unchecked exceptions are either the sign of a coding error (RuntimeException), which is totally preventable and should be fixed rather than handled by the code that encounters it, or a problem in the VM, which in general can not be predicted or handled.

  • Reg: Uncaught Exception: com.sun.forte.st.mpmt.ipc$AnIPCException

    I am developing programs using sun studio 12 on SunFireT1000 Server having Solaris 10 OS .
    My program is getting compiled and running well but i have probems in profiling.
    When I try to profile, I got the following error
    "Uncaught Exception: com.sun.forte.st.mpmt.ipc$AnIPCException
    er_print exited due to internal error
    Exception in thread Window_thread."
    Even for the programs that I profiled earlier I am now getting the same error.
    If I login with a different user name I am able to profile the same project without the above error but I cannot modify the source code.
    Kindly suggest a solution to overcome the above problem.
    Thanks in advance,
    Mahendraarman.D

    Hi Mahendraarman,
    Thank you for the report! Usually this error message (exception) indicates a problem in "er_print",
    or in the dialog between "analyzer" and "er_print". Could you please check if there is a "core" file
    from "er_print"? If there is no 'core" file, please, make sure the limit on coredumpsize is unlimited,
    and start analyzer again:
    {code}
    % csh
    % limit coredumpsize unlimited
    % limit
    cputime unlimited
    filesize unlimited
    datasize unlimited
    stacksize 10240 kbytes
    coredumpsize unlimited
    descriptors 256
    memorysize unlimited
    % analyzer
    {code}
    If you get a core file from "er_print", please, run "pstack core" and post its output.
    You wrote that you can view the experiment using another user's account. This is
    very important detail. Do you have ".er.rc" file in your $HOME directory?
    If yes, could you, please, rename it and start analyzer again?
    {code}
    % mv $HOME/.er.rc $HOME/.er.rc.0
    % analyzer
    {code}
    If you cannot get a core file, and there is no $HOME/.er.rc file, could you please
    run analyzer under truss, and send me the truss output?
    {code}
    % truss -a -e -f -o /tmp/analyzer.tr analyzer
    {code}
    When the problem happens, send me this file: /tmp/analyzer.tr
    My email address is: Nikolay dot Molchanov at Sun dot Com
    Thanks in advance,
    Nik

  • Lost SMS Icon and get error message Uncaught exception Index 20 = 20

    Dear All
    I have lost my SMS Icon and looking at previous forums have carried out the following techniques which do not work
    1. I have gone to Messages - Options - SmS & Email Inboxes - Seperate but this does not solve anything
        Within this step i have switched off phone taken out battery etc...
    2. I have gone to Applications - menu - "show all" but my SMS icon cannot be found
    Just to note even when i go to Messages - View Folder - SMS Inbox .....i get the error message again  
    Uncaught exception Index 20 > = 20
    Anyone able to help ? Would be greatly appreciated.
    Thanks

    You may have already figured out your fix - but yesterday I went thru the same thing with my son's phone.  Overnight he lost his SMS & MMS Icon and was receiving Uncaught Exception Index 28 >= 28.  I called Verizon Tech Support and was told there was a corrupt file in the calendar. 
    We backed up the phone using the Desktop Manager - performed a security wipe and restored his phone. 
    His phone is back up and running as it should be.  Hope this helps.
     Laura

Maybe you are looking for

  • "this computer is no longer authorized for applications that are installed

    "this computer is no longer authorized for applications that are installed on the ipad "name of ipad" Would you like to autoriize for items purchased from the itunes store? if you do not autorize .... Why am I getting this message I only have 1 compu

  • Non-existant photo links?

    Hi all I have an N96 (firmware version 12.043) and I have a weird problem with it. When I go into the photo gallery, I have loads of boken links to photos that don't actually exist on the phone (they were on the memory card previously, but I have sin

  • Can't hear my music on my iphone on photo any more because of the update IOS 7.0.0

    Every time I close the app photos, my music stops on me (can't find the music I like on iTunes) I liked the IOS 6.1.4 update because it let me hear the music when I close the app. can you bring that back?

  • JSPs using Custom Tag with Boolean attribute cannot compile

    Hi, In Oracle9iAS(9.0.3), a jsp using a tag extension, which has a Boolean attribute, caused the following compile error, although the jsp is valid in other web containers. ERROR: /opt/oracle/j2ee/home/application-deployments/simple/simple/persistenc

  • Reverting to old version?

    I could not get my iPhone 4.2 update on my mac desktop because I could not get the latest version of iTunes (I think). every time I plugged in, opened iTunes, and then pressed 'Update', I was told I had the latest version of iTunes, and would not go