ClassCastException when using formsgraph.jar

We are using Bean areas using oracle.forms.demos.bigraph.FormsGraph as the Implementation Class. But we get this excpetion always.
java.lang.ClassCastException: java.lang.Boolean
     at oracle.forms.demos.bigraph.FormsGraph.setProperty(FormsGraph.java:1824)
     at oracle.forms.handler.ComponentItem.setCustomProperty(Unknown Source)
     at oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)
     at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)
     at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
     at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
     at oracle.forms.engine.Runform.processMessage(Unknown Source)
     at oracle.forms.engine.Runform.processSet(Unknown Source)
     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
     at oracle.forms.engine.Runform.onMessage(Unknown Source)
     at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
Any ideas?

We are using Bean areas using oracle.forms.demos.bigraph.FormsGraph as the Implementation Class. But we get this excpetion always.
java.lang.ClassCastException: java.lang.Boolean
     at oracle.forms.demos.bigraph.FormsGraph.setProperty(FormsGraph.java:1824)
     at oracle.forms.handler.ComponentItem.setCustomProperty(Unknown Source)
     at oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)
     at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)
     at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
     at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
     at oracle.forms.engine.Runform.processMessage(Unknown Source)
     at oracle.forms.engine.Runform.processSet(Unknown Source)
     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
     at oracle.forms.engine.Runform.onMessage(Unknown Source)
     at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
Any ideas?

