HttpsURLConnection gives ClassCastException in Weblogic 5.1

am getting an error when i run my application in weblogic 5.1 as
java.lang.ClassCastException: weblogic.net.http.HttpsURLConnection.
I know the reason after creating URLConneciton the object i am getting
is "weblogic.net.http.HttpsURLConnection" instead of com.sun.net.ssl.HttpsURLConnection
But if I run this application outside weblogic environment my application is running fine.
How do I make the weblogic server to pick com.sun.net.ssl.HttpsURLConnection instead of weblogic.net.http.HttpsURLConnection.
Thanks in advance
Arshad

Are you casting the object to com.sun.net.ssl.HttpsURLConnection?
Why not just use javax.net.HttpsURLConnection? I have never worked with
WebLogic before, but I'm sure it will extend that class.

Similar Messages

  • ClassCastException:class weblogic.servlet.internal.ROIDLookupImp

              I am seeing this error in the application server logs. It does not indicate to
              any application. I will greatly appreciate any help with this.
              <RuntimeException thrown by rmi server(class weblogic.servlet.internal.ROIDLookupImpl)
              weblogic.servlet.internal.ROIDLookupImpl@b9585e>
              java.lang.ClassCastException
              at weblogic.servlet.internal.ROIDLookupImpl.lookupROID(ROIDLookupImpl.java,
              Compiled Code)
              at weblogic.servlet.internal.ROIDLookup_WLSkel.invoke(ROIDLookup_WLSkel.java,
              Compiled Code)
              at weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java,
              Compiled Code)
              at weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java,
              Compiled Code)
              at weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.java,
              Compiled Code)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java,
              Compiled Code)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled
              Code)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              Udit
              

    If you are having a cluster, make sure all the servers are on the same set
              of service packs.
              -Sabha
              "Udit Singh" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am seeing this error in the application server logs. It does not
              indicate to
              > any application. I will greatly appreciate any help with this.
              >
              >
              > <RuntimeException thrown by rmi server(class
              weblogic.servlet.internal.ROIDLookupImpl)
              > weblogic.servlet.internal.ROIDLookupImpl@b9585e>
              >
              > java.lang.ClassCastException
              > at
              weblogic.servlet.internal.ROIDLookupImpl.lookupROID(ROIDLookupImpl.java,
              > Compiled Code)
              > at
              weblogic.servlet.internal.ROIDLookup_WLSkel.invoke(ROIDLookup_WLSkel.java,
              > Compiled Code)
              > at
              weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java,
              > Compiled Code)
              > at
              weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java,
              > Compiled Code)
              > at
              weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
              java,
              > Compiled Code)
              > at
              weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java,
              > Compiled Code)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java,
              Compiled
              > Code)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              >
              > Udit
              

  • Mapping XML object to java object gives ClassCastException

    Hi All,
    I am trying to map a specific XML object to a specific java object using web
    services and received the following exception:
    java.lang.ClassCastException: weblogic.soap.xml.XMLObject
    at $Proxy0.getMonster(Unknown Source)
    at serviceClient.TestServiceClient.main(TestServiceClient.java:46)
    Exception in thread "main"
    I tried to map a simple type:
    <types>
    <schema targetNamespace='java:biomaterials'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    <element name="Monster">
    <complexType>
    <all>
    <element name="name"
    type="string"/>
    <element name="age"
    type="int"/>
    </all>
    </complexType>
    </element>
    </schema>
    </types>
    To the following java bean:
    package biomaterials;
    public class
    ster{
    private String name;
    private Integer age;
    public Monster(String name, int age) {
    this.name=name;
    this.age=new Integer(age);
    public String getName() {
    return name;
    public void setName(String s) {
    this.name=s;
    public Integer getAge() {
    return age;
    public void setAge(int n) {
    this.age=new Integer(n);
    Here is my client code:
    package serviceClient;
    import java.util.Properties;
    import weblogic.soap.codec.CodecFactory;
    import weblogic.soap.codec.SoapEncodingCodec;
    import weblog
    ic.soap.codec.LiteralCodec;
    import weblogic.soap.WebServiceProxy;
    import weblogic.soap.SoapMethod;
    import weblogic.soap.SoapType;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.ejb.*;
    import biomaterials.ServiceSession;
    import java.io.File;
    import java.io.IOException;
    import org.w3c.dom.Element;
    import biomaterials.Monster;
    public class TestServiceClient
    public static void main( String[] arg ) throws Exception
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.soap.http.SoapInitialContextFactory");
    h.put("weblogic.soap.wsdl.interface",
    ServiceSession.class.getName() );
    Context context = new InitialContext(h);
    ServiceSession serv =
    (ServiceSession)context.lookup("http://localhost:7001/biocat/biomaterials.Se
    rviceSession/biomaterials.ServiceSession.wsdl");
    //try
    //int result = serv.getTheNum();
    //String result=serv.getBIXBiologicals();
    //int result=serv.setBIXInfo("TARNUMBER");
    Monster result=serv.getMonster();
    System.out.print("The value is "+result);
    } /* end of main */
    } /* end of class */
    Here is the method in my stateless session bean:
    public Monster getMonster()
    return new Monster("Sully",3);
    And here is my whole wsdl file:
    <% response.setHeader( "Content-Type", "text/xml; charset=utf-8" ); %>
    <definitions
    targetNamespace="java:biomaterials"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="java:biomaterials"
    >
    <types>
    <schema targetNamespace='java:biomaterials'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    <element name="Monster">
    <complexType>
    <all>
    <element name="name" type="string"/>
    <element name="age" type="int"/>
    </all>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="getBIXBiologicalsRequest"></message>
    <message name="getBIXBiologicalsResponse">
    <part name="return" type="xsd:string" />
    </message>
    <message name="setBIXInfoRequest">
    <part name="arg0" type="xsd:string" />
    <part name="arg1" type="xsd:string" />
    <part name="arg2" type="xsd:integer" />
    </message>
    <message name="setBIXInfoResponse"></message>
    <message name="getMonsterRequest"></message>
    <message name="getMonsterResponse">
    <part name="body" element="tns:Monster"/>
    </message>
    <portType name="ServiceSessionPortType">
    <operation name="getBIXBiologicals">
    <input message="tns:getBIXBiologicalsRequest"/>
    <output message="tns:getBIXBiologicalsResponse"/>
    I am using weblogic 6.1 SP1 on WIN NT.
    Please help me out in this issue.
    Thanks in advance.
    Sapan

    HI !
    i dont think that the servicepack is an issue in this case.
    anyway i ahve tried it on 6.1SP4 and still getting similar results.
    any pointers will be highly appreciated.
    Thanks,
    sapan
    "manoj cheenath" <[email protected]> wrote in message
    news:[email protected]...
    I just skimmed through your email. You said you
    are using WLS 6.1 SP1. Can you try this using
    the latest SP. There are many bug fixes done
    after SP1.
    Web service support in 6.1 is very limited. But, It
    looks like 6.1 can handle the case you are trying out.
    regards,
    -manoj
    "Sapan Agarwal" <[email protected]> wrote in message
    news:[email protected]...
    Hi All,
    I am trying to map a specific XML object to a specific java object usingweb
    services and received the following exception:
    java.lang.ClassCastException: weblogic.soap.xml.XMLObject
    at $Proxy0.getMonster(Unknown Source)
    at
    serviceClient.TestServiceClient.main(TestServiceClient.java:46)
    >>
    Exception in thread "main"
    I tried to map a simple type:
    <types>
    <schema targetNamespace='java:biomaterials'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    <element name="Monster">
    <complexType>
    <all>
    <element name="name"
    type="string"/>
    <element name="age"
    type="int"/>
    </all>
    </complexType>
    </element>
    </schema>
    </types>
    To the following java bean:
    package biomaterials;
    public class
    ster{
    private String name;
    private Integer age;
    public Monster(String name, int age) {
    this.name=name;
    this.age=new Integer(age);
    public String getName() {
    return name;
    public void setName(String s) {
    this.name=s;
    public Integer getAge() {
    return age;
    public void setAge(int n) {
    this.age=new Integer(n);
    Here is my client code:
    package serviceClient;
    import java.util.Properties;
    import weblogic.soap.codec.CodecFactory;
    import weblogic.soap.codec.SoapEncodingCodec;
    import weblog
    ic.soap.codec.LiteralCodec;
    import weblogic.soap.WebServiceProxy;
    import weblogic.soap.SoapMethod;
    import weblogic.soap.SoapType;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.ejb.*;
    import biomaterials.ServiceSession;
    import java.io.File;
    import java.io.IOException;
    import org.w3c.dom.Element;
    import biomaterials.Monster;
    public class TestServiceClient
    public static void main( String[] arg ) throws Exception
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.soap.http.SoapInitialContextFactory");
    h.put("weblogic.soap.wsdl.interface",
    ServiceSession.class.getName() );
    Context context = new InitialContext(h);
    ServiceSession serv =
    (ServiceSession)context.lookup("http://localhost:7001/biocat/biomaterials.Se
    rviceSession/biomaterials.ServiceSession.wsdl");
    file://try
    file://int result = serv.getTheNum();
    file://String result=serv.getBIXBiologicals();
    file://int result=serv.setBIXInfo("TARNUMBER");
    Monster result=serv.getMonster();
    System.out.print("The value is "+result);
    } /* end of main */
    } /* end of class */
    Here is the method in my stateless session bean:
    public Monster getMonster()
    return new Monster("Sully",3);
    And here is my whole wsdl file:
    <% response.setHeader( "Content-Type", "text/xml; charset=utf-8" ); %>
    <definitions
    targetNamespace="java:biomaterials"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="java:biomaterials"
    >
    <types>
    <schema targetNamespace='java:biomaterials'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    <element name="Monster">
    <complexType>
    <all>
    <element name="name" type="string"/>
    <element name="age" type="int"/>
    </all>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="getBIXBiologicalsRequest"></message>
    <message name="getBIXBiologicalsResponse">
    <part name="return" type="xsd:string" />
    </message>
    <message name="setBIXInfoRequest">
    <part name="arg0" type="xsd:string" />
    <part name="arg1" type="xsd:string" />
    <part name="arg2" type="xsd:integer" />
    </message>
    <message name="setBIXInfoResponse"></message>
    <message name="getMonsterRequest"></message>
    <message name="getMonsterResponse">
    <part name="body" element="tns:Monster"/>
    </message>
    <portType name="ServiceSessionPortType">
    <operation name="getBIXBiologicals">
    <input message="tns:getBIXBiologicalsRequest"/>
    <outputmessage="tns:getBIXBiologicalsResponse"/>
    >>
    >>
    >>
    >>
    >>
    >>
    >>
    I am using weblogic 6.1 SP1 on WIN NT.
    Please help me out in this issue.
    Thanks in advance.
    Sapan

  • Java.lang.ClassCastException in WebLogic 10.3.3 after recompile

    While editing some code a developer noticed this error after a recompile in Weblogic 10.3.3. And the underlying object is a DimensionLabel. And we tried this in Weblogic 9.2 and it works fine with no exception. The developer simply recompiled the class calling the DimensionLabel the SearchServiceProcessor and reran the application.
    net.nrj.service.SearchServiceProcessor java.lang.ClassCastException: net.nrj.alf.DimensionLabel java.lang.ClassCastException: net.nrj.alf.DimensionLabel at net.nrj.service.SearchServiceProcessor.setRefinements(SearchServiceProcessor.java:911) at net.nrj.service.SearchServiceProcessor.process(SearchServiceProcessor.java:134) at net.nrj.service.ServiceController.processRequest(ServiceController.java:323) at net.nrj.service.ServiceController.doGet(ServiceController.java:307) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:821) 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:300) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:529) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253) at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:719) at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:591) at weblogic.servlet.FileServlet.findSource(FileServlet.java:270) at weblogic.servlet.FileServlet.doGetHeadPost(FileServlet.java:191) at weblogic.servlet.FileServlet.service(FileServlet.java:173) at javax.servlet.http.HttpServlet.service(HttpServlet.java:821) 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:300) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3686) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650) 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:2268) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Thanks, Tom
    PS
    Here is my code :
    DimensionLabel dimLabel = (DimensionLabel);
    dimensionLabel.get(currentDimension.getName());
    currentRefinementDimension = new Refinement(); // Exception here
    currentRefinementDimension.setExpanded(true);
    I debugged into the code and the hashtable dimensionLabel has a DimensionLabel in it.
    Edited by: thenrick on Dec 10, 2010 3:15 PM

    Hi,
    Please make sure that there is no other version of *"net.nrj.alf.DimensionLabel"* class present in any other Class Loader
    There are various kind of Class Loaders : PreMordial Class Loader, BootStrap ClassLoader, System Class Loader (WebLogic ClassLoader), Application ClassLoader, Module Class Loader....
    net.nrj.service.SearchServiceProcessor java.lang.ClassCastException: net.nrj.alf.DimensionLabel java.lang.ClassCastException: net.nrj.alf.DimensionLabel If your code is working fine in WLS9.2 it means in WLS10.3.3 the same class is getting loaded from different Class Loaders...In order to find out which classLoader is being used to load that class please do the following:
    <b><font color=maroon>
    Class dimentionLevel=Class.forName("net.nrj.alf.DimensionLabel")
    ClassLoader cl=dimentionLevel.getClassLoader();
    System.out.println("\n\n\t DimentionLevel is loaded from ClassLoader: "+cl);
    </font></b>
    Above 3 Lines of code you need to write for "net.nrj.service.SearchServiceProcessor" class as well...Because i suspect that these two classes are getting loaded from two different class Loaders.
    If the Application Code is 100% correct The Main reason of ClassCastException is Classes are getting Loaded from two Different Class Loaders. You can also look at the Filtering ClassLoader Feature of WebLogic to Tell WebLogic to Load some Classes from a Specific ClassLoaders...As described Here .*http://middlewaremagic.com/weblogic/?page_id=192*
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic/?page_id=2261  (Middleware magic Is Here)

  • Table Data Source Search Result gives ClassCastException

    I set up a table data source and queried it using the following URL:
    http://machine_name:port/ultrasearch/query/search.jsp?usearch.p_mode=Advanced
    and specified my table data source. The result URLs
    came up with the right primary key id. However when I
    click the URL, I get:
    java.lang.ClassCastException: com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].sql.OrclCallableStatement
    at oracle.ultrasearch.query.DisplayUtil.displayTableUrl(DisplayUtil.java:131)     
    at display.jspService(_display.java:1568)     [SRC:/display.jsp:81]     
    at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)     
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)     
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)     
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)     
    at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    I have specified NUMBER as the data type for my primary key column and it is of type NUMBER in my table DDL. Is that OK or could this be causing the problem?
    Dinesh

    Dinesh,
    Can you provide the following information for creating the table data source:
    - Is the table data source based on a table or a view?
    - Is the table/view in the local or remote database?
    - If the table is in the local database, is the table in the instance owner schema or another schema?
    - Do you login to Ultra Search Admin Tool as the instance owner or other users?
    - Does the instance owner schema have privileges to read the contents in the table/view?

  • FileUpload give ClassCastException

    Hi,
    I am using FileUpload ui in my application. I restrict file extention. It gives error msg when other then pdf file uploads. But when i upload second time it give CallCastException .
    Please let me know that,.
    Regards,
    Gurprit Bhatia

    Hi
    Try with the following code in the Action handler
    //file source is a context attr with type binary
         IWDAttributeInfo attInfo =  wdContext.getNodeInfo().getAttribute(IPrivateSendMailView.IContextElement.FILE_SOURCE);
         // requires type cast
         IWDModifiableBinaryType binaryType =  (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
         IPrivateSendMailView.IContextElement element =      wdContext.currentContextElement();
         //     if a file in the FileUpload field exists
         if (element.getFileSource() != null) {
           try {
                    //file storage map is a Hash map to place all upload files details
              String mimeType = binaryType.getMimeType().toString();
              byte[] file = element.getFileSource();
              InputStream fileInput = new ByteArrayInputStream(file);
              fileStorageMap.put(wdContext.currentContextElement().getFileName(),fileInput);
              // NOTE: context attribute 'fileName' must not be set, because the
              // FileUpload-UI-element property 'fileName' is bound to it. Consequently the
              // fileName is automatically written to the context after file upload.
              wdComponentAPI.getMessageManager().reportMessage(IMessageAdobeTestComp.FILE_UPLOADED, new Object[] { binaryType.getFileName()}, false);
           } catch (Exception e) {
              throw new WDRuntimeException(e);
         //     if no file in the FileUpload field exists
         else {
           // report error message
           IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
           msgMgr.reportContextAttributeMessage(element,attInfo,IMessageAdobeTestComp.NO_FILE,new Object[] { "" },true);
    Regards
    Kalyan

  • EJB 3.0 JNDI lookup gives ClassCastException

    The object returned by the JNDI lookup of a EJB 3.0 Statefull Session Bean is not of the expected type, but rather of an obviously generated Proxy type (ejb_DistributionProcessor_LocalProxy_4h350 instead of expected DistributionProcessor). Does anybody have any idea about what this could be?
    Details:
    We are using annotations @Statefull and @Local and are deploying on a standalone OC4J 10.1.3.1. The beans are presumably loaded correctly since they get listed in Enterprise Managers list of beans for the application. There is also obviously an object at the desired JNDI location, presumably some kind of proxy. Unfortunately the proxy cannot be cast to the original type making the retrieved object useless.
    I can supply more details if necessary, but really don't know what more is relevant.

    Well, I figured it out, it seems I had the classes in both the EJB and the WEB deployment, so when casting it tried to cast X from EJB to X from WEB application and since they reside in different locations they weren't the same file and therefore not castable.

  • ClassCastException: weblogic.xml.jaxp.WebLogicTransformerFactory

    I am running Weblogic 6.1 on a Solaris 7 machine.
    I have added the following runtime properties in my startWebLogic.sh to handle
    Weblogic 6.1
    transformation bugs.
    -Djavax.xml.parsers.DocumentBuilderFactory=weblogic.xml.jaxp.WebLogicDocumentBuilderFactory
    -Djavax.xml.transform.TransformerFactory=weblogic.xml.jaxp.WebLogicTransformerFactory
    -Djavax.xml.parsers.SAXParserFactory=weblogic.xml.jaxp.WebLogicSAXParserFactory
    After adding these parameters, my servlet (which is loaded on startup and creates
    a Transformer
    Template during its init function for future XSL transformations) was working
    fine.
    Now, however, I need to create an XML Registry in order to perform entity resolution.
    When I created an XML Registry and entered the above values in the Registry, my
    servlet now
    throws the following exception:
    java.lang.ClassCastException: weblogic.xml.jaxp.WebLogicTransformerFactory
    at weblogic.xml.jaxp.RegistrySAXTransformerFactory.<init>(RegistrySAXTransformerFactory.java:48)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:119)
    at com.nokia.imessage.AlertServlet.loadStylesheets(AlertServlet.java:549)
    at com.nokia.imessage.AlertServlet.init(AlertServlet.java:59)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:698)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:641)
    My XML Registry is the following:
    <XMLRegistry
    DocumentBuilderFactory="weblogic.xml.jaxp.WebLogicDocumentBuilderFactory"
    Name="MyXMLRegistry"
    SAXParserFactory="weblogic.xml.jaxp.WebLogicSAXParserFactory"
    TransformerFactory="weblogic.xml.jaxp.WebLogicTransformerFactory"
    WhenToCache="cache-on-reference">
    <XMLEntitySpecRegistryEntry EntityURI="dtds/pap_1.0.dtd"
    Name="XMLEntitySpecRegistryEntry-1000329224935"
    PublicId="-//WAPFORUM//DTD PAP 1.0//EN"
    SystemId="http://www.wapforum.org/DTD/pap_1.0.dtd" WhenToCache="cache-at-initialization"/>
    </XMLRegistry>
    Why do the runtime parameters work but the XML Registry (with the same information)
    don't?
    Am I doing something wrong or is there a solution/workaround for this problem?
    Thank you!
    Samantha

    Hello,
    I have the answer, thanks for BEAs customer support, there is a bug from WL
    6.1, and it should be fixed with sp2 (scheduled for the middle of December).
    So here is the answer from BEA:
    -----------------answer-from-Gareth Chapman--------------------
    When I tried the code you send I did not receive the ClassCastException but
    a ClassNotFoundException, I think the root problem could be the same though.
    There looks to be two parts of a bug that's stopping this code from working
    correctly:
    (CR 055082)
    To work around the ClassNotFoundException (hopefully in your case the
    ClassCastException) add this line of code before calling the
    XSLTProcessorFactory.getProcessor():
    System.setProperty("javax.xml.transform.TransformerFactory",
    "weblogic.apache.xalan.processor.TransformerFactoryImpl");
    Secondly I received the error:
    SystemId Unknown; Line 0; Column 0; SystemId Unknown; Line 0; Column 0;
    javax.xml.transform.TransformerException: SAX Exception
    Which looks to be part of the same bug, in order to fix this you will need
    to:
    Extract org/apache/xalan/res/XSLTInfo.properties from
    $WL_HOME/lib/weblogic.jar change the path to
    weblogic/apache/xalan/res/XSLTInfo.properties and then add it to
    $WL_HOME/lib/weblogic.jar
    Steps to do this:
    WL_HOME is the directory where weblogic is installed....e.g.
    e:\bea6.1\wlserver6.1
    1) Make a backup copy of %WL_HOME%\lib\weblogic.jar
    2) jar xvf %WL_HOME%\lib\weblogic.jar
    org/apache/xalan/res/XSLTInfo.properties
    3) move org weblogic
    4) jar uvf %WL_HOME%\lib\weblogic.jar weblogic
    -----------------answer-from-Gareth Chapman--------------------
    My case the path of XSLTInfo.properties was correct, so I did not have to
    make any chances from it.
    "Slava Imeshev" <[email protected]> wrote in message
    news:[email protected]...
    Hi Jouni,
    Could you post full text of the exception here?It is (was) the full Exception!
    Regards,
    Slava Imeshev
    "Jouni Koistinen" <[email protected]> wrote in message
    news:[email protected]...
    I have (allmost) same problem.
    I get exception from XSLTProcessor.process() when running code above:
    java.lang.ClassCastException:
    weblogic.xml.jaxp.RegistrySAXTransformerFactory
    My code works fine when I use WL 6.0 sp2, but WL 6.1 sp1 gives that
    exception. If I let XSLTInputSource:s empty, WL 6.0 sp2 gives another
    exception: weblogic.apache.xalan.xslt.XSLProcessorException: File "null"not
    found, but WL 6.1 sp1 gives still the same exception, so prosessor noteven
    try to found those files.
    If I put xalan.jar (version 2.0.1) to my CLASSPATH and then run class
    like
    Samantha, then it works fine, but without xalan.jar, even if I run itlike
    this, its not working:
    java -Djavax.xml.parsers.DocumentBuilderFactory=weblogic.xml.jaxp.WebLogicDo
    >>
    >
    cumentBuilderFactory -Djavax.xml.transform.TransformerFactory=weblogic.xml.j
    >>
    >
    axp.WebLogicTransformerFactory -Djavax.xml.parsers.SAXParserFactory=weblogic
    .xml.jaxp.WebLogicSAXParserFactory xalanTest
    We are going to update our servers to 6.1sp1 from 6.0sp2, but I need toget
    system working first, I have not tested this yet from servlet but I
    think
    its working just like from console.
    What can I do with this?
    xalanTest.java:
    import weblogic.apache.xalan.xslt.XSLTProcessorFactory;
    import weblogic.apache.xalan.xslt.XSLTInputSource;
    import weblogic.apache.xalan.xslt.XSLTResultTarget;
    import weblogic.apache.xalan.xslt.XSLTProcessor;
    public class xalanTest {
    public static void main(String[] args) {
    try {
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    XSLTInputSource inXML = new XSLTInputSource("atom.xml");
    XSLTInputSource inXSL = new XSLTInputSource("atom.xsl");
    XSLTResultTarget out = new XSLTResultTarget(System.out);
    System.out.println("Start parsing ...\n");
    processor.process(inXML,inXSL,out);
    System.out.println("\n... Parsing ok");
    }catch (Exception e){
    System.out.println(e);
    atom.xml:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xml" href="17-2.xsl"?>
    <PERIODIC_TABLE>
    <ATOM STATE="GAS">
    <NAME>Hydrogen</NAME>
    <SYMBOL>H</SYMBOL>
    </ATOM>
    </PERIODIC_TABLE>
    atom.xsl:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="PERIODIC_TABLE">
    <html>
    <xsl:apply-templates/>
    </html>
    </xsl:template>
    <xsl:template match="ATOM">
    <P>
    <xsl:apply-templates/>
    </P>
    </xsl:template>
    </xsl:stylesheet>
    Thanks
    -Jouni Koistinen-

  • ClassCastException really means "not Serializable" in Weblogic

    I'm writing this more as a public service announcement than anything else. We spent a whole day trying to diagnose a strange ClassCastException in Weblogic 8.1 SP2.
    Basically, a local EJB 2.0 call was working fine for our test page, but the remote call from another server was failing. We would see a ClassCastException on a call to writeObject(). We assumed the RMI stubs and skeletons were out of synch or had a classloader issue. Nope. The complex return type did not implement Serializable. Rather than indicate this in the logs, WL threw a cryptic CCE.
    When decompiling their generated classes, we did in fact see that they were attempting to cast to Serializable without first checking via instanceof.
    So, please spare yourself the pain we went through. If you get a CCE in WL 8.1, first check all your arguments and return types (and any exceptions) are Serializable.
    - Saish

    I'm writing this more as a public service announcement than anything else. We spent a whole day trying to diagnose a strange ClassCastException in Weblogic 8.1 SP2.
    Basically, a local EJB 2.0 call was working fine for our test page, but the remote call from another server was failing. We would see a ClassCastException on a call to writeObject(). We assumed the RMI stubs and skeletons were out of synch or had a classloader issue. Nope. The complex return type did not implement Serializable. Rather than indicate this in the logs, WL threw a cryptic CCE.
    When decompiling their generated classes, we did in fact see that they were attempting to cast to Serializable without first checking via instanceof.
    So, please spare yourself the pain we went through. If you get a CCE in WL 8.1, first check all your arguments and return types (and any exceptions) are Serializable.
    - Saish

  • How to use JSSE HttpsURLConnection in WL 5.1

    I am trying to POST, from a jsp within weblogic,
    to an outside https URL. It appears to me that
    weblogic.net.http.HttpsURLConnection cannot POST
    to a connection.
    I am now trying to use Sun's JSSE 1.0.3.
    I've installed jcert.jar, jnet.jar and jsse.jar to
    C:\usr\local\java\jdk1.3.1_04\jre\lib\ext
    Here is the relevant code:
    <%@ page import="java.io.*,java.net.*,java.util.*,java.lang.*,javax.servlet.*,java.security.*,com.sun.net.ssl.*"
    %>
    <%
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("java.protocol.handler.pkgs", com.sun.net.ssl.internal.www.protocol");
    url = new java.net.URL("https://www.some-secure-site.com"); // This is where
    the ClassCastException occurs.
    %>
    Here is the thread dump:
    java.lang.ClassCastException: weblogic.net.http.HttpsURLConnection
    at jsp_servlet._payPal.__verify._jspService(__verify.java:150)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:945)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:909)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)
    I think I need to register an HTTPS URLStreamHandler when
    instantiating my URL object so I receive a
    com.sun.net.ssl.HttpsURLConnection instead of a
    weblogic.net.http.HttpsURLConnection - like so:
    URL url = new URL("https", "some.site.com", 443, "/some/uri", new some.URLStreamHandler());
    Any help is greatly appreciated.
    -SS

    you should use specifal constructor .. for url..
    some thing like..
    URL( "https","www.verisign.com","443","",new
    com.sun.net.ssl.internal.www.protocol.https.Handler());
    thanks
    kiran
    "sstaats" <[email protected]> wrote in message
    news:[email protected]...
    >
    I am trying to POST, from a jsp within weblogic,
    to an outside https URL. It appears to me that
    weblogic.net.http.HttpsURLConnection cannot POST
    to a connection.
    I am now trying to use Sun's JSSE 1.0.3.
    I've installed jcert.jar, jnet.jar and jsse.jar to
    C:\usr\local\java\jdk1.3.1_04\jre\lib\ext
    Here is the relevant code:
    <%@ pageimport="java.io.*,java.net.*,java.util.*,java.lang.*,javax.servlet.*,java.se
    curity.*,com.sun.net.ssl.*"
    %>
    <%
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("java.protocol.handler.pkgs",com.sun.net.ssl.internal.www.protocol");
    url = new java.net.URL("https://www.some-secure-site.com"); // This is
    where
    the ClassCastException occurs.
    %>
    Here is the thread dump:
    java.lang.ClassCastException: weblogic.net.http.HttpsURLConnection
    at jsp_servlet._payPal.__verify._jspService(__verify.java:150)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :120)
    atweblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:945)
    atweblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:909)
    atweblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:269)
    atweblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
    atweblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)
    I think I need to register an HTTPS URLStreamHandler when
    instantiating my URL object so I receive a
    com.sun.net.ssl.HttpsURLConnection instead of a
    weblogic.net.http.HttpsURLConnection - like so:
    URL url = new URL("https", "some.site.com", 443, "/some/uri", newsome.URLStreamHandler());
    >
    Any help is greatly appreciated.
    -SS

  • 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

  • Weblogic throws NullPointerException when using ServiceControl.setTimeout

    We are invoking a SOAP service via a com.bea.control.ServiceControl that was generated from a WSDL (right click WSDL, Generate Service Control) using Weblogic 8.1.6.
    SOAP service execution is successful using an http and https endpoint. However, when setting a timeout via ServiceControl.setTimeout(int millisecods) method, the Weblogic API is throwing a NullPointerException when using an https endpoint. When using an http endpoint with the setTimeout method execution is successful.
    DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: opening connection to https://[... edit removed ...]
    DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Response generation exception
    Throwable: java.lang.NullPointerException
    Stack Trace:
    java.lang.NullPointerException
         at weblogic.net.http.HttpsClient.openWrappedSSLSocket(HttpsClient.java:455)
         at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:235)
         at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:389)
         at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:209)
         at weblogic.net.http.HttpClient.New(HttpClient.java:228)
         at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:246)
         at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:217)
         at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:189)
         at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:179)
         at com.bea.wlw.runtime.jws.call.SoapHttpCall.invoke(SoapHttpCall.java:80)
         at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1288)
         at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1155)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
         at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)
    DEBUG com.bea.wlw.runtime.jws.call.SoapFault [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: SoapFault exception throwable e
    DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: response code=0, responseMsg=null
    DEBUG com.bea.wlw.runtime.jws.call.SoapHttpCall [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: closed connection to https://[... edit removed ...]
    WARN WLW.INVOKE.[... edit removed ...] [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: Id=[... edit removed id ...] Method=[... edit removed method ...]; Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.lang.NullPointerException
    String:null
    Detail:
    END SERVICE FAULT
    ERROR [... edit removed ...]
    [ExecuteThread: '10' for queue: 'weblogic.kernel.Default']: ServiceControlException
    com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.lang.NullPointerException
    String:null
    Detail:
    END SERVICE FAULT
         at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
         at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)

    Thanks for the suggestion. But with -DUseSunHttpHandler=true the Weblogic API is throwing a ClassCastException with or without the timeout value set.
    Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.lang.ClassCastException
    String:null
    Detail:
    END SERVICE FAULT
    ERROR: ServiceControlException
    com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.lang.ClassCastException
    String:null
    Detail:
    END SERVICE FAULT
         at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1268)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
         at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)

  • ClassCastException, filter with webservice

    I put together 'nothing' filter with wrapper on request.
              When I try to put filter in front of webservice, it causes the exception.
              If I use the filter with plain servlet, it is ok.
              If I modify the filter to use original request, not the wrapper, it is also fine.
              Has anybody experienced something similar ?
              Is something conceptual wrong with puting a filter in front of webservice ?
              Thanks
              Here are the details:
              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.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
                   at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
                   at sunrise.crm.logger.MiniFilter.doFilter(MiniFilter.java:37)
                   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)
              import java.io.IOException;
              import javax.servlet.Filter;
              import javax.servlet.FilterChain;
              import javax.servlet.FilterConfig;
              import javax.servlet.ServletException;
              import javax.servlet.ServletRequest;
              import javax.servlet.ServletResponse;
              import javax.servlet.http.HttpServletRequest;
              import javax.servlet.http.HttpServletRequestWrapper;
              import org.apache.commons.logging.Log;
              import org.apache.commons.logging.LogFactory;
              public class MiniFilter implements Filter {
              private static Log log = LogFactory.getLog(MiniFilter.class);
              public void init(FilterConfig filterConfig) throws ServletException {
              log.debug("mini filter loaded" );
              public void doFilter(ServletRequest request, ServletResponse response,
              FilterChain chain) throws IOException, ServletException {
              long startTime = System.currentTimeMillis();
              HttpServletRequest hr = (HttpServletRequest)request;
              MyRequestWrapper requestWrapper = new MyRequestWrapper( hr );
              log.debug( "hit" + hr.getRequestURI() );
              chain.doFilter(requestWrapper, response);
              public class MyRequestWrapper extends HttpServletRequestWrapper {
              public MyRequestWrapper(HttpServletRequest request) {
              super(request);
              public void destroy() {
              log.debug( "bye bye");
              }

    Hi Rajat,
    Thanks for ur response. Actually I downloaded a CompressionFilter from the location give by u
    "http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html"
    It is woring file with the servlet and giving the expected result. But when I apply it with the jsp it shows me blank screen(Browser window). I Debug it and find out that filter is being called with the jsp but when response being compress and write back into the outputstream, actually it is not writing anything.
    If u can help me for the same, would be very nice foe me.
    Thanks in advance
    Manish

  • SSL bug in WebLogic Server 6.1 SP1 ?

    Anybody have any idea why I get this exception:
    java.lang.ClassCastException: weblogic.management.WebLogicObjectName
         at $Proxy0.getKernelDebug(Unknown Source)
         at weblogic.management.configuration.ServerMBean_CachingStub.getKernelDebug(ServerMBean_CachingStub.java:1185)
         at weblogic.kernel.Kernel.getDebug(Kernel.java:145)
         at weblogic.security.RSApkcs1.<init>(RSApkcs1.java:58)
         at weblogic.security.RSAMDSignature.<init>(RSAMDSignature.java:48)
         at weblogic.security.RSAMDSignature.<init>(RSAMDSignature.java:77)
         at weblogic.security.X509.verifySignature(X509.java:242)
         at weblogic.security.X509.verify(X509.java:172)
         at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:139)
         at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:118)
         at weblogic.security.SSL.Handshake.input(Handshake.java:115)
         at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:1043)
         at weblogic.security.SSL.SSLSocket.clientInit(SSLSocket.java:405)
         at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:265)
         at weblogic.security.SSL.SSLSocket.<init>(SSLSocket.java:212)
         at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:85)
         at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:143)
         at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:67)
         at weblogic.net.http.HttpClient.New(HttpClient.java:151)
         at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:39)
         at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:156)
    when trying to open a HTTPS connection using the JSSE? Relevant code
    is:
    String handlers =
    System.getProperty("java.protocol.handler.pkgs");
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol|" + handlers);
    java.security.Security.addProvider(new
    com.sun.net.ssl.internal.ssl.Provider());
    X509TrustManager tm = new MyX509TrustManager();
    KeyManager []km = null;
    TrustManager []tma = {tm};
    SSLContext sc = SSLContext.getInstance("ssl");
    sc.init(km, tma, new java.security.SecureRandom());
    SSLSocketFactory sf1 = sc.getSocketFactory();
    HttpsURLConnection.setDefaultSSLSocketFactory(sf1);
    URL u = new URL(url);
    c = (HttpURLConnection) u.openConnection();

    We get a similar message just by starting a server in the cluster
    environment ...
    We're using 6.1 SP2!
    ####<Jul 22, 2002 8:04:31 PM CEST> <Error> <Kernel> <su37sr48>
    <su37sr48-2> <ExecuteThread: '0' for queue:
    '__weblogic_admin_rmi_queue'> <system> <> <000000> <ExecuteRequest
    failed>
    java.lang.ClassCastException: weblogic.management.WebLogicObjectName
         at $Proxy0.getSSL(Unknown Source)
         at weblogic.management.configuration.ServerMBean_CachingStub.getSSL(ServerMBean_CachingStub.java:1962)
         at weblogic.security.WLMessageDigest.getInstance(WLMessageDigest.java:61)
         at weblogic.security.SSL.GenericCipher.generateMAC(GenericCipher.java:75)
         at weblogic.security.SSL.GenericCipher.<init>(GenericCipher.java:57)
         at weblogic.security.SSL.SSLCiphertext.<init>(SSLCiphertext.java:47)
         at weblogic.security.SSL.SSLCiphertext.<init>(SSLCiphertext.java:52)
         at weblogic.security.SSL.SSLSocket.sendRecord(SSLSocket.java:1048)
         at weblogic.security.SSL.SSLSocket.sendData(SSLSocket.java:1028)
         at weblogic.security.SSL.SSLSocketOutputStream.write(SSLSocketOutputStream.java:66)
         at weblogic.socket.SocketMuxer.write(SocketMuxer.java:130)
         at weblogic.rjvm.t3.T3JVMConnection.sendMsg(T3JVMConnection.java:311)
         at weblogic.rjvm.MsgAbbrevJVMConnection.sendOutMsg(MsgAbbrevJVMConnection.java:243)
         at weblogic.rjvm.MsgAbbrevJVMConnection.sendMsg(MsgAbbrevJVMConnection.java:139)
         at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:404)
         at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:480)
         at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.java:166)
         at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:174)
         at weblogic.rjvm.MsgAbbrevOutputStream.send(MsgAbbrevOutputStream.java:235)
         at weblogic.rmi.internal.BasicServerRef.postInvoke(BasicServerRef.java:341)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:272)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    [email protected] (Michael Snell) wrote in message news:<[email protected]>...
    Anybody have any idea why I get this exception:
    java.lang.ClassCastException: weblogic.management.WebLogicObjectName
         at $Proxy0.getKernelDebug(Unknown Source)
         at weblogic.management.configuration.ServerMBean_CachingStub.getKernelDebug(ServerMBean_CachingStub.java:1185)
         at weblogic.kernel.Kernel.getDebug(Kernel.java:145)
         at weblogic.security.RSApkcs1.<init>(RSApkcs1.java:58)
         at weblogic.security.RSAMDSignature.<init>(RSAMDSignature.java:48)
         at weblogic.security.RSAMDSignature.<init>(RSAMDSignature.java:77)
         at weblogic.security.X509.verifySignature(X509.java:242)
         at weblogic.security.X509.verify(X509.java:172)
         at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:139)
         at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:118)
         at weblogic.security.SSL.Handshake.input(Handshake.java:115)
         at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:1043)
         at weblogic.security.SSL.SSLSocket.clientInit(SSLSocket.java:405)
         at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:265)
         at weblogic.security.SSL.SSLSocket.<init>(SSLSocket.java:212)
         at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:85)
         at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:143)
         at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:67)
         at weblogic.net.http.HttpClient.New(HttpClient.java:151)
         at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:39)
         at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:156)
    when trying to open a HTTPS connection using the JSSE? Relevant code
    is:
    String handlers =
    System.getProperty("java.protocol.handler.pkgs");
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol|" + handlers);
    java.security.Security.addProvider(new
    com.sun.net.ssl.internal.ssl.Provider());
    X509TrustManager tm = new MyX509TrustManager();
    KeyManager []km = null;
    TrustManager []tma = {tm};
    SSLContext sc = SSLContext.getInstance("ssl");
    sc.init(km, tma, new java.security.SecureRandom());
    SSLSocketFactory sf1 = sc.getSocketFactory();
    HttpsURLConnection.setDefaultSSLSocketFactory(sf1);
    URL u = new URL(url);
    c = (HttpURLConnection) u.openConnection();

  • Bug in weblogic 8.1 SP6 at weblogic.security.SSL.SSLCertificate.verify()

    Hi, I got an java.lang.NullPointerException
    at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:235)
    at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:116)
    at weblogic.security.SSL.Handshake.input(Handshake.java:121)
    at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:1117)
    at weblogic.security.SSL.SSLSocket.clientInit(SSLSocket.java:432)
    at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:276)
    at weblogic.security.SSL.SSLSocket.<init>(SSLSocket.java:222)
    at weblogic.security.SSL.SSLSocketFactory.createSocket(SSLSocketFactory.java:213)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:238)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:389)
    at weblogic.net.http.HttpsClient.<init>(HttpsClient.java:209)
    at weblogic.net.http.HttpClient.New(HttpClient.java:228)
    at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:246)
    at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:217)
    at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:189)
    when a small piece of code running in weblogic 8.1 SP6 and trying to make url connection to a https server.
    I have verified that the runtime environment has the cacerts file including the CA ( issuer for the server certificate for the server the code was trying to connect to ).
    I wonder that anybody has the same problem. Or you can give a hint how to fix it.
    Thank you.

    Sorry, i saw the forum about your problem in BEA 8.1 SP 6 about a
    weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:235)
    error and you said that bea sent a path named CR295205_810sp6.jar.
    I have the same problem
    Do you have this patch?
    Could you send it to me?
    my email address is
    [email protected]

