Java.lang.UnsupportedOperationException when AutoRefresh set to Always

Hi,
I am getting above exception (java.lang.UnsupportedOperationException) when I change the "AutoRefresh" property of view object to "Always".
The exception comes at:
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7290)
& at oracle.jbo.server.BaseSQLBuilderImpl.registerDatabaseChangeListener(BaseSQLBuilderImpl.java:4302)
I have DataBinding.cpx -> DataControlUsages -> AppModuleDataControl1 -> PropertyInspector -> Configuration set to "AppModuleShared", as suggested as last step before running app at "http://niallcblogs.blogspot.nl/2009/06/auto-refreshing-adf-chart-objects-in.html".
(I am trying to implement application from this page only.)
Incomplete Stack trace for exception is:
(Tell me if complete stack trace information required.)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7290)
     at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1227)
     at oracle.jbo.server.ViewRowSetImpl.refreshCollection(ViewRowSetImpl.java:1365)
     at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1400)
     at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1319)
     at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1304)
     at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7211)
     at oracle.adf.model.bc4j.DCJboDataControl.executeIteratorBindingIfNeeded(DCJboDataControl.java:1366)
     at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2219)
     at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:92)
     at oracle.adfinternal.view.faces.dvt.model.binding.common.BindingKeyChangeHandler.setBinding(BindingKeyChangeHandler.java:52)
at oracle.jbo.server.BaseSQLBuilderImpl.registerDatabaseChangeListener(BaseSQLBuilderImpl.java:4302)
     at oracle.jbo.server.ViewObjectImpl.registerDatabaseChangeListener(ViewObjectImpl.java:22152)
     at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1206)
     at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:913)
     at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7282)
     at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1227)
     at oracle.jbo.server.ViewRowSetImpl.refreshCollection(ViewRowSetImpl.java:1365)
     at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1400)
     at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1319)
     at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1304)
     at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7211)
     at oracle.adf.model.bc4j.DCJboDataControl.executeIteratorBindingIfNeeded(DCJboDataControl.java:1366)
     at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2219)
     at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:92)
Edited by: 996574 on May 28, 2013 1:22 PM
Edited by: 996574 on May 28, 2013 1:28 PM

try
InputStream byteIS = (InputStream) boReportClientDocument.getPrintOutputController().export(ReportExportFormat.PDF);
instead. Casting to ByteArrayInputStream gives cast exception XI 3.1 SP4. Also if you look at the API specification the exort method returns object of InputStream only. This should not have any effect on how you want to display or save the stream to a disk file.

