Random classcast exception - com.sun.jndi.cosnaming.CNCtxFactory

Hi,
I am trying to use a remote ejb (weblogic 8.1.5/ jdk 14) from a j2se 1.5 rmi-iiop client.
If I use com.sun.jndi.cosnaming.CNCtxFactory to look up the remote home & then use the remote interface, I get the following error RANDOMly (i.e only some calls succeed).
java.lang.ClassCastException
     at xxx.equals(xxxjava:129)
     at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1471)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
     at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
     at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
     at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
     at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
     at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
     at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
     at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
     at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
     at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
     at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
     at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
     at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
     at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
     at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
     at weblogic.iiop.RMIMsgOutput.writeObject(RMIMsgOutput.java:117)
     at xxx.yyy_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:492)
     at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:435)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:430)
     at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
I had a look at IndirectionValueHashtable class. It looks like the classcast is happening because the "handle-to-object" map has non String values.
Could this be a corba compatabilty issue?
The problem doesn't occur if I use weblogic initial context factory & t3 protocol.
What is the best way to overcome this problem? I dont want to distribute weblogic.jar [from 8.1.5 server]. wlclient is okay.
thanks

Tony Zimmer <> writes:
Certainly looks like a bug, in which case you need to go through
support to get it fixed. Do however check that your objects are in
fact serializable (including all their fields).
andy
Tried a few more combinations. No luck so far.
classcast exception for some objects at some times
server: WebLogic Server 10.0 / Sun 1.5.0_06/ WinNT 6
client: Sun jdk 1.5.0_11/1.4.2_14
java.lang.ClassCastException: java.lang.String
     at xxxpack.client.PaymentReceipt.equals(PaymentReceipt.java:881)
     at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1836)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
     at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
     at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
     at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
     at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1957)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
     at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
     at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
     at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
     at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1957)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
     at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
     at xxxpack.server.ProcessPayment_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
     at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
     at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
     at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
server: WebLogic Server 8.1 SP6 / Sun 1.4.2_11 / WinNT 6
client jdk 1.4.2_14/1.5.0_11:
java.lang.ClassCastException
     at xxxpack.client.PurchaseAmount.equals(PurchaseAmount.java:148)
     at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1471)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
     at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
     at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
     at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
     at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
     at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
     at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
     at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
     at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
     at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
     at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
     at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
     at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
     at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
     at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
     at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
     at weblogic.iiop.RMIMsgOutput.writeObject(RMIMsgOutput.java:117)
     at xxxpack.server.ProcessPayment_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
     at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
     at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Do you have a list/ martix of client-server versions used for the bug fixes?
Thanks