Maybe you are looking for

  • Error while upgrading OBIEE10g RPD to 11g Cannot release MBean - not locked

    Hi,, I have successfully installed OBIEE 11g and now truing to upgrade 10g RPD to 11g RPD using Upgrade Assistant. The process gets failed with following error in the LOG file; *[2013-02-19T00:54:53.367+05:30] [bi] [NOTIFICATION] [oracle.bi.security]

  • Cannot install Firefox at all - error message image failed to mount 0xe00002c9. Have OSX 10.4.11

    Have tried to DL versions 3.5.13, 3.6.9, and 3.6.10 (not in that order). Only have Safari 4.1.2 as basic browser. Automatic installer never opens, and when I double-click on the .dmg icon, I get error message 0xe00002c9.

  • Flag appears in tool bar...

    Alright, I know how to get rid of the flag, and I know what it is related to. However, I have no idea what would have caused it to (seemingly) randomly appear... What are the possible actions to get the flag to appear in the toolbar (other than going

  • Itunes error: "There was a problem downloading "AroundMe".

    Ever since I downloaded the AroundMe app, I've been getting this error whenever I opened Itunes: There was a problem downloading "AroundMe". Part of the file seems to be corrupted. To redownload the file, choose "Check for Available Downloads " from

  • Problem in dropdown list display in module pool

    Hi All,    One of the fields of  my module pool program is a drop down list. I am able to populate the values to the list but when i select any value, it doesnot come to the field. Can any one help me out in this ? Thanks in advanve ... Ranjita