Similar Messages

  • When using java -jar does -cp have any significance?

    So we have a classpath that's set from the Manifest but I want to augment that with -cp
    From what I can tell -cp is ignored when you are using the classpath from a Manifest.

    >
    From what I can tell -cp is ignored when you are using the classpath from a Manifest.>No. The -cp option is ignored when using the -jar option.
    So if you do something like..
    REM: old way of launching
    REM: java -jar the.jar arg1 arg2
    java -cp the.jar;...;another.jar the.main.class arg1 arg2..it should work as expected.

  • ClassCastException when using javax.xml.soap.DetailEntry

    I am using the Java Web Services development pack and I'm getting a ClassCastException when trying to use a DetailEntry object.
    My code is basically as follows:
    SOAPFault fault = responseSoapBody.getFault();
    Detail detail = fault.getDetail();
    Iterator iterator = detail.getDetailEntries();
    DetailEntry entry = (DetailEntry)iterator.next(); //exception!!
    Exception:
    java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.dom4j.TextImpl
    The object being returned from the Iterator seems to be a TextImpl. In my CLASSPATH are the jars in the lib directory under <JWSDP>\jwsdp-1_0_01\common\lib.
    Any idea why I'm getting this Exception? Is this a bug in the JWSDP, or in my code?
    Thanks...

    You post has been forwarded to the SAAJ person as it seems
    like a SAAJ exception ... u should be hearing from the
    individual soon
    asengup

  • Problen when using log4j.jar in my web service application

    Hi, i have a little problem. I have to migrate an existing java application to web services, and this application uses log4j.jar. So i put that jar file in the lib dir in WEB-INF. However, when i try to deploy the application, i get an error saying
    org.apache.commons.LoggingException: No suitable Log constructor [LJava.lang.Class;c492c8 for org.apache.commons.logging.impl.Log4JLogger
    And of course if i remove that jar from the lib dir, the app deploys ok, but it crashes because it can't find the class Logger (located in that jar)
    Any ideas how to solve this?????
    Thank you                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    When is the log4j constructor invoked ?....you said you moved the java application to webservice....in the java application they might have initialized the log4j with the log4j properties file some where when they start the application..
    Have a start up servlet which initializes the lof4j.

  • ClassCastException when using OlapiPoolConnDriver

    Hi,
    I was following the instructions of the connection pool sample given in file
    sh_olap/bibeans/connectionpool/connectionPool.html
    in the samples.
    Everything is fine, the connection is fetched from the OlapiPoolConnDriver class.
    But then, when my presentation on the JSP tries to issue the OLAP query, I get the following exception below. It seems that MDMConnectionDriverImpl_92 tries to cast
    the connection to something (maybe OracleConnection), but when using the
    connection pool the connection is actually of type com.evermind.sql.DriverManagerConnectionPoolConnection.
    Any help would be appreciated.
    Thanks a lot
    Kai-Uwe
    07/08/01 20:34:57 java.lang.ClassCastException: com.evermind.sql.DriverManagerConnectionPoolConnection
    07/08/01 20:34:57      at oracle.dss.connection.server.drivers.mdm._92.MDMConnectionDriverImpl_92.connect(MDMConnectionDriverImpl_92.java:139)
    07/08/01 20:34:57      at oracle.dss.connection.server.drivers.mdm._92.MDMConnectionDriverImpl_92.connect(MDMConnectionDriverImpl_92.java:105)
    07/08/01 20:34:57      at oracle.dss.connection.server.drivers.mdm.MDMConnectionDriverImpl.connect(MDMConnectionDriverImpl.java:68)
    07/08/01 20:34:57      at oracle.dss.connection.server.ConnectionImpl.connect(ConnectionImpl.java:285)
    07/08/01 20:34:57      at oracle.dss.connection.client.Connection.connect(Connection.java:499)
    07/08/01 20:34:57      at oracle.dss.connection.client.Connection.connect(Connection.java:416)
    07/08/01 20:34:57      at oracle.dss.metadataManager.client.MetadataManager.setConnectionObjects(MetadataManager.java:4235)
    07/08/01 20:34:57      at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:924)
    07/08/01 20:34:57      at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:840)
    07/08/01 20:34:57      at oracle.dss.datautil.client.XMLManagerFactory.createQueryManager(XMLManagerFactory.java:196)
    07/08/01 20:34:57      at oracle.dss.datautil.client.ManagerFactoryImpl.lookupQueryManager(ManagerFactoryImpl.java:178)
    07/08/01 20:34:57      at oracle.dss.datautil.client.ManagerFactoryImpl.lookupMetadataManager(ManagerFactoryImpl.java:221)
    07/08/01 20:34:57      at oracle.dss.datautil.client.ManagerFactoryImpl.lookupManager(ManagerFactoryImpl.java:128)
    07/08/01 20:34:57      at oracle.dss.addins.thin.common.BaseThinSession.getMetadataManager(BaseThinSession.java:217)
    07/08/01 20:34:57      at oracle.dss.addins.thin.common.BaseThinSession.getQueryManager(BaseThinSession.java:253)
    07/08/01 20:34:57      at oracle.dss.addins.jspTags.TagRequestHandler.getStateManager(TagRequestHandler.java:781)
    07/08/01 20:34:57      at oracle.dss.addins.jspTags.BIThinSession.getStateManager(BIThinSession.java:61)
    07/08/01 20:34:57      at oracle.dss.addins.thin.common.BasePresentationHandler.createBIThinObject(BasePresentationHandler.java:296)
    07/08/01 20:34:57      at oracle.dss.addins.jspTags.PresentationTag.createThinObject(PresentationTag.java:234)
    07/08/01 20:34:57      at oracle.dss.addins.jspTags.BIBaseTag.getThinObject(BIBaseTag.java:79)
    07/08/01 20:34:57      at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:258)
    07/08/01 20:34:57      at secondpage.jspService(secondpage.jsp:10)
    07/08/01 20:34:57      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    07/08/01 20:34:57      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:356)
    07/08/01 20:34:58      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
    07/08/01 20:34:58      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
    07/08/01 20:34:58      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/08/01 20:34:58      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    07/08/01 20:34:58      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    07/08/01 20:34:58      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673)
    07/08/01 20:34:58      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
    07/08/01 20:34:58      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:229)
    07/08/01 20:34:58      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
    07/08/01 20:34:58      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
    07/08/01 20:34:58      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
    07/08/01 20:34:58      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    07/08/01 20:34:58      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    07/08/01 20:34:58      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    07/08/01 20:34:58      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/08/01 20:34:58      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    07/08/01 20:34:58      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    07/08/01 20:34:58      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673)
    07/08/01 20:34:58      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
    07/08/01 20:34:58      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:229)
    07/08/01 20:34:58      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
    07/08/01 20:34:58      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
    07/08/01 20:34:58      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
    07/08/01 20:34:58      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    07/08/01 20:34:58      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    07/08/01 20:34:58      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    07/08/01 20:34:58      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/08/01 20:34:58      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    07/08/01 20:34:58      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    07/08/01 20:34:58      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673)
    07/08/01 20:34:58      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
    07/08/01 20:34:58      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    07/08/01 20:34:58      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
    07/08/01 20:34:58      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
    07/08/01 20:34:58      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    07/08/01 20:34:58      at java.lang.Thread.run(Thread.java:534)
    07/08/01 21:11:22 java.lang.ClassCastException: com.evermind.sql.DriverManagerConnectionPoolConnection
    07/08/01 21:11:22      at oracle.dss.connection.server.drivers.mdm._92.MDMConnectionDriverImpl_92.connect(MDMConnectionDriverImpl_92.java:139)
    07/08/01 21:11:22      at oracle.dss.connection.server.drivers.mdm._92.MDMConnectionDriverImpl_92.connect(MDMConnectionDriverImpl_92.java:105)
    07/08/01 21:11:22      at oracle.dss.connection.server.drivers.mdm.MDMConnectionDriverImpl.connect(MDMConnectionDriverImpl.java:68)
    07/08/01 21:11:22      at oracle.dss.connection.server.ConnectionImpl.connect(ConnectionImpl.java:285)
    07/08/01 21:11:22      at oracle.dss.connection.client.Connection.connect(Connection.java:499)
    07/08/01 21:11:22      at oracle.dss.connection.client.Connection.connect(Connection.java:416)
    07/08/01 21:11:22      at oracle.dss.metadataManager.client.MetadataManager.setConnectionObjects(MetadataManager.java:4235)
    07/08/01 21:11:22      at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:924)
    07/08/01 21:11:22      at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:840)
    07/08/01 21:11:22      at oracle.dss.datautil.client.XMLManagerFactory.createQueryManager(XMLManagerFactory.java:196)
    07/08/01 21:11:22      at oracle.dss.datautil.client.ManagerFactoryImpl.lookupQueryManager(ManagerFactoryImpl.java:178)
    07/08/01 21:11:22      at oracle.dss.datautil.client.ManagerFactoryImpl.lookupMetadataManager(ManagerFactoryImpl.java:221)
    07/08/01 21:11:22      at oracle.dss.datautil.client.ManagerFactoryImpl.lookupManager(ManagerFactoryImpl.java:128)
    07/08/01 21:11:22      at oracle.dss.addins.thin.common.BaseThinSession.getMetadataManager(BaseThinSession.java:217)
    07/08/01 21:11:22      at oracle.dss.addins.thin.common.BaseThinSession.cleanup(BaseThinSession.java:350)
    07/08/01 21:11:22      at oracle.dss.addins.thin.common.BaseThinSession.valueUnbound(BaseThinSession.java:201)
    07/08/01 21:11:22      at com.evermind.server.http.EvermindHttpSession.destroy(EvermindHttpSession.java:312)
    07/08/01 21:11:22      at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:263)
    07/08/01 21:11:22      at com.evermind.server.http.SessionAsyncInvalidateHandler.invalidateSession(SessionAsyncInvalidateHandler.java:173)
    07/08/01 21:11:22      at com.evermind.server.http.SessionAsyncInvalidateHandler.run(SessionAsyncInvalidateHandler.java:133)
    07/08/01 21:11:22      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    07/08/01 21:11:22      at java.lang.Thread.run(Thread.java:534)

    Hi, this one's solved.
    It was my mistake, I accidentally referred to the jdbc/OLAPConnection1PooledDS
    insted of the jdbc/OLAPConnection1CoreDS. This is why I got the evermind..blbla.
    connection.
    Mea culpa ... mea culpa ... mea maxima culpa
    Hang on and thanks to all who had a look at it.
    Kai-Uwe

  • An Exception.java is generated when use wsa.jar

    I used wsa.jar(version:10.1.3) to parse WSDL file: http://api.rakuten.co.jp/rws/soap/GenreSearch/2007-04-11?wsdl ,and the generated java files contains Exception.java.
    The Exception.java file is looks like: public class Exception extends Exception {...}, this would cause compile error.
    Can somebody tell me why?Is it the bug of wsa.jar, and how to fix it.
    Thanks.

    I would say it is a bug, because generated code is not valid. However, I have to say that WSDL file contains quite awkward naming.
    <message name="Exception">
    <part name="fault" element="tns:Exception"/>
    </message>I tried wsdl2java from Axis2 to see the difference and generated class was ExceptionException.java. The result compiles but the class name is ugly.
    Look at documentation for wsa.jar and try to find a switch for mapping that should help you to set a better name for Exception type. Maybe you will find something interesting here:
    http://download.oracle.com/docs/cd/B25221_04/web.1013/b14434/devfromwsdl.htm

  • ClassCastException when using Xalan-j in a servlet

    Hi,
    New to XSLT and Xalan...
    When I run a standalone version of a basic XSL transformation using Xalan-j 2.6.0, it all works as desired. Take a look at the following code snippet :
    ByteArrayOutputStream out;
    Document document;
    DocumentBuilder builder;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    File stylesheet = new File(context.getRealPath("/xml/duties2Email.xsl"));
    File datafile = new File(context.getRealPath("/xml/hospitals.xml"));
    StreamResult result;
    StreamSource stylesource;
    StreamSource datasource;
    String date = (new SimpleDateFormat("dd/MM")).format(new Date());
    Transformer transformer;
    TransformerFactory tFactory;
    out = new ByteArrayOutputStream(500);
    builder = factory.newDocumentBuilder();
    tFactory = TransformerFactory.newInstance();
    stylesource = new StreamSource(stylesheet);
    transformer = tFactory.newTransformer(stylesource);
    datasource = new StreamSource(datafile);
    result = new StreamResult(out);
    transformer.setParameter("date", date);
    transformer.transform(datasource, result);Unfortunately, when I try to run a servlet with exactly the same code, it throws a ClassCastException, please view the following stack trace:
    java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
    at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:135)
    at org.apache.xpath.XPathContext.<init>(XPathContext.java:87)
    at org.apache.xalan.transformer.TransformerImpl.<init>(TransformerImpl.java:370)
    at org.apache.xalan.templates.StylesheetRoot.newTransformer(StylesheetRoot.java:159)
    at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:674)
    at lu.etat.protex.duties.servlet.DutiesControllerServlet.sendEmails(Unknown Source)
    at lu.etat.protex.duties.servlet.DutiesControllerServlet.doGet(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
    Does anybody know where the mistake could come from ?
    Thanks in advance,
    R&eacute;gis Kuckaertz

    Turned out that I had a version of xsltc.jar in my WEB-INF/lib. When I removed it the problem went away.So I'm sure it had to do with a library mismatch. I am using JBoss 4.1.
    -Rich

  • BUG: 11g problem when using orabpel.jar for tasklist page

    Hi,
    Using 11g i created a BC view object to show a BPEL/Workflow tasklist. Using the SOAP_CLIENT method i got this working. When i test my view object with the business component tester it works. When i create a taskflow with a page fragment that has a table based on the view object it is not working. I need to deploy (among others) the orabpel.jar library with the application because my view object implementation depends on it. As soon as i run the application however with the orabpel.jar deployed the browser keeps showing the Loading image but refuses to continue to load. I also do not get any error in the console or the domain and server log files. It looks like there is a problem with some classes in the orabpel.jar that get in the way of weblogic adf libraries.
    Does anybody have experience with 10.1.3 orabpel.jar library in combination with the new 11g weblogic stack? Can i somehow configure class loading in a way that weblogic classes have preference over orabpel.jar classes if they exist? Is there a way to increase logging so i can trace at what point the problem occurs? Any help would be greatly appreciated.
    Kind Regards,
    Andre
    Edited by: AJochems (Redora) on Nov 18, 2008 2:08 PM

    Hi,
    Traced the problem to be related to the use of ADF XML menus. When i remove them the problem disappears. So i have traced the problem although i still do not exactly know what is causing it. Since there are a lot of redundant (probably altered versions) of classes in the orabpel.jar library one of them gets in the way with a weblogic class that is used while rendering the ADF Menu. The problem should be reproducible if you create a menu based on the model of an adf menu and add the orabpel.jar to your deployment.
    Kind Regards,
    Andre

  • ClassCastException when using DefaultTableModel.getValueAt to get data

    Hi,
    I'm using JTable to display,add and edit customers informantion in my project, the properties of each customer is displayed in corresponding cloumns in one row. The properies consist of id(Integer), name(String)...etc, it works fine when I set and get the properties of existing customer information into the DefaultJTableModel(dm for short) of the table I created, but when I added the new row using dm.addRow() and get the information typed in manually, an exception of ClassCastException was raised
    here is the way I created JTable columns,and added a new row
    DefaultJTableModel md =(DefaultJTableModel ) this.jTable.getModel();
    md.addColumn("ID");
    md.addColumn("Name");
    md.addRow(new Object[]{
    Integer.valueOf("1"),
    "A"
    } )then I captured mousecliked event of an Add button to add a new row in the table as bellow
    md.addRow(new Object[]{null}) // as there's no need to initialize each column of each new row ,i used null instead of new Object[]{default id, default name};after editing the new row added to the table I captured the mouse cliked event of an Save button to save the added row which I wanted to write back to an bean
    Customer c=new Customer()
    c.setId((Integer)md.getValueAt(0,0));
    c.setName((String)md.getValueAt(0,1));
    c=new Customer()
    c.setId((Integer)md.getValueAt(1,0)); // here is the point which caused the ClassCastExcption happened
    c.setName((String)md.getValueAt(1,1));the exception message is
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
    It seems the newRow() method set all the columns of a new row to the type of String,
    my question is how can I set the data type of a column in the table?

    When you edit a table cell, JTable writes your edit back into the model. Most of the time, editing means entering text, so obviously, JTable will write a String into your model. JTable might be able to handle simple conversions such as String to Integer, but at the very least you would have to tell the table that you want only Integers in your column by implementing [TableModel.getColumnClass|http://java.sun.com/javase/6/docs/api/javax/swing/table/TableModel.html#getColumnClass(int)] appropriately. I honestly don't remember if the table can do this, though. If it can't, you probably need to either use a custom editor that converts the user entered text into an appropriate object or you need to use a custom model that handles the conversion in its setValue method.

  • ClassCastException when using ADFBindingFilter

    Hi,
    I have mixed JSF/ADFBC and JSP/UIX/BC4J application. When I first enter some non-jsf page, the page is rendered correctly, but on the bottom there is an exception:
    java.lang.ClassCastException: oracle.adf.share.DefaultContext
         at oracle.adf.share.http.ServletADFContext.resetThreadContext(ServletADFContext.java:283)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:346)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at sk.transacty.logger.DebugLoggerFilter.doFilter(DebugLoggerFilter.java:158)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)It appears only on first request in session and seems not to cause any problem, except for the message. Does anyone know how to get rid of it?
    Thanks, Viliam

    Some pages use <jbo:> tags, some use pagedefs etc. When the DataControls.cpx file is not in a package, I can reference it with <jbo:ApplicationModule> tag.
    I know it's not designed for this, but we cannot just rewrite whole app and we want to use new technologies... Maybe anyone else has same problem and has a solution...
    Viliam

  • ClassCastException when using IXC

    Has anyone run into this problem? I'm exporting an object using the IxcRegistry operation. Another Xlet is obtaining a handle to that object using IxcRegistry.lookup. I am able to call methods that the object implements however when returning a value, other than a standard java object (meaning, something I've created) it will give me a ClassCastException.

    I assume you're defining a remote method M, and M's return type is an object that you've defined ("something I've created", in your statement). Invoking M through the handle is causing you ClassCastException.
    IXC can only take primitives, Remote objects, and Serializable objects for the parameter type and return type of the remote methods. Could it be that an java object you've defined does not implement either java.rmi.Remote or java.io.Serializable?

  • Getting XML-32000: (Fatal Error) when using xml.jar of jaxb in jdeveloper 9

    Hi,
    I am trying to use jaxb in jdeveloper 9 to create java objects from an xsd. Any help would be really appreciated.
    I tested the below example with jdeveloper10 and it worked fine as jaxb was introduced in jdeveloper 10 by providing xml.jar.
    I need to use jdeveloper 9 in my project and jdeveloper 9 doesn't have xml.jar. I copied the xml.jar and xmlparserv2.jar from jdeveloper 10 to jdeveloper9. Created a build script to generate the java files for test.xsd.
    The build script works in jdeveloper 10 but gives the following error in jdeveloper 9:
    XML-32000: (Fatal Error) error in Building the Schema
    The test.s simple and is as follows :
    <?xml version="1.0" encoding="windows-1252"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified" >
    <element name="exampleElement">
    <annotation>
    <documentation>A sample element</documentation>
    </annotation>
    </element>
    </schema>
    Below is the ant script to generate the jva files from the xsd:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <project default="generate">
    <target name="init">
    <tstamp/>
    </target>
    <path id="build.path">
    <pathelement location="C:\JDeveloper9\jdevbin\lib\xmlparserv2forstudio.jar"/>
    <pathelement location="C:\JDeveloper9\jdevbin\lib\xml.jar"/>
    </path>
    <target name="generate" depends="init">
    <java fork="yes" classname="oracle.xml.jaxb.orajaxb"
    description="generate java code from xml schema"
    classpathref="build.path">
    <arg value="-schema"/>
    <arg value="test.xsd"/>
    <arg value="-outputDir"/>
    Please let me know where I am doing wrong
    Thanks,
    SR
    Edited by: user2188619 on Aug 29, 2008 8:20 AM

    You can not simply swap arround jar files from jdev 10 to jdev 9. You then are also using an entirly different jdk and there probably are some dependencies on it. Will it work if you try to run ant from outside jdev and using a 1.5 jdk?
    Andre

  • Error when using WebServicesAssembler.jar!!!

    I download Web Service sample hotel_reservation on OTN and follow the guide in README file but when I package the Web Services Archieve file by the command:
    java -jar $ORACLE_HOME/webservices/lib/WebServicesAssembler.jar -config ./config.xml
    This generated:
    Please wait ...
    Exception in thread "main" java.lang.NullPointerException: class com.oracle.demo.Hotel not found
    at oracle.j2ee.ws.tools.WsAssemblerConfig.toEAR(WsAssemblerConfig.java:5
    19)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:92)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:66)
    Please help me to overcome it. Thanks a lot.

    Make sure your Java files, Hello.java presumbly, can be found under the directory specified by <java-resource/>:
    <java-resource>./src</java-resource>

  • Forms 10 - Using FormsGraph.jar JavaBeans

    Hi,
    I'm trying to use Javabeans from within a Form, in order to display the EMP Salaries in an histogram, but I can't find the Howto.
    At the moment it's filed at this location:
    D:\DevSuiteHome_1\forms\java\forms10gdemos9_0_4_2\demos\bigraph\classes
    I wonder if I should move all the .jars directly under the \java subdirectory.
    I thought maybe I could inspect that Jar with Jarexeplorer.jar, in order to have an idea of the classes and methods calls, but googlesearch yields no result for this howto either.
    Many thanks for your help :-)
    P.S.
    I have found a presentation at this address:
    http://www.oracle.com/technology/sample_code/products/forms/demo/9i/javabeans_pjc_samples/bi_bean/viewlet/FormsGraph_viewlet.html
    Just 142 slides to go...
    Message was edited by:
    JeanParis

    Hi again,
    JarExplorer howto:
    - Make a shortcut on the desktop
    - right click the shortcut
    - Open With.... Java(TM) Platform Se Binary
    - File ... Open
    --- Navigate to the .jar

  • Weblogic 10.3.0 Deployment error when using ejb-jar.xml

    Hi,
    I am getting the following error while deploying my EJB3 application on Weblogic 10.3.0. This is happening only if I include ejb-jar.xml.
    As per the EJB3 descriptor spec, Remote Home or Local home are not exists.
    Is this a issue in Weblogic 10.3.0 or am I missing any special setup ?
    Please help.
    weblogic.application.ModuleException: Exception preparing module: EJBModule(egm-poc.jar)
    Unable to deploy EJB: C:\appsrv\domains\WeblogicRS1.1-domain\servers\admin\tmp\_WL_user\_appsdir_egmear_ear\ot2591\egm-poc.
    jar from egm-poc.jar:
    In EJB JPATestBean, both the remote home and remote component interface must be specified. Currently, only one of them is spec
    ified.
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    My ejb-jar.xml is
    - <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
    <description>JPA Test Application</description>
    <display-name>JPATest</display-name>
    - <enterprise-beans>
    - <session>
    <ejb-name>JPATestBean</ejb-name>
    <remote>egm.poc.jpa.JPATestBeanRemote</remote>
    <local>egm.poc.jpa.JPATestBeanLocal</local>
    <ejb-class>egm.poc.jpa.JPATestBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    - <session>
    <ejb-name>AuditInfoDAOH</ejb-name>
    <local>egm.poc.jpa.Audit</local>
    <ejb-class>egm.poc.jpa.AuditInfoDAOH</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    - <assembly-descriptor>
    - <container-transaction>
    - <method>
    <ejb-name>JPATestBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>RequiresNew</trans-attribute>
    </container-transaction>
    - <container-transaction>
    - <method>
    <ejb-name>AuditInfoDAOH</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    Regards
    Saji

    Hi,
    Seems the issue is not common. Can anyone throw some light on this ?
    Regards
    Saji