Similar Messages

  • Java.lang.NoClassDefFoundError when doing Setting Up the Trading Partner

    i am getting
    Error - Unhandled Exception
    Setting Up the Trading Partner
    System Error : java.lang.NoClassDefFoundError
    while doing trading partner Create Communication Capability.

    Hi Ramesh,
    Thanks,
    I tried restart and , value of Calsspath. that didnt helped.
    i was running short of time so i have gone for install in new oracle home, this is working fine.
    Thanks,
    Varun

  • Binds 2 Observable Lists throwing java.lang.UnsupportedOperationException

    Below is a simple code
    private ListProperty<String> list = new SimpleListProperty<>();
    private ListProperty<String> list2 = new SimpleListProperty<>();
    Bindings.bindContentBidirectional(list,list2);
    I want to bind both the Lists. But for some reason it throws: java.lang.UnsupportedOperationException at the Bindings Line.
    What is the issue with it?

    SimpleListProperty implements ObservableList, so the types are just fine.
    The problem is that the default constructor new SimpleListProperty() creates a ListProperty that wraps an empty list; effectively it's equivalent to
    new SimpleListProperty(FXCollections.emptyObservableList());
    The list returned by FXCollections.emptyObservableList() is unmodifiable; the binding will attempt to call setAll(...) on one of the lists (passing the content of the other). Of course, an unmodifiable list will throw an UnsupportedOperationException when you try to set elements in it.
    You need to create the SimpleListProperty with a modifiable list:
    private ListProperty<String> list = new SimpleListProperty<>(FXCollections.<String>observableArrayList());
    private ListProperty<String> list2 = new SimpleListProperty<>(FXCollections.<String>observableArrayList());
    Bindings.bindContentBidirectional(list,list2);

  • DocumentBuilderFactory.setSchema() java.lang.UnsupportedOperationException

    Hello,
    When I call setSchema() on a JAPX DocumentBuilderFactory object, I get the following exception:
    Exception in thread "main" java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"
    at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFactory.java:561)
    After doing some research, I found the problem could be related to the classpath being incorrectly set to an older version of JAXP implementation. JDK 6 is the only sdk I have installed on this machine, so I don't understand how an older version could be messing things up.
    I'm using Netbeans 5.5. Does anyone know how to go about solving this?
    Thanks!

    NO. I am not trying to assign a new key to Map.
    After Retrieving KeySet from Map, 'set' is just a normal Set which contains collection of object and i am trying to add another object to this collection.
    This is the requirement , please do suggest.
    Cheers,
    Abhay Kumar

  • Java.lang.NullPointerException when trying to start UM

    I get java.lang.NullPointerException when I try to start Unified Messaging using EM on a new Windows 2000 single-box installation. Has anyone enountered this problem?

    I have also encountered same issue. Please let me know the solution in case you find it.
    In fact after configuiring Oracle files as per the document provided at Oracle OTN site 'Collaboration handbook', I am unable to connect OID. As per log it says
    2003/04/01:20:37:58[Oidmon]: Unable to connect to database, will retry after 20 sec
    2003/04/01:21:20:21Starting Monitor Process, PID=2920
    2003/04/01:21:20:21ORACLE_SID not set, setting to iasdb
    2003/04/01:21:41:22Failed to fetch Process Table. ORA-12571: TNS:packet writer failure
    I checked Listener, which was found ok, then I checked TNSPING, which executed ok.
    I have dowloaded documents troubleshooting OID, but no success. The document itself says that architecture of OID is fairly complex and the log does not suggest much insight.
    Any solution?
    Regards,
    Vipul

  • Java.lang.UnsupportedOperationException Error in WAD Template

    Hi Frnds,
    My WAD Template and the default template to execute Query is working fine for all the Query. But there is only one Query For which when am trying to execute it in portal it's working fine for some selection(when there is no data) and for some selection criteria it's showing "500 Internal Server Error - java.lang.UnsupportedOperationException" error. But the Query is working fine in the TCODE-RSRT.
    500 Internal Server Error
    Information for Administrator:
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with SAP NetWeaver  7.0 Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1164789.
    2. Please ensure that NetWeaver  Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,
    Required information for reproduction  according to note 948490.
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause:
    The initial exception that caused the request to fail was:  
    java.lang.UnsupportedOperationException
    java.lang.UnsupportedOperationException
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.selector.selection.ComponentList.getSingleMembers(ComponentList.java:987)
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.selector.MemberAccessComparator.prepare(MemberAccessComparator.java:91)
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxisTupleElementComparator.prepare(RsAxisTupleElementComparator.java:43)
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.QvSorting.prepareForTupleElementSorting(QvSorting.java:317)
    at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.sortTuples(RsAxis.java:2013)
    So please help

    Hi,
    please implement the ABAP correction of note:
    1413377 :    java.lang.UnsupportedOperationException
    Import Support Package 22 for SAP NetWeaver 7.0 BI Java into your
    BI system.
    The Support Package is available when Note 1404367 "SAPBINEWS 7.0
    BI JAVA Support Package 22", which describes this Support Package
    in more detail, is released for customers.
    In urgent cases, you can implement the correction instructions by
    applying BI Java patches:
    Apply the BI Java patch Support Package 20 Patch 30 for SAP
    NetWeaver 7.0 BI Java to your BI system.
    Support Package 20 Patch 30 is available when Note 1404370
    "Released -  NW 7.0 Support Package Stack 20 Patch 30 note for BI
    Java", which describes this patch in more detail, has been
    released for customers.
    See Note 1033246 for the planned delivery dates of all BI Java
    patches.
    Regards,
    Venkat
    Edited by: Venkadesh S on Sep 23, 2011 5:12 PM

  • Java.lang.OutofMemory when i call webservices

    Hi,
    I am passing an xml document as byte stream to the
    web-service method.
    I get java.lang.outofmemoryerror when the xml file size is
    larger (say greater than 1MB.).
    But i am able to parse the xml file in the jsp page.
    I also tried to change the heap size in the run.conf file
    as follows:
    JAVA_OPTS="-server -Xms128m -Xmx512m"
    Is there any option to be set in jboss to solve this
    issue.
    I am using JBoss3.0 bundled with Tomcat and with Axis
    implemented in it as a service
    Regards,
    mani.

    Hi Mani,
    I'm having having the same problem.
    Could you solve it?
    I also tried to widen my head and my application is running perfectly when I save the file not using a web service.
    If you have any solution, could you please tell me, how you solved it? This would be great!
    Thanks a lot.
    Steffi

  • Java.lang.UnsupportedOperationException

    Hi,
    I am trying to run JAXR Examples but its showing the following when i try to publish organization in IBM UDDI registry
    Created connection to registry
    Got registry service, query manager, and life cycle manager
    got registry authorizations
    javax.xml.registry.JAXRException: java.lang.UnsupportedOperationException
    at com.sun.xml.registry.uddi.RegistryServiceImpl.jaxmSend(Unknown Source)
    at com.sun.xml.registry.uddi.RegistryServiceImpl.send(Unknown Source)
    at com.sun.xml.registry.uddi.Processor.processRequest(Unknown Source)
    at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
    at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
    at JAXRPublish.executePublish(JAXRPublish.java:212)
    at JAXRPublish.main(JAXRPublish.java:54)
    Caused by: java.lang.UnsupportedOperationException
    at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactory Impl.java:52)
    Its throwing the exception when executing connection.setCredentials(creds);
    Does anyone have any idea why this is happening..everything was fine and the organization was being published successfully but all of a sudden the code has started throwin this exception which i am unable to resolve...i am using JDK1.4 on windows 2000 on LAN.
    Thanks.

    No there has been no changes in the code but i was working in windows 2000 before when the programs were working, when i switched to windows XP and none of the JAXR programs would work on any of the systems..i have tried switching my computer back to windows 2000 but all invain..the programs are still throwing the same exception ... plz help :(

  • Java.lang.UnsupportedOperationException: csEX

    Hi ,
    I have a problem with Business Explorer 4.0 SP7 when I try to create new information space sing a UNX as datasource, I get this error
    The creation of the data source object tree failed.
    [] <java.lang.UnsupportedOperationException: csEX>
    Our landscape is:
    Note: These are new installations
    1 server (solaris) business obejcts platform 4.0 sp7 (no patch)
    1 server (windows) business explorer/mobile 4.0 sp7 (in DMZ) (no patch)
    do you have any idea?
    This error happens with all UNX (new and migrated) but no with excel sheets
    The log of Explorer Master Server is attached.
    This error happends with all the users including the Administrator.
    Regards
    Andy

    also, this could be indicative of a problem with the APS servers which handle the universe outline (in the same way as when serving Webi)
    so, the data access/connectivity services, and data federation services (both in the APS) especially need to be monitored.  you could try creating a new instance of each, or recreating the APS as a whole (not recommended to leave it as an untuned default, but may help isolate the problem once you shutdown the existing APSs)
    regards,
    H

  • Java.lang.UnsupportedOperationException in DefaultContext.loadEnvironment()

    Getting below exception inconsistently, when i run the page. Could someone let me know, why this comes? and how to resolve it?
    08/06/22 14:23:29 [1551] Failed to create BindingContainer from reference :jsps_serviceprovidernegotiationPageDef
    08/06/22 14:23:29 [1552] java.lang.UnsupportedOperationException
         at oracle.adf.share.DefaultContext.loadEnvironment(ADFContext.java:558)
         at oracle.adf.share.ADFContext.getEnvironment(ADFContext.java:349)
         at oracle.jbo.http.HttpSessionCookieProperties.get(HttpSessionCookieProperties.java:56)
         at oracle.jbo.http.HttpSessionCookieFactory.createSessionCookie(HttpSessionCookieFactory.java:120)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:452)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:141)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:222)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:76)
         at oracle.adf.model.BindingContext.get(BindingContext.java:457)
         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:483)
         at oracle.adf.model.binding.DCBindingContainer.release(DCBindingContainer.java:1913)
         at oracle.adf.model.binding.DCDataControl.release(DCDataControl.java:1551)
         at oracle.adf.model.bc4j.DCJboDataControl.release(DCJboDataControl.java:468)
         at oracle.adf.model.binding.DCDataControl.release(DCDataControl.java:1482)
         at oracle.adf.model.BindingContext.release(BindingContext.java:270)
         at oracle.adf.model.servlet.HttpBindingContext.valueUnbound(HttpBindingContext.java:36)
         at com.evermind.server.http.EvermindHttpSession.destroy(EvermindHttpSession.java:454)
         at com.evermind.server.http.HttpApplication.invalidateSession(HttpApplication.java:871)
         at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:396)
         at com.evermind.server.http.SessionAsyncInvalidateHandler.invalidateSession(SessionAsyncInvalidateHandler.java:178)
         at com.evermind.server.http.SessionAsyncInvalidateHandler.run(SessionAsyncInvalidateHandler.java:138)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Thanks
    JP

    JP/Frank - thought I'd update this thread.
    I get the error when the HTTP session times out. My JDev was just sitting there, doing nothing (v 10.1.3.3) while I was off working on something else, and I got this stack trace:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.UnsupportedOperationException, msg=null
         at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:76)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)
         at oracle.adf.model.BindingContext.get(BindingContext.java:483)
         at oracle.adf.model.binding.DCBindingContainer.release(DCBindingContainer.java:1913)
         at oracle.adf.model.binding.DCDataControl.release(DCDataControl.java:1551)
         at oracle.adf.model.bc4j.DCJboDataControl.release(DCJboDataControl.java:468)
         at oracle.adf.model.binding.DCDataControl.release(DCDataControl.java:1482)
         at oracle.adf.model.BindingContext.release(BindingContext.java:270)
         at oracle.adf.model.servlet.HttpBindingContext.valueUnbound(HttpBindingContext.java:36)
         at com.evermind.server.http.EvermindHttpSession.destroy(EvermindHttpSession.java:454)
         at com.evermind.server.http.HttpApplication.invalidateSession(HttpApplication.java:871)
         at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:396)
         at com.evermind.server.http.SessionAsyncInvalidateHandler.invalidateSession(SessionAsyncInvalidateHandler.java:178)
         at com.evermind.server.http.SessionAsyncInvalidateHandler.run(SessionAsyncInvalidateHandler.java:138)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.lang.UnsupportedOperationException
         at oracle.adf.share.DefaultContext.loadEnvironment(ADFContext.java:558)
         at oracle.adf.share.ADFContext.getEnvironment(ADFContext.java:349)
         at oracle.jbo.http.HttpSessionCookieProperties.get(HttpSessionCookieProperties.java:56)
         at oracle.jbo.http.HttpSessionCookieFactory.createSessionCookie(HttpSessionCookieFactory.java:120)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:452)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:141)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:222)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:76)
         at oracle.adf.model.BindingContext.get(BindingContext.java:457)
         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:483)
         at oracle.adf.model.binding.DCBindingContainer.release(DCBindingContainer.java:1913)
         at oracle.adf.model.binding.DCDataControl.release(DCDataControl.java:1551)
         at oracle.adf.model.bc4j.DCJboDataControl.release(DCJboDataControl.java:468)
         at oracle.adf.model.binding.DCDataControl.release(DCDataControl.java:1482)
         at oracle.adf.model.BindingContext.release(BindingContext.java:270)
         at oracle.adf.model.servlet.HttpBindingContext.valueUnbound(HttpBindingContext.java:36)
         at com.evermind.server.http.EvermindHttpSession.destroy(EvermindHttpSession.java:454)
         at com.evermind.server.http.HttpApplication.invalidateSession(HttpApplication.java:871)
         at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:396)
         at com.evermind.server.http.SessionAsyncInvalidateHandler.invalidateSession(SessionAsyncInvalidateHandler.java:178)
         at com.evermind.server.http.SessionAsyncInvalidateHandler.run(SessionAsyncInvalidateHandler.java:138)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)Best,
    john

  • Java.lang.StringIndexOutOfBoundsException when trying to create a JDBC pool connection.

    Hi, I get a java.lang.StringIndexOutOfBoundsException when making a JDBC
    pool connection via the console of WLS 7.0. I use SQL Server 2000 in Win2K
    SP2 environment. Exactly the same configuration works perfectly in WinXP
    Pro. Can anyone advise me what might cause this problem? Thanks a lot.
    Log message
    ####<May 13, 2002 5:15:52 PM CEST> <Error> <JDBC> <abcdefgh> <vtsserver>
    <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <kernel
    identity> <> <001060> <Cannot startup connection pool
    "ejbTestConnectionPool" java.lang.StringIndexOutOfBoundsException: String
    index out of range: -1>
    Exception
    java.lang.NullPointerException
    at
    weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
    53)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
    MBeanAction.java:210)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
    ditMBeanAction.java:188)
    at
    weblogic.management.console.actions.internal.InternalActionContext.setAction
    (InternalActionContext.java:158)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:170)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.utils.NestedRuntimeException - with nested exception:
    [java.lang.NullPointerException]
    at
    weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
    56)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
    MBeanAction.java:210)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
    ditMBeanAction.java:188)
    at
    weblogic.management.console.actions.internal.InternalActionContext.setAction
    (InternalActionContext.java:158)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:170)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.management.console.actions.ActionException - with nested exception:
    [weblogic.utils.NestedRuntimeException - with nested exception:
    [java.lang.NullPointerException]]
    at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:38)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:190)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Current Date
    Mon May 13 17:15:52 CEST 2002
    Console Release Build
    null
    Console Build
    null
    Server Release Build
    7.0.0.0
    Server Build
    WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
    All Server Product Versions
    WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
    WebLogic XMLX Module 7.0 Thu Apr 25 17:26:07 PDT 2002 180709
    Request Info
    Protocol: HTTP/1.1
    ServerName: localhost
    ServerPort: 7001
    Secure: false
    ContextPath: /console
    ServletPath: /common/error.jsp
    QueryString:
    MBean=vtsdomain%3AName%3DejbTestConnectionPool%2CType%3DJDBCConnectionPool
    PathInfo: null
    PathTranslated: null
    RequestURI: /console/common/error.jsp
    AuthType: null
    ContentType: application/x-www-form-urlencoded
    CharacterEncoding: null
    Locale: en_US
    Method: POST
    Session:
    weblogic.servlet.internal.session.MemorySessionData@1926bd
    RequestedSessionId:
    8fMghRfnkcOls1wsW0vIRS8PuQKquWoYcnt6ciUG5uznDJiLr1ZA!-37849198!1021299872710
    RequestedSessionIdFromCookie: true
    RequestedSessionIdFromURL: false
    UserPrincipal: vts
    RemoteUser: vts
    RemoteAddr: 127.0.0.1
    RemoteHost: 127.0.0.1
    Parameters
    MBean = vtsdomain:Name=ejbTestConnectionPool,Type=JDBCConnectionPool
    chosen_wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.
    Targets-Server = vtsdomain:Name=vtsserver,Type=Server
    weblogic.console.submit_form = dataposted
    wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.Targets
    -Server = vtsdomain:Name=vtsserver,Type=Server
    Attributes
    wlinternalaction =
    weblogic.management.console.actions.internal.InternalActionContext@4372d8
    java.util.Locale = en_US weblogic.management.console.catalog.Catalog =
    weblogic.management.console.catalog.XmlCatalog@3ca759
    weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0
    (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) IE: true Netscape:
    false Supported: true JavscriptHrefs: false TableCellClick: true
    DocumentReloadedOnResize: false DropdownStretchable: true CellSpacingBlank:
    false EmptyCellBlank: false ImgOnclickSupported: true TableBorderFancy: true
    PartialToWideTables: false DisabledControlSupported: true
    weblogic.management.console.helpers.DebugHelper =
    weblogic.management.console.helpers.DebugHelper@16ed83
    weblogic.management.console.helpers.UnitsHelper =
    weblogic.management.console.helpers.UnitsHelper@ae2d9
    weblogic.management.console.helpers.UrlHelper =
    weblogic.management.console.helpers.UrlHelper@28fd41
    Headers
    Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
    application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
    */* Accept-Encoding = gzip, deflate Accept-Language = en-us Cache-Control =
    no-cache Connection = Keep-Alive Content-Length = 304 Content-Type =
    application/x-www-form-urlencoded Cookie =
    ADMINCONSOLESESSION=8fMghRfnkcOls1wsW0vIRS8PuQKquWoYcnt6ciUG5uznDJiLr1ZA!-37
    849198 Host = localhost:7001 Referer =
    http://localhost:7001/console/actions/mbean/DoEditMBeanAction?MBean=vtsdomai
    n%3AName%3DejbTestConnectionPool%2CType%3DJDBCConnectionPool User-Agent =
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)
    BrowserInfo
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
    .NET CLR 1.0.3705)
    IE: true
    Netscape: false
    Supported: true
    JavscriptHrefs: false
    TableCellClick: true
    DocumentReloadedOnResize: false
    DropdownStretchable: true
    CellSpacingBlank: false
    EmptyCellBlank: false
    ImgOnclickSupported: true
    TableBorderFancy: true
    PartialToWideTables: false
    DisabledControlSupported: true

    Thanks, Joe. It works now!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >
    Vladimir wrote:
    Here are the definitions of the two pools - both encounter the same
    problem:
    <JDBCConnectionPool DriverName="weblogic.jdbc.mssqlserver4.Driver"
    Name="ejbTestConPool"
    Properties="db=ejbTest;user=sa;port=1433;password=test;server=localhost"
    TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
    TestTableName="accounts" URL="weblogic:jdbc:mssqlserver4"/>yep, as I thought. A JDBC URL always starts with 'jdbc'. It should be
    'jdbc:weblogic:mssqlserver4'. Also, make TestConnectionsOnRelease="false"
    (it's a waste of cycles).
    Joe
    <JDBCConnectionPool DriverName="weblogic.jdbc.mssqlserver4.Driver"
    Name="ejbTestConnectionPool" Password="{3DES}sCmdDszi61I="
    Properties="user=sa;db=ejbTest;port=1433;password=test;server=localhost"
    Targets="vtsserver" TestTableName="accounts"
    URL="weblogic:jdbc:mssqlserver4"
    XAPassword="{3DES}sCmdDszi61I="/>
    >>
    Vladimir
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    show us your pool definitions from the config.xml file. There's
    probably a
    problem
    with the URL or properties.
    Joe
    Vladimir wrote:
    Hi, I get a java.lang.StringIndexOutOfBoundsException when making a
    JDBC
    pool connection via the console of WLS 7.0. I use SQL Server 2000in
    Win2K
    SP2 environment. Exactly the same configuration works perfectly in
    WinXP
    Pro. Can anyone advise me what might cause this problem? Thanks alot.
    >>>>
    Log message
    ####<May 13, 2002 5:15:52 PM CEST> <Error> <JDBC> <abcdefgh><vtsserver>
    <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'><kernel
    identity> <> <001060> <Cannot startup connection pool
    "ejbTestConnectionPool" java.lang.StringIndexOutOfBoundsException:String
    index out of range: -1>
    Exception
    java.lang.NullPointerException
    at
    weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
    53)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
    MBeanAction.java:210)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
    ditMBeanAction.java:188)
    at
    weblogic.management.console.actions.internal.InternalActionContext.setAction
    (InternalActionContext.java:158)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:170)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.utils.NestedRuntimeException - with nested exception:
    [java.lang.NullPointerException]
    at
    weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
    56)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
    MBeanAction.java:210)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
    ditMBeanAction.java:188)
    at
    weblogic.management.console.actions.internal.InternalActionContext.setAction
    (InternalActionContext.java:158)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:170)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.management.console.actions.ActionException - with nestedexception:
    [weblogic.utils.NestedRuntimeException - with nested exception:
    [java.lang.NullPointerException]]
    atweblogic.management.console.actions.ErrorAction.(ErrorAction.java:38)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:190)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Current Date
    Mon May 13 17:15:52 CEST 2002
    Console Release Build
    null
    Console Build
    null
    Server Release Build
    7.0.0.0
    Server Build
    WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
    All Server Product Versions
    WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
    WebLogic XMLX Module 7.0 Thu Apr 25 17:26:07 PDT 2002 180709
    Request Info
    Protocol: HTTP/1.1
    ServerName: localhost
    ServerPort: 7001
    Secure: false
    ContextPath: /console
    ServletPath: /common/error.jsp
    QueryString:
    MBean=vtsdomain%3AName%3DejbTestConnectionPool%2CType%3DJDBCConnectionPool
    PathInfo: null
    PathTranslated: null
    RequestURI: /console/common/error.jsp
    AuthType: null
    ContentType: application/x-www-form-urlencoded
    CharacterEncoding: null
    Locale: en_US
    Method: POST
    Session:
    weblogic.servlet.internal.session.MemorySessionData@1926bd
    RequestedSessionId:
    8fMghRfnkcOls1wsW0vIRS8PuQKquWoYcnt6ciUG5uznDJiLr1ZA!-37849198!1021299872710
    RequestedSessionIdFromCookie: true
    RequestedSessionIdFromURL: false
    UserPrincipal: vts
    RemoteUser: vts
    RemoteAddr: 127.0.0.1
    RemoteHost: 127.0.0.1
    Parameters
    MBean = vtsdomain:Name=ejbTestConnectionPool,Type=JDBCConnectionPool
    chosen_wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.
    Targets-Server = vtsdomain:Name=vtsserver,Type=Server
    weblogic.console.submit_form = dataposted
    wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.Targets
    -Server = vtsdomain:Name=vtsserver,Type=Server
    Attributes
    wlinternalaction =
    weblogic.management.console.actions.internal.InternalActionContext@4372d8
    java.util.Locale = en_US weblogic.management.console.catalog.Catalog=
    weblogic.management.console.catalog.XmlCatalog@3ca759
    weblogic.management.console.helpers.BrowserHelper = User-Agent:Mozilla/4.0
    (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) IE: trueNetscape:
    false Supported: true JavscriptHrefs: false TableCellClick: true
    DocumentReloadedOnResize: false DropdownStretchable: trueCellSpacingBlank:
    false EmptyCellBlank: false ImgOnclickSupported: true
    TableBorderFancy:
    true
    PartialToWideTables: false DisabledControlSupported: true
    weblogic.management.console.helpers.DebugHelper =
    weblogic.management.console.helpers.DebugHelper@16ed83
    weblogic.management.console.helpers.UnitsHelper =
    weblogic.management.console.helpers.UnitsHelper@ae2d9
    weblogic.management.console.helpers.UrlHelper =
    weblogic.management.console.helpers.UrlHelper@28fd41
    Headers
    Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
    application/vnd.ms-excel, application/vnd.ms-powerpoint,application/msword,
    */* Accept-Encoding = gzip, deflate Accept-Language = en-usCache-Control =
    no-cache Connection = Keep-Alive Content-Length = 304 Content-Type =
    application/x-www-form-urlencoded Cookie =
    ADMINCONSOLESESSION=8fMghRfnkcOls1wsW0vIRS8PuQKquWoYcnt6ciUG5uznDJiLr1ZA!-37
    849198 Host = localhost:7001 Referer =
    http://localhost:7001/console/actions/mbean/DoEditMBeanAction?MBean=vtsdomai
    n%3AName%3DejbTestConnectionPool%2CType%3DJDBCConnectionPoolUser-Agent
    =
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
    1.0.3705)
    BrowserInfo
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; WindowsNT
    5.0;
    .NET CLR 1.0.3705)
    IE: true
    Netscape: false
    Supported: true
    JavscriptHrefs: false
    TableCellClick: true
    DocumentReloadedOnResize: false
    DropdownStretchable: true
    CellSpacingBlank: false
    EmptyCellBlank: false
    ImgOnclickSupported: true
    TableBorderFancy: true
    PartialToWideTables: false
    DisabledControlSupported: true

  • Help,Urgent:java.lang.UnsupportedOperationException

    Hi..
    my project works fine in JDK1.4 and when i migrate it to JDk5.0, java.lang.UnsupportedOperationException is cought with in no time when iam rebulding the project in JBuilder10.0 and messge is " 1 error and 0 file(s) built ". what should i do?i did all required changes in PATH and CLASSPATH.Plzzzz...help...
    thanks in advance..
    vinod.

    It is the project file(.jpx) and it has more than 1000 files in it..and it is completely applet application.. and it is not even showing what operation is unsupported..when i change to JDK1.4 ,it is working fine..the moment i shfted to jdk5.0 and try to rebuild it is giving "java.lang.UnsupportedOperationException" and it is not giving any other info.now..any one plz..help..

  • Java.lang.NullPointerException when trying to compile

    Hi everybody!
    I'm trying to compile a file using javax.tools.JavaCompiler but I get a java.lang.NullPointerException when running the program.
    Here is my code:
    public boolean CompExecFile(File filename){
              boolean compRes = false;
              try {
                   System.out.println(filename.getAbsolutePath());
                   JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
                   StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null); //line where I get the error
                   Iterable<? extends JavaFileObject> compilationUnits2 = fileManager.getJavaFileObjects(filename);
                   compRes = compiler.getTask(null, fileManager, null, null, null, compilationUnits2).call();
                   fileManager.close();
                 if (compRes) {
                     System.out.println ("Compilation was successful");
                 } else {
                     System.out.println ("Compilation failed");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return compRes;
         }There error on the line "StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);":
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException+
    I've seen several examples using the parameters "null,null,null" but I don't know if it's good :(
    Many thanks for your help.

    I've found something which could maybe be what I need to do but I'm not sure:
    // Build a new ClassLoader using the given URLs, replace current Classloader
    ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
    ClassLoader newCL = new URLClassLoader(myClasspathURLs, oldCL);
    Thread.currentThread().setContextClassLoader(newCL);
    System.out.println("Successfully replaced ClassLoader");
    Class fooClass = newCL.loadClass(appClass); //which replaces the line "Class<?> tempFileClass = Class.forName("TempFile");" ?!Is that what I need to do?
    EDIT: I've tried that but I still have the same problem:
                      File classFile = new File ("TempFile.class");
                      ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
                      ClassLoader newCL = new URLClassLoader(new URL[] {classFile.toURL()}, oldCL);
                      Thread.currentThread().setContextClassLoader(newCL);
                      System.out.println("Successfully replaced ClassLoader");
                      Class tempFileClass = newCL.loadClass("TempFile");
                      Method main = tempFileClass.getMethod("main", String[].class);
                      main.invoke(null,new String[0]); Edited by: Foobrother on Jul 28, 2008 8:18 AM

  • Java.lang.NullPointerException when deploying a PIA

    I am having a problem deploying a PIA on PeopleTools 8.45.18 on Solaris 8 using WebLogic 8.1 sp 3. The error I experience is java.lang.NullPointerException when I run this command:
    ./setup.solaris -console -is:log /var/temp/piainstall.log
    InstallShield Wizard
    Initializing InstallShield Wizard...
    Searching for Java(tm) Virtual Machine...
    Welcome to the InstallShield Wizard for PeopleSoft Internet Architecture.
    Using the InstallShield Wizard you will install PeopleSoft Internet
    Architecture on your computer.
    Version: 8.45.18
    Note: If installing onto a BEA WebLogic Server, make sure to shutdown any
    running web servers to avoid web server corruption.
    Select Next to continue or Cancel to exit.
    Press 1 for Next, 3 to Cancel or 4 to Redisplay [1]
    Choose the setup type that best suits your needs.
    [X] 1 - BEA WebLogic Server
    [ ] 2 - IBM WebSphere Server
    To select an item enter its number, or 0 when you are finished: [0]
    Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]
    Please select the configuration to install.
    [X] 1 - Single Server Domain
    [ ] 2 - Multi Server Domain
    [ ] 3 - Distributed Managed Server
    To select an item enter its number, or 0 when you are finished: [0] 2
    Enter 0 to continue or 1 to make another selection: [0]
    Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]
    java.lang.NullPointerException
    An error occurred during wizard bean change notification:
    java.lang.NullPointerException
    at PSChangeSharedLibPermission.PSSearchAndSet(PSChangeSharedLibPermission.java:67)
    at PSChangeSharedLibPermission.execute(PSChangeSharedLibPermission.java:53)
    at com.installshield.wizard.StandardWizardListener.execute(StandardWizardListener.java:123)
    at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:106)
    at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1564)
    any thoughts...

    please let me know if you have configured any RPS for the same.i faced a similar issue while i was trying to create an instance taken from oracle export dump taken from one of our client.our error got resolved when we changed the web profile to PROD. More often than not this is an issue with the webprofile. try changing the web profile one by one from dev to test to prod and kiosk.
    if none of these resolves the issue, try ruuning version app engine program. this will update the ppltools version. in correct version may also some times cause this issue.
    Please let me know if you have configured ldap.

  • Java.lang.NullPointerException when doing SQL on ms access

    I am trying to perform Insert and delete commands on an access database and I continue to get a java.lang.NullPointerException when performing the action. Everything is fine when i do a Select * FROM..., I am able to read all of the information I ask for, but when performing the Insert/Delete commands I get the error. Any help would be appreciated, I will copy and past a portion of my code below. All of the fields and variable types match with what is in the database.
    public void executeAddSecretary() throws SQLException{
    String a,b;
    a= txtSecLname.getText();
    b= txtSecFname.getText();
    statement.execute("INSERT INTO Contact_Sec (Sec_Lname,Sec_Fname) Values ('" + a + "', '" + b + "')");
    System.out.println("updated Secretary");
    public void executeDeleteContact() throws SQLException{
    String a = "a";
    statement.execute("DELETE FROM Contact WHERE Lname = ('" + a + "')");
    System.out.println("deleted contact");
    Thanks to anyone who can help me out.

    1) Use prepared statement instead of statement.
    2) Do like this ...
    PreparedStatement prepStmt = null;
    try
         String query="INSERT INTO Contact_Sec (Sec_Lname,Sec_Fname) Values (?,?)");
         prepStmt = connection.prepareStatement(query);
         prepStmt.setString(1, value1);
         prepStmt.setString(2, value2);
         prepStmt.executeUpdate();
    catch (SQLException e)
         throw e;
    catch (Exception e)
         throw e;
    finally
         try
              if (prepStmt != null)
                   prepStmt.close();
         } catch (Exception e) {}
         try
              if (connection != null)
                   connection.close();
         } catch (Exception e) {}
    }3) If you still get the null exception then put step wise System.out's
    and debug it.
    -Rohit

Maybe you are looking for

  • Ticker View

    Hi, I want to show the data in Ticker view like this Item1: XXX ($YYY) Item2: AAA ($BBB) How can we do this. Actually i am getting the data like this now Item1:XXX$YYY Item2:AAA$BBB) Thanks

  • Unable to declare Task T method in Interface

    I have a class Employee which inherits from abstract class MyAbstractClass<T> Employee : MyAbstractClass<Employee>, IEmployee There is a method on abstract class which operates on runtime type T supplied to abstract class : public async Task<T> AddSo

  • Text box mirroring

    Is there a way to get Pages.app to print a single 4 page document with two different page layouts? I want to create a single, 4 page, 2 sided document and have the liberty of printing in page order of 1,2,3,4 and 4,1,2,3. If not, then is there a way

  • How to close the command prompt

    Hi, I am new to Java. I am using Swing. i used System.exit(0) to close my frame when a condition is met. But the command prompt is not closed. How do i close that automatically

  • Printing in 16 Bit

    Is it possible to print in 16 bit within lightroom using the XPS driver?