Similar Messages

  • Com.sun.jndi.cosnaming.CNCtxFactory in java stored, makes ORA-03113

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    In java store procedure we have to contact an iiop enabled application
    If I specify
    env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    In the java stored procedure
    the SQL call will end with the error :
    ORA-03113: end-of-file on communication channel
    with a huge core dump in cdump
    any idea?
    The class exists in the loaded JVM
    it is valid and resolved
    Nothing can explain that.
    Thanks in advance
    Message was edited by:
    Réda BOULOS

    Yes, CORBA as well as the entire J2EE stack has been desupported in 9i R2.
    I ran the sample using 10g database which is Java SE 4.0 compatible and therefore susceptible of acting as RMI/IIOP client. Here are the jars file i have loaded in my example
    loadjava -u scott/tiger@localhost:port:instance_name -r -v
    $J2EE_HOME/ejb/helloworld/dist/stub_helloworld.jar
    $J2EE_HOME/lib/ejb.jar
    $J2EE_HOME/ejb/helloworld/dist/helloworld-ejb.jar
    $J2EE_HOME/ejb/helloworld/dist/helloworld-client.jar
    [code/]
    In addition, you need to:
    - grant ejbclient to the schema in question
    - grant java.util.PropertyPermission, java.lang.RuntimePermission, java.util.logging.LoggingPermission, and java.util.PropertyPermission
    Frankly you need to read the section of my book to get everything right;
    for example i tweak a bit the JNDI lookup in the client code.
    Fwiw, SAP JCO callout using RMI is also covered in chapter 4 of my book.
    Kuassi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • NullPointerException at com.sun.jndi.ldap.Connection.run(Connection.java:52

    We are using the Sun jndi 1.2.1 files from a Java client to
    access the IBM SecureWay Directory 3.2 server. Our test case is
    retrieving entries using the ctx.getAttributes (String, String[])
    method. Occasionally we are receiving the following error.
    java.lang.NullPointerException
    at com.sun.jndi.ldap.Connection.run(Connection.java:525)
    at java.lang.Thread.run(Thread.java:481)
    The java.lang.NullPointerException is coming from the Sun JNDI file.
    Our program is not catching this exception.
    Has anyone seen this problem before and have any ideas on how this can be resolved?

    Download and use LDAP 1.2.3 or JDK 1.3.1.
    The problem should go away.

  • JNDI: Can't find Class com.sun.jndi.nis.NISCtxFactory

    Hi
    I searched this forum for similar problems .. and I also found some, but this questions were either not be answered or not detailed enough.
    Now to my question. I've got a Java File that I imported to Oracle (I use it from PL/SQL). This Java File contains following code.
    static Properties = System.getProperties();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.nis.NISCtxFactory");
    env.put(Context.PROVIDER_URL, "nis://disney/geo.unizh.ch");
    Context ctx = new InitialContext(env);
    And if I run it from oracle(PL/SQL) I get the error below.
    javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.nis.NISCtxFactory. Root exception is java.lang.ClassNotFoundException: com/sun/jndi/nis/NISCtxFactory
    at java.lang.Class.forName0(Class.java)
    at java.lang.Class.forName(Class.java)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java)
    at javax.naming.InitialContext.init(InitialContext.java)
    at javax.naming.InitialContext.<init>(InitialContext.java)
    at GIUZContext.getCtx(GIUZContext:42)
    at CheckPwd.check(CheckPwd:18)
    The nis.jar I imported with the loadjava, so actuallay should it be in the database. But why it cant find this class (NISCtxFactory)!
    I get no error if I use this code ->
    NISCtxFactory test = new NISCtxFactory();
    System.out.println(test);
    It would be very nice if you could give me some clues. TNX!!
    Oracle Version 8.1.7.
    Cyrill

    Hi Cyrill,
    I don't know what other postings you have read, and I also don't
    know why they were insufficient for you, so excuse me if I repeat
    things you already know.
    As far as I know, the error message you are getting is most probably
    due to one of the following three causes:
    1. The class is not loaded into the database.
    2. The class is loaded but is not "valid".
    3. You don't have permission to access the class.
    To the best of my memory, there have been several posts to either
    this forum or the "Products > Database > JVM" forum
    http://forums.oracle.com/forums/forum.jsp?id=424322
    that (in my opinion) sufficiently explain how to resolve the problem
    for each of the three causes listed above.
    Personally, I believe that the Oracle documentation sufficiently
    explains how to resolve the above three issues, and I have posted
    the URLs for the relevant Oracle documentation several times already.
    I am guessing that you are trying to "talk" to an EJB (probably deployed
    in SUN's application server) from a java stored procedure in the Oracle
    database. If that is the case, then that question has been discussed
    many times in this forum. Perhaps you can say why those discussions
    were not sufficiently helpful for you.
    Hope this helps.
    Good Luck,
    Avi.

  • Message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl

    When I try to request a simple reuest (getversion) from the drm wsdl I receive an error in the XML repsonse (see below).
    I read somewhere in the forum that I have to change the external direcortory provider in HSS from "MSAD" to LDAP/OID. But this can not be configured in HSS since I can not change the ID attribute (its greyed out).
    Does anyone knows how I can sole it: I think its related to: "message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl"
    Perhaps wrong or missing jar files in the connection configuration?
    Any help is welcome.
    Detlev
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Cannot getVersion.
    [Tue Feb 14 16:03:06 CET 2012] - Oracle EPM Foundation Agent
    Error in request: begin session (message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl)</faultstring>
    <detail>
    <DrmServiceException xmlns="http://drm.webservices.epm.oracle">
    <Message xmlns:ns2="http://drm.webservices.epm.oracle" xmlns="">Cannot getVersion.
    [Tue Feb 14 16:03:06 CET 2012] - Oracle EPM Foundation Agent
    Error in request: begin session (message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl)</Message>
    <Code xmlns:ns2="http://drm.webservices.epm.oracle" xmlns="">0</Code>
    </DrmServiceException>
    </detail>
    </env:Fault>
    </env:Body>
    </env:Envelope>

    Thanks for the repsonse.
    Its exactly how you explain it.
    Last thing I am dealing with (as var as I can see now) is getting a (generic/other) ldap connection in HSS to our MSAD.
    HSS userinterface comes up with an error just before showing the user list. (on the serverside I traced traffic (wireshark) and see that userinformation is indeed retrieved).
    But the frontend is juist not showing/ loading the information.
    the error"a communication error occured when loading the view pane" Than the screen keeps on loading for ever
    Oracle support tries to find out whats going wrong here.
    Detlev

  • No such method found for com.sun.jndi.toolkit.url.UrlUtil: method

    Hello,
    I have a servlet which allow users to authenticate to IPlanet LDAP server. I have no problem to access it when it runs under a standalone Tomcate server but I have an internal error when it runs under Oracle8i server.
    The following error message was found in mod_serv.log file in \%OracleHome%\Apache\Jserv\logs folder:
    ajp12: Servlet Error: java.lang.NoSuchMethodError: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found.
    What is the problem? Where should I put my jndi.jar? Thanks.
    Regards
    CY Seah

    Hello,
    I have a servlet which allow users to authenticate to IPlanet LDAP server. I have no problem to access it when it runs under a standalone Tomcate server but I have an internal error when it runs under Oracle8i server.
    The following error message was found in mod_serv.log file in \%OracleHome%\Apache\Jserv\logs folder:
    ajp12: Servlet Error: java.lang.NoSuchMethodError: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found.
    What is the problem? Where should I put my jndi.jar? Thanks.
    Regards
    CY Seah

  • Need javadoc for com.sun.jndi.ldap.ctl.*?

    Hi,
    has anybody the javadoc for the above named package?
    I need at first com.sun.jndi.ldap.ctl.SortKey.
    It is needed to get a sorted search result from a LDAP server.
    Thank you for your help.
    Fredi

    Download the LDAP provider at
    http://java.sun.com/products/jndi/#download
    See the README-LDAP.txt in the bundle.
    It says that the javadocs for the controls are
    at doc/ldapcontrols.

  • Com.sun.jndi.ldap

    Hi,
    Is anyone familiar with JNDI LDAP automatic discovery codes
    env.put(Context.PROVIDER_URL,
        ldap:///o=JNDITutorial,dc=example,dc=com);
    It seems that by using DNS that associate with multiple domain controllers, it would lock out user account if they enter wrong pw because LDAP provider will send the request to each of the associated DC at the same time.  I wonder if anyone run through this issue and if it is a JDK bug and if someone does, how to you work around it?
    Thanks,
    Jennifer

    Hi,
    did you also try the following timeout variables?
    env.put("com.sun.jndi.dns.timeout.initial", "2000");
    env.put("com.sun.jndi.dns.timeout.retries", "3");...
    Besides you specific problem you will find a probably interesting article about handling network timeouts her:
    http://www.javacoffeebreak.com/articles/network_timeouts/
    Regards
    Klaus

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

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

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

  • Exception: com.sun.media.jai.util.ServiceConfigurationError

    I've developed an applet that uses javax.media.jai. API. When it's compiled and ran through Microsoft's IIS and from the command line it works fine. The final place for this applet, though, is on a Linux server. When it's compiled and ran from the shell it runs fine. But through Apache i get this error.
    com.sun.media.jai.util.ServiceConfigurationError: javax.media.jai.OperationRegistrySpi: : sun.io.MalformedInputException
         at com.sun.media.jai.util.Service.fail(Service.java:127)
         at com.sun.media.jai.util.Service.parse(Service.java:206)
    I know that the problem line is:
    PlanarImage im = (PlanarImage)JAI.create ("AWTImage", pb);
    Also, that both servers JSDK's and JRE's were installed correctly.
    And, that the needed registerFile.jai is located in the right place.
    I've been stumped by this for a week and can't find info on the com.sun.media.jai.util.ServiceConfigurationError class or javax.media.jai.OperationRegistrySpi class.

    Hi ,
    I am getting the similar error -
    I have an applet which displays a tiff image and allows the user to magnify , rotate , invert , zoom or print the displayed image . The applet uses JAI 1.1 API and jre plugin -1.3.0_0.1. It works fine when loaded in IE but with netscape (version 4.5/6.0) it throws the exception :-
    com.sun.media.jai.util.ServiceConfigurationError: javax.media.jai.OperationRegistrySpi: https://xyz/javatiffviewer/META-INF/services/javax.media.jai.OperationRegistrySpi:1: Illegal configuration-file syntax
         at com.sun.media.jai.util.Service.fail(Service.java:127)
         at com.sun.media.jai.util.Service.fail(Service.java:133)
         at com.sun.media.jai.util.Service.parseLine(Service.java:155)
         at com.sun.media.jai.util.Service.parse(Service.java:204)
         at com.sun.media.jai.util.Service.access$100(Service.java:118)
         at com.sun.media.jai.util.Service$LazyIterator.hasNext(Service.java:255)
         at javax.media.jai.OperationRegistry.registerServices(OperationRegistry.java:2031)
         at javax.media.jai.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:620)
         at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:371)
         at javax.media.jai.JAI.<clinit>(JAI.java:382)
         at javax.media.jai.OpImage.<init>(OpImage.java:230)
         at javax.media.jai.PointOpImage.<init>(PointOpImage.java:374)
         at javax.media.jai.PointOpImage.<init>(PointOpImage.java:404)
         at javax.media.jai.NullOpImage.<init>(NullOpImage.java:108)
         at javax.media.jai.NullOpImage.<init>(NullOpImage.java:156)
         at TiffApplet.CReadImage.separateImages(CReadImage.java:185)
         at TiffApplet.CReadImage.checkForNoOfImages(CReadImage.java:149)
         at TiffApplet.CReadImage.<init>(CReadImage.java:68)
         at TiffApplet.CTIFFViewer.showImage(CTIFFViewer.java:259)
         at TiffApplet.CTIFFViewer.start(CTIFFViewer.java:191)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Can you please, suggest a solution .
    Thanks ,
    Navneet

  • Looking for com.sun.jndi.toolkit.url.Uri.class

    Does anybody have any idea where I can find com.sun.jndi.toolkit.url.Uri.class?

    Ah well...I found it. Not seperate from the provider classes but I did finally find it. It is in the providerutil.zip that is included with the LDAP Service Provider download. The download is available at: http://java.sun.com/products/jndi/#download

  • How to handle the exception com.sun.xml.internal.messaging.saaj.SOAPExcepn

    hi,
    I am accessing wsdl to get all the required data and the connection is establishing successfully thru java code but when i am calling the create user api the following exception is coming
    "com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: No NamespaceURI, SOAP requires faultcode content to be a QName"
    please tell me what is faultcode means and how to solve this exception

    Hi,
    Whenever there is any error inside the WebService or while it's processing ...it throws Exceptions ..We can handle these exception by our own to make the Exception details more readable.....For that we can create our own SOAPFault message...
    Please refer to the below Posts...
    1). If you are using JAXWS Style of WebService then : http://middlewaremagic.com/weblogic/?p=713
    2). If you are using JAXRPC Style of WebService then : http://middlewaremagic.com/weblogic/?p=721
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic (Middleware magic Is Here)

  • Com.sun.jndi.ldap.ctl.PagedResultsControl

    Hi,
    I was wondering if iPlanet Server Directory 5.0 SP1 supports the Page Result
    Control?
    I am developing a Java Client that will read more than 2 000 entries from
    iPlanet.
    I have an OperationNotSupportedException with iPlanet 5.0.
    Thanks in advance.
    Stephane Chauvin.

    Hello Stephane,
    No, it is not. You can list the supported controls by executing an ldapsearch on the root DSE.<br>
    <i>ldapsearch -h <serverhost> -p <serverport> -s base -b "" \<br>"objectclass=*" supportedcontrol</i><br>
    Instead of the Page Result Control, you may want to consider using the Virtual List View control (see http://search.ietf.org/internet-drafts/draft-ietf-ldapext-ldapv3-vlv-04.txt)
    Regards,
    Bertold

  • Caught an unexpected exception! java.lang.ClassCastException at com.sun.cor

    Hi,
    Iam struggling with this problem from last 3days.
    Any body could u help me to solve this problem.
    error:
    Caught an unexpected exception!
    java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow (PortableRemoteObject.java:293)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
    at ConverterClient.main(ConverterClient.java:59)
    Client Code is here:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.util.Properties;
    import javax.ejb.CreateException;
    import java.util.Hashtable;
    // NOT NECESSARY import Converter;
    // NOT NECESSARY import ConverterHome;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Properties env = new Properties();
              env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
              env.put("java.naming.provider.url", "iiop://localhost:3700");
              Context initial = new InitialContext(env);
         ConverterHome home =(ConverterHome)PortableRemoteObject.narrow(initial.lookup("MyConverter"),ConverterHome.class);
    // Create converter session bean
    Converter currencyConverter = home.create();
    // Calculate from dollars to yen
    double amount = currencyConverter.dollarToYen(100.00);
    System.out.println("100 Dollars is " + String.valueOf(amount) + " Yen");
    // Calculate from yen to dollars
    amount = currencyConverter.yenToEuro(100.00);
    System.out.println("100 Yen is " + String.valueOf(amount) + " Dollars");
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();

    Hi,
    I have a stateless bean and accessing it from a jsp page in Orion App Server. There is no problem in the deployment. of the application.
    When I access the bean from the jsp page is throwing
    java.lang.ClassCastException
    at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    The code is :
    Object homeObject = null;
    homeObject = ctx.lookup("LoginHome");
    out.println(homeObject.toString());
    LoginHome ejbHome = (LoginHome)PortableRemoteObject.narrow(homeObject,LoginHome.class);
    Login login = ejbHome.create();
    when I use the statement
    homeOject.toString() to print the object it prints
    LoginHome EJBHome
    I am not able to resolve this for th epast three days.
    Thanks,
    Vivek S

  • Javax.naming.NameNotFoundException.  Root exception is org.omg.CosNaming.Na

    Hello everyone:
    I am having trouble in finding local entity bean using jndi lookup. I am using wsad5.1.1. Jndi looks up my entity bean successfully if the ejb is remote.
    My local ejb lookup:
    Properties env = new Properties();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put(Context.PROVIDER_URL, "iiop://localhost:2809/");
    Context initialContext = new InitialContext(env);
    Object homeObject = initialContext.lookup("java:comp/env/ejb/DS_DLID_PORTRAIT");
    EJB-REF :
    <ejb-local-ref id="EJBLocalRef_1121106135046">
                        <ejb-ref-name>ejb/DS_DLID_PORTRAIT</ejb-ref-name>
                        <ejb-ref-type>Entity</ejb-ref-type>
                        <local-home>state.il.sos.doit.ejb.DS_DLID_PORTRAITLocalHome</local-home>
                        <local>state.il.sos.doit.ejb.DS_DLID_PORTRAITLocal</local>
                        <ejb-link>DS_DLID_PORTRAIT</ejb-link>
                   </ejb-local-ref>
    Any help is appreciated.
    Thanks.

    Greetings,
    javax.naming.NameNotFoundException. Root exception is
    org.omg.CosNaming.NamingContextPackage.NotFound
    =================
    Below is the line of my LoginServlet class which is
    referred to in the stack trace - Object object =
    context.lookup
                        ( "java:comp/env/ejb/WarehouseClerk" );The root of the naming context is 'java:comp/env' and this is where lookup automatically begins for EJBs and resources. IOW, by specifying "java:comp/env/ejb/WarehouseClerk" as the EJB lookup name the server is actually treating this as "java:comp/env/java:comp/env/ejb/WarehouseClerk". Specify only the ejb context ("ejb/WarehouseClerk") in your lookup and you should be fine.
    Any help would be most appreciated.
    SeanRegards,
    Tony "Vee Schade" Cook

Maybe you are looking for

  • Unable to use "Option" key or "Target" ?

    I am attempting to re-install the OS on an X Server, but it seems that the previous techco has locked the server in some way. When I boot up with either the "Option" or "C" key pressed I get a light "Blue" screen with a "Padlock & a box" to apparentl

  • I am using Muse v7.1 Build 329 anchor links not working

    Hi I am using Muse v7.1 and have found that anchor links from buttons and from text boxes fail to work in IE v10 but all work fine with Chrome. I have seen comments from others that if I use a space in the code it will work but the whole point of Mus

  • My rail will not give me the option to send do I need sim or should it work on wifi

    I cannot get my mail to work it will receive but not send? at present I am only on wifi. is this the problem or should it work?

  • Blogging through Dreamweaver

    I am developing a dreamweaver site for a client that showcases student work at a University (similar to www.thelantern.com). Through this, I want to be able to add content quickly, similar to a blog. How can I work through a site like wordpress to ad

  • N80 very very bad

    hi guys , i just want to tell anyone who wants to buy n80 just one word , DON"T . this mobile is a failure in all means . here in kuwait it is officially the worst mobile of 2006 . useless camera and sooo bulky , bad battery life , if i live in ameri