Maybe you are looking for

  • Using tesing, i can't run any swing java application.

    Any swing application, ex. xxe or openproj. Using openjdk6, i got those error: env: [hubert@hubert-dell bin]$ java -version java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.5pre-r059f6ba0c7dd) (ArchLinux-1.5_hg20090429-1-x86_64) OpenJDK

  • Can't Get DS6 to Work on My Notebook

    Hi I just updated the Desktop software to v6.0 on my desktop and had no problems.    I downloaded it and installed to my notebook and I when I try to run the program and the device drivers are being installed, the Blackberry driver errors-out, but th

  • IPod says "Use iTunes to Restore"

    My 1st generation ipod nano has been having problems. Whenever I try to turn it on it either does not respond or says "Use iTunes to Restore". When I plug it into the computer, iTunes recognizes it as a "corrupted iPod" and asks if I would like to re

  • How do I watch downloaded movies during airplane mode on iOS7?

    Had the HORRIBLE experience of boarding a 5 hour filght with my kids and turning on the iPad only to find that all of the movies we had synced to it VANISHED before my eyes. Needless to say it was a long flight. NOT COOL APPLE! Not cool. How do I fix

  • Photoshop CS6 13.0.6 Update installation fail (OS X 10.8)

    Hi, I've tried to install the new update for Adobe Photoshop CS6. The 13.0.6 update, on my OS X 10.8 and it doen´t finish the installation... The error code is U44M2P7. Does anyone know why is this happening? Regards, Frederico Silva