ClassCastException from doFilter

Hi,
I added a security filter in front of Weblogic 8.1 WebServiceServlet and at the
end of my filter, I passed a customized HttpServletRequestwrapper instance to
the doFilter(req, resp) call. I am getting a ClassCastException as following:
Error 500--Internal Server Error
java.lang.ClassCastException
     at weblogic.webservice.server.servlet.WebServiceServlet.getWebService(WebServiceServlet.java:195)
     at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:95)
     at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:232)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:385)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at mypackage.servlets.security.AuthorisorFilter.doFilter(AuthorisorFilter.java:180)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Does any one have this same problem before? Where can I find the source code for
this WebServiceServlet?
Many thanks and best regards,
Jacky

Hi Jacky,
Take a look at the servlet example posted by Michael [1] and see if this
answers your question.
Hope this helps,
Bruce
[1]
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=4618
Jacky Lee wrote:
>
Hi,
I added a security filter in front of Weblogic 8.1 WebServiceServlet and at the
end of my filter, I passed a customized HttpServletRequestwrapper instance to
the doFilter(req, resp) call. I am getting a ClassCastException as following:
Error 500--Internal Server Error
java.lang.ClassCastException
at weblogic.webservice.server.servlet.WebServiceServlet.getWebService(WebServiceServlet.java:195)
at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:95)
at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:232)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:385)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at mypackage.servlets.security.AuthorisorFilter.doFilter(AuthorisorFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Does any one have this same problem before? Where can I find the source code for
this WebServiceServlet?
Many thanks and best regards,
Jacky

Similar Messages

  • ClassCastException from OraclePreparedStatement.setArrayInternal() method

    The following code throws a ClassCastException from oracle.jdbc.driver.OraclePreparedStatement.setArrayInternal() method line# 5886 when cs.setArray() is executed.
    Connection conn = getConnection(); // Returns a java.sql.Connection instance
    CallableStatement cs = conn.prepareCall(queryString);
    cs.setArray(1, new UsnArray(usns)); // UsnArray implements java.sql.Array
    cs.registerOutParameter(2, Types.INTEGER);
    cs.execute();
    This works if I create the CallableStatement on an oracle.jdbc.driver.OracleConnection instance and use an oracle.sql.ARRAY instance in the setArray() method call. A JDBC-compliance driver shouldn't be expecting the applications to use driver-specific classes. The application can pass any instance of type java.sql.Array in the setArray() method call.
    Is this a bug in the driver?
    Driver information from ojdbc14.jar manifest.mf file:
    Manifest-Version: 1.0
    Specification-Title: Oracle JDBC driver classes for use with JDK14
    Sealed: true
    Created-By: 1.4.2_08 (Sun Microsystems Inc.)
    Implementation-Title: ojdbc14.jar
    Specification-Vendor: Oracle Corporation
    Specification-Version: Oracle JDBC Driver version - "10.2.0.2.0"
    Implementation-Version: Oracle JDBC Driver version - "10.2.0.2.0"
    Implementation-Vendor: Oracle Corporation
    Implementation-Time: Tue Jan 24 08:55:21 2006
    Name: oracle/sql/converter/
    Sealed: false
    Name: oracle/sql/
    Sealed: false
    Name: oracle/sql/converter_xcharset/
    Sealed: false
    --------------------------------------------------------------------------------------------------

    Let me elaborate on your last two replies: it doesn't matter what other drivers support; it doesn't matter what your "intention" was; all that matters is whether the implementation adheres to the specification or not. If it is not, it is not compliant to the specification (period). It is a very strong statement to say that "You must use oracle.sql.ARRAY." I'm not quite sure you understand the meaning and motivation behind standards like JDBC and J2EE and standards bodies like ANSI. This is very obvious when you say that "This is a limitation of the expressiveness of the Java type system."
    If you think the JDBC compliance only mandates that "A driver is only required to accept a value that is of the concrete class defined by the driver," which is not mentioned anywhere in the spec anyway, then Sun would have simply defined the setArray method as "public void setArray(int i, oracle.sql.ARRAY x)" (one for each driver available) instead of saying "public void setArray(int i, java.sql.Array x)". It also clearly says that if a specification is not supported by a driver, in which case it must be specified in the DatabaseMetaData, the driver must throw a SQLEception. Bur your claim completely contradicts everything. You can also refer links like this on the Web: http://archives.postgresql.org/pgsql-jdbc/2003-07/msg00294.php.
    I don't know what you mean by "The JDBC spec is not as precise as it could be." The relevant requirements have been clearly stated throughout Chapter 13 “Statements” and in Appendix B "Data Type Conversion Tables" in JDBC 3.0 spec (Chapter 8 Section 3 "Arrays" in JDBC 2.1 spec).
    A JDBC driver may provide underlying data source-specific features in addition to those mandated by the JDBC specification. Applications that try to take advantage these additional features may decide to “stick” with a specific driver and import driver-specific classes. But these additional features cannot substitute the basic requirements.

  • ClassCastException from LDControl

    Hi,
    I am trying to invoke a LD Query using LDControl from a pageflow.
    I keep getting java.lang.ClassCastException on method call to myControl.LDQueryMethod().
    My guess is that its some data-type mismatch between the schema returned by the LD Query and the auto-generated XML Bean.
    Is there any way to debug where this exception is coming from?
    - vineet

    Exception stack trace -
    java.lang.ClassCastException
    at $Proxy10.SomeGetData(Unknown Source)
    at portlets.Data.DataController.SomeGetData(
    DataController.jpf:140)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowCont
    roller.java:1510)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Flow
    Controller.java:1445)
    at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowControl
    ler.java:776)
    at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(PageFlo
    wController.java:211)
    at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java
    :606)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:484)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerf
    orm(PageFlowRequestProcessor.java:1354)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
    equestProcessor.java:650)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
    sterActionServlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
    onServlet.java:152)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    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
    (ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:419)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6724)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

  • How to catch ClassCastException from JSP page?

    I get a ClassCastException within my JSP page and I know where my bug is. However, this classcastexception message is displayed in the browser and I want to catch this exception to also log it into my log file. But I can't find the place where to catch it: in my servlet's doPost() method I can't catch it - i tried it by enclosing the method body with try/catch but it isn't catched. I wonder if I can catch it at all or if this error is handled internally in the servlet engine?

    It should only be displayed in the browser if you're not catching the exception in the jsp itself. If the exception is happening in the jsp, then there's no point in trying to catch it in the servlet.
    What happens if you put a try-catch just around the actual code in the jsp? You could put it around the entire jsp, but that's not necessary.
    One problem I've encountered in catching exceptions is if there are escape sequences within the try block, for example:
    try{
       //java code
    %>
       <!--html -->
    <%
    //java
    catch (Exception e)I'm not sure if that works or not, but to be safe, make sure you're not escaping from jsp within the try block.

  • ClassCastException from appendSecondaryDocument( non-oracle-generated-XMLDocument i )

    I wrote an xsql custom handler that converts html to xhtml and includes it into my xsql-generated xml.
    It gets slow because appendSecondaryDocument() throws a ClassCastException if I pass in a (XML) Document that is generated by the parser in JTidy.
    I therefore have to reparse this document using Oracle parser, which degrades performance too much.
    Is there any way to avoid this reparsing?
    I included code that shows the problem, the code relies on the JTidy library, which may be downloaded from:
    http://sourceforge.net/projects/jtidy/
    <pre>
    package nki.nettskolen.xsql;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import oracle.xml.parser.v2.*;
    import oracle.jdeveloper.cm.ConnectionManager;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.xsql.*;
    import oracle.xml.xsql.actions.*;
    /** This class provides functionality for including html (as xhtml)
    into an xsql-page. Usage:
    <xsql:include-html src="../../main.html"/>
    @author Tommy Skodje, NKI 2001.
    public class HtmlImporter2 extends XSQLActionHandlerImpl {
    String mUrl = null;
    boolean mRelative = false;
    /** Get url to the resource u want to include */
    public void init(XSQLPageRequest req, Element action) {
    super.init(req, action);
    mUrl = action.getAttribute( "src" );
    } // init()
    /** Read the html file, convert to xhtml, and add to result. */
    public void handleAction(Node result) {
    InputStream in = null;
    try {
    org.w3c.tidy.Tidy tidy = new org.w3c.tidy.Tidy();
    tidy.setXHTML( true );
    tidy.setQuiet( true );
    XSQLServletPageRequest xspr = (XSQLServletPageRequest)getPageRequest();
    String requestType = xspr.getRequestType();
    if ( ! requestType.equals("Servlet"))
    return;
    HttpServletRequest req = xspr.getHttpServletRequest();
    HttpServletResponse res = xspr.getHttpServletResponse();
    String text = "<html><head></head><body><br>Hello World!</body></html>";
    in = new ByteArrayInputStream( text.getBytes() ); // dummy: get resource as stream
    // PassPostRequestServlet.getStream( mUrl , req , res );
    ByteArrayOutputStream outBuf = new ByteArrayOutputStream();
    Document xDoc = tidy.parseDOM( in , outBuf );
    // tsk FixMe: ClassCastException if used directly, why? appendSecondaryDocument( result , tidy.parseDOM( in , Logg.getStream() ) );
    InputStream inBuf = new ByteArrayInputStream( outBuf.toByteArray() );
    xDoc = readXMLDoc( inBuf );
    appendSecondaryDocument( result , xDoc );
    } catch ( Exception e ) {
    String msg = "Exception in XSQLImporter.handleAction(), url=" + mUrl;
    System.out.println( msg + e.getMessage() );
    } finally {
    close( in );
    } // handleAction()
    /* Parses and instantiates an XML document from stream (which is then closed)
    @param ByteArrayInputStream stream of textual data (from String, file etc)
    @return XMLDocument instantiated from contents of stream
    public XMLDocument readXMLDoc( InputStream source ) {
    DOMParser theParser = new DOMParser();
    try {
    //the parser works faster in nonvalidation mode
    theParser.setValidationMode(false);
    theParser.parse( source );
    } catch ( Exception e ) {
    String msg = "Exception in readXMLDoc(): " + e.getMessage();
    System.out.println( msg );
    } finally {
    close( source );
    return theParser.getDocument();
    }// end hentXMLDoc
    /** Closes the stream */
    public static void close( InputStream s ) {
    if ( s != null ) try {
    s.close();
    } catch ( Exception e ) { }
    } // close()
    /** Closes the stream */
    public static void close( OutputStream s ) {
    if ( s != null ) try {
    s.close();
    } catch ( Exception e ) { }
    } // close()
    } // class HtmlImporter
    </pre>

    Looks like you already figure this one out, but basically the XSQL Page Processor expects the DOM implementation that is used to be the fast Oracle DOM implementation for performance reasons.

  • ClassCastException in doFilter()

              Hi,
              I added a security filter in front of Weblogic 8.1 WebServiceServlet and at the
              end of my filter, I passed a customized HttpServletRequestwrapper instance to
              the doFilter(req, resp) call. I am getting a ClassCastException as following:
              Error 500--Internal Server Error
              java.lang.ClassCastException
                   at weblogic.webservice.server.servlet.WebServiceServlet.getWebService(WebServiceServlet.java:195)
                   at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:95)
                   at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:232)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                   at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:385)
                   at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
                   at mypackage.servlets.security.AuthorisorFilter.doFilter(AuthorisorFilter.java:180)
                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Anybody had the same problem before? Where can I get the source code for the WebServiceServlet?
              Many thanks and regards,
              Jacky
              

    Please contact [email protected] to get a patch for this issue.
              "Jacky Lee" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,
              >
              > I added a security filter in front of Weblogic 8.1 WebServiceServlet and
              at the
              > end of my filter, I passed a customized HttpServletRequestwrapper instance
              to
              > the doFilter(req, resp) call. I am getting a ClassCastException as
              following:
              >
              >
              > Error 500--Internal Server Error
              >
              > java.lang.ClassCastException
              > at
              weblogic.webservice.server.servlet.WebServiceServlet.getWebService(WebServic
              eServlet.java:195)
              > at
              weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:95)
              > at
              weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet
              .java:232)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > at
              weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
              tStubImpl.java:1053)
              > at
              weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
              t.java:317)
              > at
              weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :385)
              > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
              > at
              weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
              > at
              mypackage.servlets.security.AuthorisorFilter.doFilter(AuthorisorFilter.java:
              180)
              > at
              weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
              > at
              weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
              ebAppServletContext.java:6316)
              > at
              weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
              t.java:317)
              > at
              weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
              > at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:3622)
              > at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2569)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              >
              > Anybody had the same problem before? Where can I get the source code for
              the WebServiceServlet?
              >
              >
              > Many thanks and regards,
              >
              >
              > Jacky
              >
              

  • Sun 8: ClassCastException from ManagementHome

    I am trying to use JMX from Sun 8 using a java application client.
    When I tried:
    Context ctx = new InitialContext(properties);
    Object objref = ctx.lookup("ejb/mgmt/MEJB");
    ManagementHome home = (ManagementHome)
    PortableRemoteObject.narrow(objref, ManagementHome.class);
    I got error:
    java.lang.ClassCastException
    at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java
    :293)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
    What is missing from my program or environment?
    My classpath is: .;d:\sun\appserver\lib\j2ee.jar;d:\sun\appserver\lib\appserv-rt.jar;d:\sun\appserver\lib\appserv-admin.jar
    My java -version is:
    java version "1.4.2_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
    Any information would be appreciated. Thanks in advance.

    Hi Hans,
    Thanks for your advice: I set these three properties now. I can go one step futher.
    Now I can get ManagementHome object without errors. But when I tried to call create(),
    I got error below. What else do I miss?
    >>>>>>>>>>>>>>>>>>>>>>>>
    D:\test\manage>java -Djavax.rmi.CORBA.UtilClass=com.sun.corba.ee.impl.javax.rmi.CORBA.Util -Dorg.omg
    .CORBA.ORBClass=com.sun.corba.ee.impl.orb.ORBImpl -Dorg.omg.CORBA.ORBSingletonClass=com.sun.corba.ee
    .impl.orb.ORBSingleton -classpath d:\sun\appserver\lib\jmxremote.jar;.;d:\sun\appserver\lib\j2ee.jar
    ;d:\sun\appserver\lib\appserv-rt.jar;d:\sun\appserver\lib\appserv-admin.jar;d:\sun\appserver\domains
    \domain1\applications\j2ee-apps\MEjbApp\MEjbAppClient.jar;d:\a\otherJars\jhall.jar;d:\ant\lib\ant.ja
    r;d:\j2sdkee1.3.1\lib\j2ee.jar;d:\j2sdkee1.3.1\lib\j2eetools.jar;d:\a\otherJars\retroguard.jar;d:\a;
    d:\a\build;.;d:\a\otherJars\redress.jar;d:\a\otherJars\browserLaucher.jar;d:\a\otherJars\hsql.jar;d:
    \a\otherJars\jcalendar.jar;d:\a\otherJars\jcommon-0.6.4.jar;d:\a\otherJars\jfreechart092.jar;e:\Mave
    ricks\lib\primetime.jar;e:\Mavericks\lib\jbuilder.jar;;d:\a\otherJars\kunststoff.jar;d:\jmx\lib\jmxr
    i.jar;d:\a\otherJars\jsch-0.1.15.jar;d:\a\otherJars\commons-net-1.2.2.jar;sunSuperLogging.jar;d:\sun
    \appserver\lib\jmxremote.jar M
    java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
    org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No
    at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerReq
    uestInterceptor.java:396)
    at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediate
    Point(InterceptorInvoker.java:509)
    at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandle
    rImpl.java:504)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaSer
    verRequestDispatcherImpl.java:367)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerReque
    stDispatcherImpl.java:189)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessage
    MediatorImpl.java:1683)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediato
    rImpl.java:1543)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorI
    mpl.java:925)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_
    1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediato
    rImpl.java:697)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelCon
    nectionImpl.java:454)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConne
    ctionImpl.java:1188)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.j
    ava:398)
    ----------END server-side stack trace---------- vmcid: 0x0 minor code: 0 completed: No
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:195)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHan
    dlerImpl.java:142)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at com.sun.enterprise.management.agent._MEJBHome_DynamicStub.create(_MEJBHome_DynamicStub.ja
    va)
    at M.getMejb(M.java:38)
    at M.test(M.java:54)
    at M.main(M.java:107)

  • ClassCastException from Query to JDBCQuery

    Section 4.6 of the 3.0b2 documentation states, "You can safely cast any
    query instance returned by a Kodo JDO persistence manager to a JDBCQuery."
    I get the following stack trace when I attempt to do so:
    java.lang.ClassCastException
    at kodopt.UserManagerServlet.doGet(UserManagerServlet.java:1060)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
    at
    com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
    at com.caucho.server.http.Invocation.service(Invocation.java:315)
    at
    com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
    at
    com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
    at
    com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
    at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
    at java.lang.Thread.run(Thread.java:536)
    I set javax.jdo.PersistenceManagerFactoryClass to
    kodo.jdbc.runtime.JDBCPersistenceManagerFatory. The object type returned
    by PersistenceManager.newQuery() is kodo.datacache.CacheAwareQuery. Is
    this a bug, or am I doing something wrong?

    Abe White wrote:
    The object type returned
    by PersistenceManager.newQuery() is kodo.datacache.CacheAwareQuery. Is
    this a bug, or am I doing something wrong?
    Argh; it's a bug. It'll only happen when the data cache is enabled, by
    the way. Darn... you'll have to make due with casting to
    kodo.query.KodoQuery.
    Was there a specific JDBCQuery method you needed to invoke?Yes... setJoinSyntax().

  • Problem with app migration from JDeveloper 11.1.1.0 to JDeveloper 11.1.1.2

    Hi Fusion developers,
    I'm migrating an application to JDeveloper 11.1.1.2 from JDeveloper 11.1.1.0 environment.
    I've installed the JDeveloper 11.1.1.2 Studio package on a new laptop with Windows XP Pro service pack 3
    and copied the application from a JDeveloper 11.1.1.0 environment. I opened the application with JDev 11.1.1.2
    and JDev converted the application.
    When I run the application, I received a ClassCastException from MyFaces Trinidad. I've pasted the stacktrace
    below.
    I checked the 11.1.1.2 release notes and didn't find any Trinidad issues. Does 11.1.1.2 use a different Trinidad
    release? If so, are there Trinidad config settings that I should modify?
    Thanks,
    Bob
    java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlHttpConfigurator cannot be cast to org.apache.myfaces.trinidad.config.Configurator
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.init(GlobalConfiguratorImpl.java:366)
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:199)
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:304)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.(FacesContextFactoryImpl.java:86)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
         at oracle.adfinternal.controller.application.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:56)
         at oracle.adfinternal.controller.application.model.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:70)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:260)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Please refer
    http://docs.oracle.com/cd/E26098_01/install.1112/e17074/ojdig.htm#BDCIHDBA

  • HELP!! ClassCastException with custom module classloader hierarchy and redeployment

    Hi,
    I am defining custom module classloader hierarchy to avoid redeploying of the
    entire application mainly because we have so many EJBs and it takes a long time
    to deploy the entire app. I deploy my app using the exploded directory, add a
    new method to an EJB in my dal.jar, redeploy, run my unittest and I get ClassCastException.
    I am using weblogic.Deployer utility to reploy my module using "-targets dal.jar@accsserver"
    argument. I even tried undeploying that module and redeploy again with no luck.
    here is weblogic-application.xml definition of the custom class loader
    <classloader-structure>
    <module-ref>
         <module-uri>floghmi.war</module-uri>
         </module-ref>
    <module-ref>
         <module-uri>cts.jar</module-uri>
         </module-ref>
    <module-ref>
         <module-uri>fdbs.jar</module-uri>
         </module-ref>
    <classloader-structure>
         <module-ref>
              <module-uri>dml.jar</module-uri>
         </module-ref>
    <classloader-structure>
         <module-ref>
         <module-uri>dal.jar</module-uri>
    </module-ref>
    </classloader-structure>
    </classloader-structure>
    </classloader-structure>
    thanks,
    Nasrin

    Rob,
    regarding your question on redeploying the whole app without the classloader
    structure, yes, that works fine. If I change a class and redeploy the whole app,
    things are ok. However, when I speocify the classloader structure, and try to
    redeploy the dal.jar, I get ClassClasException.
    You are right about dml.jar being in a separate classloader. I have changed my
    structure after I posted my question to load dml.jar from the application classloader.
    So Rob, is there a bug in Weblogic 8.1 that causes this exception?
    please let me know, I am anxiously waiting your response.
    thanks,
    Nasrin
    Rob Woollen <[email protected]> wrote:
    >
    >
    Nasrin Azordegan wrote:
    Rob,
    if I remove my classloader structure from weblogic-application.xml,I get an
    error during redeployment, saying "You must include all of<list ofmy module names
    here> in your files list to modify <dal.jar>. Yes, the server enforces constraints on partial redeployments. You must
    deploy all the modules in a given classloader and any modules in child
    classloaders.
    Just to make sure, if you initially deploy your app, or redeploy the
    whole thing, it works fine without the classloader-structure, right?
    The problem I am trying to solve is to minimize our deployment time.Our application
    has over 700 CMP 2.0 entity beans and 200 session beans. Our applicationdeployment
    follows the J2EE layer architecture. The data mapping layer which consistof 700
    entity beans are located in dml.jar. The data access layer which consistof 200
    session beans are located in dal.jar. We create our ear with thesetwo jar files
    plus some other framework jars and deploy on bea weblogic 8.1 SP2 andthat takes
    about an hour. I need to be able to modify a session bean, i.e. changethe implementation
    of a session bean or add a new method to a session bean interface andredeploy
    only data access layer, the dal.jar, not the entity beans. This explainswhy you
    see dml.jar in a classloader with a child classloader that loads dal.jar.
    I included the ClassCastException from weblogic server console below.What is
    happening is that I have a session bean with 6 methods that just doesa println.
    I deploy my session bean, ExerciseSessionBeanFactory, and run my unittest that
    invokes test1 through test6 methods. I modify my bean to add "test7"method and
    redeply dal.jar successfully. I run my unit test that invokes test1through test7
    methods and then I get a ClassCastException.
    I hope this helps. Please let me know if you need more details.If you push dml.jar into a subloader, that means you can change dml.jar
    without touching anything in the parent loader. However, it also means
    that you've isolated it's classes and other modules can't see them.
    -- Rob
    thanks,
    Nasrin
    in test method
    in test2 method
    in test3 method
    in test4 method
    in test5 method
    in test6 method
    <Apr 12, 2004 9:26:03 AM PDT> <Warning> <EJB> <BEA-010096> <The Message-Driven
    EJB: SimTimeListener is unable to connect
    to the JMS destination: cn=t.cms.cts.simTimeInfo. Connection failedafter 184
    attempts. The MDB will attempt to reconne
    ct every 10 seconds. This log message will repeat every 600 secondsuntil the
    condition clears.>
    <Apr 12, 2004 9:26:03 AM PDT> <Warning> <EJB> <BEA-010061> <The Message-Driven
    EJB: SimTimeListener is unable to connect
    to the JMS destination: cn=t.cms.cts.simTimeInfo. The Error was:
    [EJB:011011]The Message-Driven EJB attempted to connect to the JMSdestination
    with the JNDI name: cn=t.cms.cts.simTimeI
    nfo. However, the object with the JNDI name: cn=t.cms.cts.simTimeInfois not a
    JMS destination, or the destination found
    was of the wrong type (Topic or Queue).>
    in test method
    in test2 method
    in test3 method
    in test4 method
    in test5 method
    in test6 method
    <Apr 12, 2004 9:28:26 AM PDT> <Warning> <RMI> <BEA-080003> <RuntimeExceptionthrown
    by rmi server: com.trs.cv.infr.istr.
    sc.sim.factory.ejb.ExerciseSessionFactory_zhotso_EOImpl.test7()
    java.lang.ClassCastException.
    java.lang.ClassCastException
    at com.trs.cv.infr.istr.sc.sim.factory.ejb.ExerciseSessionFactory_zhotso_EOImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Rob Woollen <[email protected]> wrote:
    You'll have to give me some more information on the ClassCastException.
    Where does it happen? Print out the classnames and the
    classloaders of the 2 objects.
    Does everything work fine if you remove your classloader-structure?
    -- Rob
    Nasrin Azordegan wrote:
    Hi,
    I am defining custom module classloader hierarchy to avoid redeployingof the
    entire application mainly because we have so many EJBs and it takesa long time
    to deploy the entire app. I deploy my app using the exploded directory,add a
    new method to an EJB in my dal.jar, redeploy, run my unittest and
    I
    get ClassCastException.
    I am using weblogic.Deployer utility to reploy my module using "-targetsdal.jar@accsserver"
    argument. I even tried undeploying that module and redeploy again
    with
    no luck.
    here is weblogic-application.xml definition of the custom class loader
    <classloader-structure>
    <module-ref>
         <module-uri>floghmi.war</module-uri>
         </module-ref>
    <module-ref>
         <module-uri>cts.jar</module-uri>
         </module-ref>
    <module-ref>
         <module-uri>fdbs.jar</module-uri>
         </module-ref>
    <classloader-structure>
         <module-ref>
              <module-uri>dml.jar</module-uri>
         </module-ref>
    <classloader-structure>
         <module-ref>
         <module-uri>dal.jar</module-uri>
    </module-ref>
    </classloader-structure>
    </classloader-structure>
    </classloader-structure>
    thanks,
    Nasrin

  • Workshop 8.1 Calling EJB from Custom Authentication Provider

    I am writing a custom authentication provider that runs on Weblogic Server 8.1 and also on Workshop 8.1. Everything is packaged into a jar file that I put into the mbeantypes directory. From the authentication provider I want to get an EJB home that is on another Weblogic 8.1 server.
    Loading the home from the Weblogic server works great. But in Workshop I get a ClassCastException from the PortableRemoteObject.narrow() call.
    This happens in Workshop even if I remove all my application jar files, so I am left with nothing but the startup classpath and the files in the mbeantypes directory. That is, I don't have any classes in two directories.
    When I look at the class that I actually get back from the call to context.lookup( jndiName ), I get the same stub class back on the Weblogic Server and on the Workshop server. But only on Workshop do I have this casting problem.
    Any ideas?
    Thanks,
    Mark

    Issue has been resolved.
    The reason I've forgotten about Value Object that is being returned by Remoute method to put them into classpath of Authenticator Provider

  • ClassCastException under 7.2

    I'm porting an application that works under LCRE 7.0.2 to LCRE 7.2 and I've started getting ClassCastExceptions from the last line in the following code:
    // Lookup the PDF Manipulation service
    Object pdfObject = namingContext.lookup("PDFManipulation");
    pdfConnectionFactory = (ConnectionFactory) PortableRemoteObject.narrow(pdfObject, ConnectionFactory.class);
    The code is straight out of the documentation. What's strange is that I've already successfully retrieved a connection to the DataManagerService a few lines before.
    Has anyone else encountered this before? I basically re-built the project from scratch copying over my old java source files to the new project and then copied in the new .jar files from 7.2.
    The only thing that strikes me as odd is that under 7.0.2 I had to refer to DocumentServicesLibrary.jar as an external file (since, under 7.0.2 it was copied into JBoss's lib directory) and under 7.2 I'm including it in the .war (per the LC Forms documentation, the LC RE docs don't say much about DocumentServicesLibrary.jar). This library is the one that contains the ConnectionFactory class that the narrow() call is unable to cast to. Perhaps it's a coincidence, but I'm thinking that it's related.
    Should the DocumentServicesLibrary really be included in my .war file or should it be excluded as it was under 7.2? I've tried it both ways but neither works.
    Regards,
    Rob McDougall
    4 Point Solutions

    Hi Chris,
    That did the trick. Thanks!
    The knowledgebase article should probably be amended to mention Reader Extensions (I hadn't installed Document Security, yet I still encountered the problem). It would also be nice if it gave the exact exception that is generated (a ClassCastException). I had searched the knowledgebase for both ClassCastException and Exception although I limited my search to Reader Extensions, so I didn't end up finding that article.
    Thanks again for pointing it out.
    Regards,
    Rob

  • J2SDK 1.3 on Linux RH 7.1

    Hi... does anyone can give a hand installing J2SDK 1.3. on Linux RH 7.1?
    I've already installed Java using the rpm file and it seems to have no problems...
    everything looks fine...I've got no error messages...
    but when I try to run: java -version
    there is not answer!..just nothing!
    this is the second installation and I don't know what else to do...
    what I'm missing?
    I hope anyone can help me!
    Thanks in advance!
    ciao!
    JC.

    i got the same problem too.
    not only is there no output from java -version, but also the command hangs there, never exits.
    the following is the output of java -verbose
    [Opened /usr/java/jdk1.3/jre/lib/rt.jar]
    [Opened /usr/java/jdk1.3/jre/lib/i18n.jar]
    [Opened /usr/java/jdk1.3/jre/lib/sunrsasign.jar]
    [Loaded java.lang.Object from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.io.Serializable from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Comparable from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.String from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Class from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Cloneable from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ClassLoader from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Throwable from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Error from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ThreadDeath from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Exception from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.RuntimeException from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.security.ProtectionDomain from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.security.AccessControlContext from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ClassNotFoundException from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.LinkageError from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.NoClassDefFoundError from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ClassCastException from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ArrayStoreException from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.VirtualMachineError from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.OutOfMemoryError from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.StackOverflowError from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.Reference from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.SoftReference from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.WeakReference from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.FinalReference from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.PhantomReference from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.Finalizer from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Runnable from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Thread from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ThreadGroup from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Dictionary from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Map from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Hashtable from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Properties from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.reflect.AccessibleObject from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.reflect.Member from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.reflect.Method from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.reflect.Constructor from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Collection from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.AbstractCollection from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.List from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.AbstractList from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Vector from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.StringBuffer from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Boolean from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Character from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Number from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Float from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Double from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Byte from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Short from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Integer from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Long from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.NullPointerException from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ArithmeticException from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.Shutdown from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.StrictMath from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.io.ObjectStreamField from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Comparator from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.String$CaseInsensitiveComparator from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.System from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.security.AccessController from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Collections from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Random from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Set from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.AbstractSet from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Collections$EmptySet from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Collections$EmptyList from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.AbstractMap from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Collections$EmptyMap from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.util.Collections$ReverseComparator from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ThreadLocal from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.InheritableThreadLocal from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.security.Guard from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.security.Permission from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.security.BasicPermission from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.reflect.ReflectPermission from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.Reference$Lock from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.Reference$ReferenceHandler from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.ReferenceQueue from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.ReferenceQueue$Null from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.ReferenceQueue$Lock from /usr/java/jdk1.3/jre/lib/rt.jar]
    [Loaded java.lang.ref.Finalizer$FinalizerThread from /usr/java/jdk1.3/jre/lib/rt.jar]
    then the output stops, and the command hangs here.

  • Resource Adapter errors in WebLogic 10.3

    Hi,
    I'm getting ClassCastException from coherence 3.5.3 resource adapter in WebLogic 10.3.
    I've already tried to install resource adapter as a separate deploy and inside ear file, but get same errors.
    Has anybody already managed to use this adapter along with weblogic 10.3 ? The error occurs when I try to get a NamedCache object. The distributed cache named "cache" is up and running since I manage to get and put objects into cache by using NamedCache from CacheFactory (CacheFactory.getCache("cache")).
                   ctx = new InitialContext();
                   // the transaction manager from container
                   tx = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
                   tx.begin();
                   adapter = new CacheAdapter(ctx, "tangosol.coherenceTx", CacheAdapter.CONCUR_PESSIMISTIC ,CacheAdapter.TRANSACTION_REPEATABLE_GET, 300);
                   NamedCache cache = adapter.getNamedCache("cache", getClass().getClassLoader());
                   cache.put(1, 11);
                   Integer estoqueGet = (Integer)cache.get(1);
    2010-06-05 20:24:02.859/96.703 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/
    a
    2010-06-05 20:24:02.969/96.813 Oracle Coherence GE 3.5.3/465 <Info> (thread=Cluster, member=n/a): Failed to satisfy the variance: allowed=16, actual=47
    2010-06-05 20:24:02.969/96.813 Oracle Coherence GE 3.5.3/465 <Info> (thread=Cluster, member=n/a): Increasing allowable variance to 19
    2010-06-05 20:24:03.344/97.188 Oracle Coherence GE 3.5.3/465 <Info> (thread=Cluster, member=n/a): This Member(Id=2, Timestamp=2010-06-05 20:24:03.078, Address=1
    0.10.10.10:8089, MachineId=2570, Location=machine:ACCENTUR-1FAF0A,process:8036, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1) joined cluste
    r "cluster:0xDDEB" with senior Member(Id=1, Timestamp=2010-06-05 20:23:06.562, Address=10.10.10.10:8088, MachineId=2570, Location=machine:ACCENTUR-1FAF0A,proces
    s:6300, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1)
    2010-06-05 20:24:03.438/97.282 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Management with senior member 1
    2010-06-05 20:24:03.438/97.282 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=n/a): Member 1 joined Service DistributedCache with senior member 1
    2010-06-05 20:24:03.656/97.500 Oracle Coherence GE 3.5.3/465 <D5> (thread=Invocation:Management, member=2): Service Management joined the cluster with senior se
    rvice member 1
    2010-06-05 20:24:04.125/97.985 Oracle Coherence GE 3.5.3/465 <D5> (thread=TcpRingListener, member=2): TcpRing: connecting to member 1 using TcpSocket{State=STAT
    E_OPEN, Socket=Socket[addr=/10.10.10.10,port=3748,localport=8089]}
    2010-06-05 20:24:04.141/97.985 Oracle Coherence GE 3.5.3/465 <Info> (thread=[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', memb
    er=2): Loaded cache configuration from "zip:D:/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/coherenceapp/v3byxq/war/WEB-
    INF/lib/coherence.jar!/coherence-cache-config.xml"
    2010-06-05 20:24:04.438/98.282 Oracle Coherence GE 3.5.3/465 <D5> (thread=DistributedCache, member=2): Service DistributedCache joined the cluster with senior s
    ervice member 1
    2010-06-05 20:24:04.453/98.297 Oracle Coherence GE 3.5.3/465 <D5> (thread=DistributedCache, member=2): Service DistributedCache: received ServiceConfigSync cont
    aining 258 entries
    2010-06-05 20:24:04.547/98.391 Oracle Coherence GE 3.5.3/465 <D4> (thread=DistributedCache, member=2): Asking member 1 for 128 primary partitions
    2010-06-05 20:24:04.828/98.672 Oracle Coherence GE 3.5.3/465 <Error> (thread=DistributedCache, member=2): An exception (java.io.IOException) occurred reading Me
    ssage Response Type=21 for Service=DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, Ass
    ignedPartitions=0, BackupPartitions=0}
    2010-06-05 20:24:04.828/98.672 Oracle Coherence GE 3.5.3/465 <Error> (thread=DistributedCache, member=2): Terminating DistributedCache due to unhandled exceptio
    n: java.io.IOException
    2010-06-05 20:24:04.828/98.672 Oracle Coherence GE 3.5.3/465 <Error> (thread=DistributedCache, member=2):
    java.io.IOException: Class initialization failed: java.lang.ClassCastException: com.tangosol.run.xml.SimpleElement
    at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:1946)
    at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2273)
    at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2219)
    at com.tangosol.io.DefaultSerializer.deserialize(DefaultSerializer.java:60)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:4)
    at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
    at com.tangosol.coherence.component.net.message.DistributedCacheResponse.read(DistributedCacheResponse.CDB:2)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:123)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    Class: com.tangosol.run.xml.SimpleElement
    ClassLoader: weblogic.utils.classloaders.ChangeAwareClassLoader@15fe77a finder: weblogic.utils.classloaders.CodeGenClassFinder@2a865b8 annotation: coherenceapp@
    WebAppCoherence
    ContextClassLoader: weblogic.utils.classloaders.ChangeAwareClassLoader@15fe77a finder: weblogic.utils.classloaders.CodeGenClassFinder@2a865b8 annotation: cohere
    nceapp@WebAppCoherence
    at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:1961)
    at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2273)
    at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2219)
    at com.tangosol.io.DefaultSerializer.deserialize(DefaultSerializer.java:60)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:4)
    at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
    at com.tangosol.coherence.component.net.message.DistributedCacheResponse.read(DistributedCacheResponse.CDB:2)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:123)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    2010-06-05 20:24:04.844/98.688 Oracle Coherence GE 3.5.3/465 <D5> (thread=DistributedCache, member=2): Service DistributedCache left the cluster
    java.lang.RuntimeException: Failed to start Service "DistributedCache" (ServiceState=SERVICE_STOPPED)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.waitAcceptingClients(Service.CDB:12)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:8)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.ensureCache(DistributedCache.CDB:29)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.ensureCache(DistributedCache.CDB:39)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:46)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:878)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1088)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:304)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
    at com.tangosol.coherence.ra.component.connector.resourceAdapter.cciAdapter.CacheAdapter$ManagedConnection$Connection$Interaction.execute(CacheAdapter.C
    DB:35)
    at com.tangosol.run.jca.CacheAdapter.getNamedCache(CacheAdapter.java:329)
    at com.tangosol.run.jca.CacheAdapter.getNamedCache(CacheAdapter.java:271)
    at ServletCoherence.doGet(ServletCoherence.java:51)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Exception: java.lang.RuntimeException: Failed to start Service "DistributedCache" (ServiceState=SERVICE_STOPPED)
    java.lang.RuntimeException: Failed to start Service "DistributedCache" (ServiceState=SERVICE_STOPPED)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.waitAcceptingClients(Service.CDB:12)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:8)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.ensureCache(DistributedCache.CDB:29)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.ensureCache(DistributedCache.CDB:39)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:46)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:878)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1088)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:304)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
    at com.tangosol.coherence.ra.component.connector.resourceAdapter.cciAdapter.CacheAdapter$ManagedConnection$Connection$Interaction.execute(CacheAdapter.C
    DB:35)
    at com.tangosol.run.jca.CacheAdapter.getNamedCache(CacheAdapter.java:329)
    at com.tangosol.run.jca.CacheAdapter.getNamedCache(CacheAdapter.java:271)
    at ServletCoherence.doGet(ServletCoherence.java:51)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    The problem may be related to having more than one coherence.jar and tangosol.jar in the classpath. Can you verify that you only have one of those in the classpath?
    /Christer

  • JPA Toplink, class cast exception when casting class A to class A

    I get a really strange exception from Toplink JPA. I used netbeans to create a persistence.xml and I generated a class (entity) from the table in a DB. Everything works fine, when I create a select query, I get the list of objects and the list is correctly typed. I can the objects in the list in debug mode with every field correctly set. But then I need to start working with the list, so I iterate through the list. And then I get ClassCastException from class A to class A (when A is the canonical name of the entity class).
    I was working with JPA for some time but never seen that. I am using glassfish v2, mysql, netbeans 6.1. I could post the classes and persistence xml, but persistence.xml is really simple (no class definitions) and the class is annotated by netbeans. Every field is annotated like this:
    @Column(name = "name", nullable = false)
    And Date columns have
    @Temporal(TemporalType.TIMESTAMP)
    The whole class is annotated with @Table.
    Does anyone has any idea, what can be wrong?

    DrClap wrote:
    Make sure your URLClassLoader cannot load the IAdapter class.
    That is not exactly correct. He needs to make sure his URLClassloader has access to the IAdapter class. Sure, it should not load it on its own, but if requested the URLClassloader should be able to ask a parent to load IAdapter. Which in the end looks the same. But is not the same.
    So set the parent classloader of your URLClassloader to a classloader capable of loading IAdapter.

Maybe you are looking for

  • Time Machine will not connect to Time Capsule

    Hi All, I have run into a problem that is completely perplexing me, so I'm looking for some kind help. Here's the set up: At home we have two macs, one is an older PowerBook G4 on 10.5.8, the other is a MacBook Pro on 10.6.8.  Everything is working p

  • Can't find valid destination for OS!!

    Oh dear oh dear. Our Power Mac has been dying a slow death but we didn't take the early signs to be things we should act upon and didn't know about software like Disk Warrior. After having trouble booting up and having the computer crash, as well as

  • Hard Drive failure in 2011 iMac... warranty/price?

    Hello, I have a 21.5" Intel Core i7 iMac with a 1TB hard drive (custom ordered from Apple).  Got it in July 2011 with the extended 3-year AppleCare warranty.  The only thing I've ever put into it was 8GB of extra memory, shortly after I purchased it.

  • Punch in/out latency issue!

    I'm having a pause in my audio when I punch in and out of logic. The song is still rolling but the music stops for a second. I know this is a simple hardware setting. I can't remember if it's the buffer size. Anyway, is there a standard buffer size,

  • Query on inspection/cert. during dispatch of goods to customer

    How to configure certificate type and assign certificates during pre-dispatch inspection. Could you kindly provide the process flow. What are the Config data that needs to be considered for the same. is Cust. info record required? Thanks in Advance.