JMS Exception at Client Side

Hi All
We have application consisting of applets
a) We have signed the Application JAR (CA ) and put in the below attributes in the manifest file
Codebase: <<CodebasePath>>
Application-Library-Allowable-Codebase: <<CodebasePath>>
permissions: all-permissions
b) We use the wlclient.jar and wljmsclient.jar as well. For these JARS we have added the below attribute in the manifest file
Permissions: all-permissions
c) We are getting exceptions at the client side while launching the application ( JRE is 1.6.0_51)
Exception in initJMS()>>>>>>>>>>>>>>>
javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No]
  at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:83)
  at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:232)
  at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:168)
  at javax.naming.InitialContext.lookup(Unknown Source)
  at com.orbitreasury.moneymarket.presentation.util.MessagingServiceFactory.initJMS(MessagingServiceFactory.java:142)
  at com.orbitreasury.moneymarket.presentation.util.MessagingServiceFactory.<init>(MessagingServiceFactory.java:102)
  at com.orbitreasury.moneymarket.presentation.util.MessagingServiceFactory.getInstance(MessagingServiceFactory.java:94)
  at com.orbitreasury.moneymarket.presentation.applet.FrontOfficeDesk.init(FrontOfficeDesk.java:328)
  at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
Caused by: org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  at java.lang.reflect.Constructor.newInstance(Unknown Source)
  at java.lang.Class.newInstance0(Unknown Source)
  at java.lang.Class.newInstance(Unknown Source)
  at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(Unknown Source)
  at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(Unknown Source)
  at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(Unknown Source)
  at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(Unknown Source)
  at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(Unknown Source)
  at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(Unknown Source)
  at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
  at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:80)
  at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:208)

Hi Amitava,
This error may happen when creating foreign JMS server and user credentials (principal name) is not provided. As a result, Weblogic is unable to create the required JNDI name.
To rectify the error you can provide principal name in the JMS Configuration and restart Weblogic. See the following for sample configuration required:
<foreign-server name="ForeignServer">
<sub-deployment-name>subDep</sub-deployment-name>
<foreign-destination name="ForeignDestination">
<local-jndi-name>localQueue</local-jndi-name>
<remote-jndi-name>remoteQueue</remote-jndi-name>
</foreign-destination>
<foreign-connection-factory name="ForeignConnectionFactory-0">
<local-jndi-name>localJNDI</local-jndi-name>
<remote-jndi-name>remoteJNDI</remote-jndi-name>
</foreign-connection-factory>
<connection-url>t3://localhost:7010</connection-url>
<jndi-properties-credential-encrypted>{3DES}yK0ERotSucIGRVFORfS4Kw==</jndi-properties-credential-encrypted>
<jndi-property>
<key>java.naming.security.principal</key>
<value>weblogic</value>
</jndi-property>
</foreign-server>
Refer to documentation below for more details:
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jms_admin/advance_config.html#wp1075917
Hope it helps.
Thanks,
Cris

Similar Messages

  • How to access custom exception in client side in web services?

    I have an interface and implementation of a java web services. One method in it throws a custom exception indicating the error type (authrization fails, db connection lost, etc...). But in the generated proxy file, the catched exception for the correspondent method becames java.lang.Exception. I check the code and found the actual thrown exception is com.apache.soap.SOAPExcetion. In the client code, I printed out all the SOAPExcetion and related Fault messages but could not find my original custom exception info. I need this custom exception to be accessed to the client so the client knows what's wrong.

    for current user, SPGroup.ContainsCurrentUser
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spgroup.containscurrentuser.aspx
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Interesting Class Not Found Exception on Client Side of RMI

    I am having trouble getting my client to start up using RMI. I am running my server on a linux platform and everything seems to be starting up just fine. Here is how I start the server:
    WEBSITE=/home/ian/html
    SOFTWARE=/home/ian/software
    java -ea \
    -cp $WEBSITE/BNS/classes/ \
    -Djava.rmi.server.codebase=http://1.paturi.usher.ucsdsys.net/BNS/classes/ \
    -Djava.security.policy=/home/ian/software/BNS/RMI.policy \
    -DPREP=$SOFTWARE/prepped \
    -DARCH=$SOFTWARE/output \
    BNS.plumbing.Server $WEBSITE is my Apache Server home folder, which is running. However, now I move to a Windows machine and run IE or Firefox. I navigate to the Apache server and it comes up. Yet, when I try to logon to a client it tells me that the client is not inited.
    Opening the Java Console reveals this error:
    load: class BNS.plumbing.Client.class not found.
    java.lang.ClassNotFoundException: BNS.plumbing.Client.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
    BNS.plumbing.Client is not a Stub method. I have a ClientLiason class which provides the stub and it does not seem to have problem there. Also, when I simply navigate to [http://1.paturi.usher.ucsdsys.net/BNS/classes/BNS/plumbing/] the Client.class file is clearly there waiting to be used.
    Here is what I run when starting server side to get the RMIRegistry (which has been started without a problem):
    SessionHost sh = new SessionHost();
    System.err.println("created an instance of "+ sh.getClass()+" as server");
    Registry reg= LocateRegistry.getRegistry();
    System.out.println(reg);
    reg.rebind(Constants.serviceName, sh);
    System.out.println(reg);
    System.err.println(Constants.serviceName+" server ready.");I have played around with the Registry reg=LocateRegistry.getRegistry() line in particular. I have tried passing in "localhost" and "1.paturi.usher.ucsdsys.net" but all to no avail. Then latter is linux machine that I am using. It is a cluster server at UCSD. In order to access it I must first ssh into a UCSD machine and from there ssh into my machine (this is because it is not a full-fledged ip address, but part of UCSD's domain). I think this might have something to do with the trouble I have accessing the class file when I tried to get at them through a browser directed to my Apache Server.
    I am not the greatest network guy, I know a lot more about programming and I am at my wits end here. I have searched everything I can think of, with little success. If anybody has any ideas or can even point me in the right direction it would be greatly appreciated.
    Thanks!
    Ian

    I think your codebase annotation is being lost because Client.class is on the CLASSPATH of the Registry. There are two solutions:
    1. Start the rmiregistry command in a directory other than the root of the package structure, e.g. /.
    2. Use LocateRegistry.createRegistry() instead of getRegistry() in the server, and don't start the rmiregistry command at all.

  • Uncaught exception raised in Open Directory client-side plugin

    I am having an issue whenever I try to access my Open Directory. It says Uncaught exception raised in Open Directory client-side plugin.
    In updateConfigurationViewFromDescription: NSInvalidArgumentException *** - [NSplaceholderMutableString initWithString:]: nil argument.
    I'm having a hard time finding a directory with the relative plugin. Could you point me the right way? Perhaps finding and deleting that little bugger would help?  I'm running Lion Server 10.7.3 with the 10.7.3 Server Admin tools. The goal here is to set up Deploy Studio for our organization, which I had working for a little while until this little guy started rearing his ugly head.
    Thanks much-

    Dear cdolan92,
    not really. It has been a while. I think I also deleted server.app and admin tools and reinstalled those.
    Perhaps I even did a backup of open directory and turned off the master to local and back to master.
    But I am not sure any more.
    Sorry.
    Best
    H.

  • Exception handling in rmi in client side

    Hello everybody, I'm developing a small client-server application using JDBC and RMI .
    I would like to ask if any body can help to know how handle exceptions thrown in the server side and show them for the client.
    Any help will be appreciated

    I prefer not to have the server's exceptions known to the client. The client only gets the exceptions the client expects. This is part of the server interface which is defined and owned by the client.
    So any exception thrown on the server I would handle and rethrow a different appropriate exception up to the client.

  • Uncaught exception raised in Server Client-side plugin

    When I try to connect to my XServe from the Server Admin on my desktop computer. I get the following error:
    Uncaught exception raised in Server Client-side plugin
    Sorry but the feature you tried to access cannot be used. Exception is:
    In updateConfigurationViewFromDescription: NSInvalidArgumentException * -[NSCFNumber count]: unrecognized selector sent to instance 0x18819ee0 .
    There is a second error with similar wording.
    If I say ok to the warnings I can make changes but they do not save.
    I can access the Server Admin on the XServe
    Anyone know of a solution so that I can login and edit the settings for my XServe from a remote computer?

    I'm getting this too, server is XServe running 10.6.6, remote Server Admin is on a 10.5.8 PPC iMac. No errors with same remote against a PowerMac server running 10.5.8. No errors with 10.6.6 remote against either server.
    Unlike the OP, however, the changes I've tried "take." The pop-ups are annoying though.
    Another issue with the 10.5 Server Admin/10.6 Server, if it isn't a thread hijack, disk volumes do not show up in the File Sharing pane, Share Points appear OK.

  • Sun-One Platform JMS (client-side jar?)

    Does anyone know if there is a JMS client-side jar file for
    the Sun-One Platform Edition?

    On Solaris they live in /usr/share/lib
    they are:
    jms.jar
    and
    imq.jar

  • Client side weblogic.management jar

    Hi,
    Could you help me with the following issue?
    I am writing a simple mgmt application that uses Weblogic's JMX APIs remotely
    via JNDI/RMI either from another VM on the same or another box (no firewall issues).
    All is fine except that the weblogic.management interfaces, stubs, and skeletons
    are all part of the huge weblogic.jar.
    Do you know where I can find a client side classes for weblogic.management? I
    noticed that the Weblogic 8.1 distribution comes with client side jars for other
    APIS (e.g. JMS, Web services, EJB etc.) but cannot find one for JMX.
    Thanks a lot for any insight on this,
    Piotr

    Hi Piotr,
    I do not believe there is a client side jar for wl management. This is
    being considered for our next release.
    Thanks,
    -satya
    Piotr Krychniak wrote:
    Hi,
    Could you help me with the following issue?
    I am writing a simple mgmt application that uses Weblogic's JMX APIs remotely
    via JNDI/RMI either from another VM on the same or another box (no firewall issues).
    All is fine except that the weblogic.management interfaces, stubs, and skeletons
    are all part of the huge weblogic.jar.
    Do you know where I can find a client side classes for weblogic.management? I
    noticed that the Weblogic 8.1 distribution comes with client side jars for other
    APIS (e.g. JMS, Web services, EJB etc.) but cannot find one for JMX.
    Thanks a lot for any insight on this,
    Piotr

  • Client Side Rich Internet Applications in Java. Do we have support for it ?

    What about the use of Java EE technologies on client-side ? The Java EE 5 specification lists different technologies: servlet, JSP, JSF, EJB, JTA, JDBC, JPA, JMS, JNDI, JavaMail, XML processing, JCA, JAAS, web services, JMX...
    Almost all of them are used on the server side. What about building applications on the client side ?
    Is Sun thinking too much hardware these days ? Why is that most of the products come out of 3rd party vendors like apache for instance ?

    There's your fundamental problem... We KNOW from bitter experience that rich client app are NOT scalable. The world simply doesn't work that way.
    Architecture starts from the foundations and works up. Computer systems achitectures start from the server and work out... We're just not out there yet dude.
    My crystal ball says that within 20 years computers will be sooooo freeken fast that "scalable" really won't be an issue any longer, except for worldwide realtime massive transaction rate systems (like VR role playing games)... so enterprise solutions will naturally migrate back towards the desktop.
    In the meantime the kids are having fun on the desktop and us "boring backend people" collect $40 million dollars in twenty minutes with rock-solid server-side solutions. Horses for courses. Watch for pitch reports.

  • JMS Exception when server goes down (Urgent) ?

    Hi All,
    I have three topics in the JMS Server which is on the top of Web logic server 8.1.
    On the client side I have Swing thick cleint.For each topic I have a listener.
    When the web logic server goes down ( I shut down manually ) Only one listener is recieving the Exception and the Swing client reacts accordingly.
    After this ,
    Client continousoly checks whether the server is up or not. Once the server is up again the Exception is thrown that server is down ( I guess now the second listener is recieving the message).
    After some time again the third listener recives the message.....
    and the client reacts on that exception 3 times.
    How can I get rid of this ?
    thanks in advance.
    san

    Hi,
    this is probably a very good question to ask support. 'Logical' deployment sequence
    was added to the WebLogic only recently (6.1sp?) ('logical' means that first datasources
    are deployed, then EJB's and then web-apps, deployment-order parameter was added etc).
    So, for applications where shutdown sequence is important there must be a document which
    describes how server shutdown works.
    On the other hand, this may not be as important as deployment sequence, because running
    instance can crash at any time and it should not affect anything.
    Jen <[email protected]> wrote:
    Repost
    Hi,
    Most of my ejbs use connection from the connection pool. At the weblogic server shut
    down time (heavy load), I can see the jsps call the ejb, sometime jsp can't find
    the bean because it's removed from jndi. sometime jsp found the bean but when the
    bean try to talk to database, ejb can't use the connection because the datasource
    is removed from jndi. Also my shutdown class waits for the threads finish up, and
    the threads calls the ejb and do the db operation, and the conn is cut when the db
    operation is half way. So, the order of events when server shut down is important
    to me. I am wondering how other people deal with it. Thanks --
    Dimitri

  • Client Side Jar

    Hi folks,
    in the days of the good old 5.1 release there where rumors and promises
    about a as-thin-as-possible-jar-file for client side usage containing
    just the classes a swing client would need. I did not find this magic
    jar in 6.0 and 6.1. Is there being worked on? Is there a list of
    packages I can safely remove from the giant weblogic.jar in order to cut
    it to a WebStart-with-dialup compatible size of let's say 2-5mb? Please
    don't point me to verbose2zip, I won't spend weeks on finding every
    possible way through WebLogic code ... :-)
    Thanks for any insight!
    Daniel

    That's an easy one ;-). Include the original MANIFEST.MF in the
    generated jar.
    Daniel
    -----Original Message-----
    From: Nick Minnutello
    [mailto:[email protected]]
    Posted At: Friday, August 31, 2001 3:04 AM
    Posted To: misc
    Conversation: Client Side Jar
    Subject: Re: Client Side Jar
    Please let me know how you get on.
    You can email me if you like.
    We too are deploying our apps via JWS, and a 25MB jar will
    drive the users
    nuts, let alone us when we want to access the server in Hong Kong..!
    I had problems with the verboseToZip - I could never get my
    client to start
    up. Is there some other fancy footwork you have to do apart from
    the -verbose and the verboseToZip?
    Do you need to exercise every code path in order to create
    this file? Once
    you have done a JNDI lookip, a few RMI calls, caught an
    exception or two,
    what else is there ? (I guess that you are using JMS and
    FileT3 which makes
    it more complicated). However, for straight RMI, is there
    that big a risk?
    I got a stack trace of:
    Any clues anyone?
    (I understand that a thin-client jar is on its way soon)
    --------stack trace-------------------
    java.lang.InternalError: error initializing kernel
    at weblogic.kernel.Kernel.ensureInitialized(Kernel.java:85)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.<init>(WLInitial
    ContextFactory
    Delegate.java:161)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Unknown Source)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInit
    ialContextFact
    ory.java:119)
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.init(Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at
    com.bnpparibas.eqd.stingray.mantaray.servercontext.AbstractSer
    verContext.<in
    it>(AbstractServerContext.java:65)
    at
    com.bnpparibas.eqd.stingray.mantaray.servercontext.WebLogicCon
    text.<init>(We
    bLogicContext.java:35)
    at
    com.bnpparibas.eqd.stingray.mantaray.servercontext.ServerConte
    xtFactory.crea
    te(ServerContextFactory.java:34)
    at
    com.bnpparibas.eqd.stingray.mantaray.beans.ViewFactory.getCurr
    encies(ViewFac
    tory.java:247)
    at
    com.bnpparibas.eqd.stingray.mantaray.beans.ViewFactory.createT
    ree(ViewFactor
    y.java:206)
    at
    com.bnpparibas.eqd.stingray.mantaray.beans.ViewFactory.<init>(
    ViewFactory.ja
    va:61)
    at
    com.bnpparibas.eqd.stingray.mantaray.MantaViewManager.initaliz
    e(MantaViewMan
    ager.java:24)
    at
    com.bnpparibas.eqd.stingray.mantaray.MantaMainFrame.initialise
    (MantaMainFram
    e.java:114)
    at
    com.bnpparibas.eqd.stingray.mantaray.MantaMainFrame.<init>(Man
    taMainFrame.ja
    va:56)
    at
    com.bnpparibas.eqd.stingray.mantaray.MantaMainFrame.getInstanc
    e(MantaMainFra
    me.java:63)
    at com.bnpparibas.eqd.stingray.mantaray.Manta.main(Manta.java:61)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.sun.javaws.Launcher.executeApplication(Launcher.java:701)
    at com.sun.javaws.Launcher.executeMainClass(Launcher.java:663)
    at com.sun.javaws.Launcher.continueLaunch(Launcher.java:546)
    at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:334)
    at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:151)
    at com.sun.javaws.Launcher.<init>(Launcher.java:113)
    at com.sun.javaws.Main.main(Main.java:153)
    "Daniel Hoppe" <[email protected]> wrote in message
    news:[email protected]...
    Thanks for the tip. Actually I have a fat swing-gui client which uses
    quite a lot of features, T3 File Systems, EJB Calls, JMS etc.. I'm
    afraid the Web Services client jar won't help me here.
    I need to distribute it via WebStart, that's why the whole weblogic.jar
    is just not acceptable. I used to use java -verbose and verboseToZip,
    but that's a quite dangerous strategy, I can never be sure that I really
    covered every codepath. I guess I will open a case and see if that
    helps. Maybe I can at least get a change request for a future version...
    Daniel
    -----Original Message-----
    From: Dimitri Rakitine [mailto:[email protected]]
    Posted At: Monday, August 27, 2001 10:09 PM
    Posted To: misc
    Conversation: Client Side Jar
    Subject: Re: Client Side Jar
    6.1 does create small client jar if you use web services :
    http://e-docs.bea.com/wls/docs61/webServices/client.html#1036653
    Daniel Hoppe <[email protected]> wrote:
    Hi folks,
    in the days of the good old 5.1 release there where rumorsand promises
    about a as-thin-as-possible-jar-file for client side usagecontaining
    just the classes a swing client would need. I did not findthis magic
    jar in 6.0 and 6.1. Is there being worked on? Is there a list of
    packages I can safely remove from the giant weblogic.jar inorder to cut
    it to a WebStart-with-dialup compatible size of let's say2-5mb? Please
    don't point me to verbose2zip, I won't spend weeks on
    finding every
    possible way through WebLogic code ... :-)
    Thanks for any insight!
    Daniel--
    Dimitri

  • Merging randomly-named XML data file on client-side with pdf designed in Livecycle 7.0 (and addition

    Okay, as a heads up I work for a financial institution and we are converting our legacy "jetforms" to pdf format. I have in my staff for the project, 2 code developers and myself- a form designer. We have currently spent 2 months in trial and error attempting to resolve this problem, please let us know anything you can have. All client-side (internal) machines are running Windows XP and Adobe Reader 7.0.7
    The software we use as a financial institution allows our users to export a customer's data file onto their machine which is then renamed to include the member's account number and first and last name for our staff to determine which data file they need more accurately. In legacy jetforms, we have developed a program that pushes the data from the customers file that they select, into the jetform that they want to open and the matching fields in the data file fill in the fields of the jetform. Clean and simple.
    Now, i have hit nothing but frustration when attempting to perform the same process with pdfs using a form designed in livecycle designer 7. First, i see no obvious command for opening a pdf and importing a data file using a command line, like pdfmerge or something of the sort in which an xml data file can be specified and a pdf can be specified. I saw something like it using an fdf format and attempted to do this but apparently reader cannot import the data into the pdf that was designed adobe livecycle 7. All i have been seeing is database connections and using javascript inside the form to populate fields based on these database connections, etc. etc. or doing a manual file>import data>etc. which we don't want to have our staff do. We do not have reader extensions enabled, simply because i cannot get an adobe representative to call me and discuss pricing nor see any estimated pricing chart around. I don't know if reader extensions are necessary for this or not but i'm becoming very very frustrated with it.
    We don't want a complex server-side data connection binding with dynamic input. No, we just want it where our developers can say "if this data file is selected, and this pdf form is selected run this command" which would be a simple pdfmerge type solution. Is this possible or do i need to stay with jetforms until our software the billion dollar financial institution uses does form building inside its own application? I don't want to fight about who is better, what version to use, etc. I just want the straight up honest truth. If you need to know the pricing that the reader extensions would have to go by, assume there will be 500 client computers that will need to use it.

    From your post it sounds like you are Central Pro (a product for which I am by no means an expert), but you say you want to upgrade to a newer product from your "legacy" one. Is there a reason for this? Have your requirements change so that it no longer fits them? Central is still in the current Adobe roster and as far as I know there is no plans to get rid of it any time soon, so if it does everything you want I don't see why you would want to change.
    There is no product in the LiveCycle suite that merges xml data into a form from the command line. LiveCycle (with the exception of Designer) is a suite of server products, so the closest you would come is LiveCycle Forms (merge the xml and create a fillable PDF) or LiveCycle Print (merge the xml and print the form).
    Hope this helps somewhat.
    Chris
    Adobe Enterprise Developer Support

  • How can i look up a EJB residing in different machine from client side?

    hai ,
    How can i look up a EJB residing in different machine from client side?
    this is my code...........i don't know what should i use as Initial Context Factory...................i am using a sun appserver 8............
    package com.parx.lms.lmsdelegate;
    import com.parx.lms.exception.LMSException;
    import javax.naming.Context;
    import javax .ejb.CreateException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.rmi.PortableRemoteObject;
    import java.rmi.RemoteException;
    import com.parx.lms.controller.*;
    import com.parx.lms.vo.UserVo;
    import com.parx.lms.exception.BusinessException;
    import java.util.Hashtable;
    import java.lang.*;
    public class LmsDelegate{
    private final static String JNDI_NAME="LmsBean";
    private static String url="http://localhost:4848";
    public static Lms lms = null;
    public void getController() throws CreateException,
    NamingException,RemoteException{
    if(lms == null){
    Hashtable h=new Hashtable();
    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************");
    h.put(Context.PROVIDER_URL,url);
    System.out.println("Before Loading Context in Delegate");
    Context ctx=new InitialContext(h);
    System.out.println("Loaded Context in Delegate");
    Object obj=ctx.lookup(JNDI_NAME);
    System.out.println("Loaded Object in Delegate");
    System.out.println("Before Loading Home in Delegate");
    LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
    System.out.println("Loaded Home in Delegate");
    lms = home.create();
    System.out.println("Loaded remote in Delegate");
    public void addUserDelegate(UserVo vo) throws BusinessException{
    try{
    getController();
    System.out.println("Before calling the addUser of Session");
    lms.addUser(vo);
    }catch(CreateException e){
    System.out.println("Create Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(NamingException e){
    System.out.println("Naming Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    catch(RemoteException e){
    System.out.println("Remote Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(LMSException e){
    System.out.println("duplicate user name--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    pls help me..........

    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************")
    Each app server provides their own jndi factory class. For ex for weblogic it is weblogic.jndi.WLInitialContextFactory. SInce you are using sun app server, check if there are any examples to find out or the docs.
    private static String url="http://localhost:4848
    Since the client is in a different machine the localhost is not going to work here. provide the url or the machine name of the system in which ur sunapp server is running. In addition u will need to have the stubs of the remote interfaces in ur client machine.

  • How to Install SSIS COM Component on Client side

    Hi,
    I am new to BPC.
    I can't install SSIS COM Component on Client side.
    and i guess,  it lead BPC Excel , Data Manager is not working.
    Because all the user are local user on server side, no domain
    I have run OSoftSetup.exe,  but the result is
    Error (Login failed for user ". The user is not associated with a trusted SQL Server connection.)
    i have tried to change the OutlookSoft.config in OSoftSSIS_Client\Bin Folder
    and the config doesn't take any effect.
    How to How to Install SSIS COM Component on Client side?
    thx
    It is client side PC_MS\Logging\Log
    #ERROR#CustomXMLClt##EPM-BPC-MS##e17c2022-c7d4-4a0b-8515-b719441e3dbf###XMLParser : GetTagValue#hostname
    user########Plain##[LOG ID:22]System.NullReferenceException: Object reference not set to an instance of an object.
       at OSoft.Consumers.Common.CustomXML50.XMLParser.GetAttributeValue(String strKeyValue, String strAttKeyValue, String strSubKeyValue)#
    thx
    John

    But the problem is...in client side
    When opening Office 2007 Excel -> eTool -> Data Manager
    There have no option showed.
    and in C:\Documents and Settings\<user>\My Documents\PC_MS\Logging\Log
    it has following error.
    2010 08 21 17:15:35:875#+8:00#ERROR#CustomXMLClt##EPM-BPC-MS##51cea66a-13cd-49fc-afdd-7b492566bd12###XMLParser : GetTagValue#<HOSTNAME>
    BPCADM########Plain##[LOG ID:346]System.NullReferenceException: Object reference not set to an instance of an object.
       at OSoft.Consumers.Common.CustomXML50.XMLParser.GetAttributeValue(String strKeyValue, String strAttKeyValue, String strSubKeyValue)#
    2010 08 21 17:15:35:875#+8:00#ERROR#DMClientTools##EPM-BPC-MS##7aec1fbe-5fda-4c91-9c4a-1eec5e59911b###DMTools::ErrCheck#<HOSTNAME>
    BPCADM########Plain##[LOG ID:347]System.Exception: 91: Object reference not set to an instance of an object.
       at OSoft.Consumers.DataMgr.DMClientTools50.DMTools.ErrCheck(String strRtn)#
    2010 08 21 17:15:35:875#+8:00#ERROR#DMClientTools##EPM-BPC-MS##48f5a612-a046-4ef9-a56c-db565ef489d2###DMTools::GetServerInfo#<HOSTNAME>
    BPCADM########Plain##[LOG ID:348]System.Exception: 91: Object reference not set to an instance of an object.
       at OSoft.Consumers.DataMgr.DMClientTools50.DMTools.ErrCheck(String strRtn)
       at OSoft.Consumers.DataMgr.DMClientTools50.DMTools.GetServerInfo(String strContext, String strFilter, String strSecurity)#
    2010 08 21 17:15:35:890#+8:00#ERROR#DMConsole##EPM-BPC-MS##af7f7343-1cb2-4802-a667-2adbb1b8e2fd###basClientTools::ChangeClientSiteList#<HOSTNAME>
    BPCADM########Plain##[LOG ID:349]Subscript out of range#

  • RMI client-side - how to encrypt,decrypt  in client-side

    I write javacard RMI style. My problem is...
    Source code below is work when it write in applet (card - side)
    but in client-side (reader -side) I copy it to client - side code and test to run, if fail --> throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    It seem to be "javacardx.crypto" and "javacard.security" is make for use in applet in card only. Did I misunderstand?
    if it make for use in applet only, how is possible to do like this " card use privatekey to sign message and send to reader , reader use card's publickey to verify that card sign this signature or not."
    or
    "card use reader's publickey to encrypt message and send to reader, then reader use privatekey to decrypt message (reader authencate itself) "
    because I can't do any of cipher , keybuilder in RMI-client side(reader)
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false);
    it will throw nullPointerException
    and if (change false to true)
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,true);
    throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    after that I swap this line with
    pri_key = (RSAPrivateKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PRIVATE,KeyBuilder.LENGTH_RSA_512, false);
    since it will do this first (i swap the line already) it also throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    also be the same result with swap
    kp = new KeyPair(KeyPair.ALG_RSA,(short)KeyBuilder.LENGTH_RSA_512 );
    to a first line
    it throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    Please help me
    RSAPrivateKey pri_key;
    RSAPublicKey pub_key;
    KeyPair kp;
    Cipher RSAcipher;
    RSAcipher = Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false);
    pri_key = (RSAPrivateKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PRIVATE,KeyBuilder.LENGTH_RSA_512, false);
    pub_key =(RSAPublicKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PUBLIC,KeyBuilder.LENGTH_RSA_512, false);
    kp = new KeyPair(KeyPair.ALG_RSA,(short)KeyBuilder.LENGTH_RSA_512 );
    kp.genKeyPair();
              pri_key = (RSAPrivateKey) kp.getPrivate();
              pub_key = (RSAPublicKey) kp.getPublic();
    //ENCRYPT
    RSAcipher.init(pri_key, Cipher.MODE_ENCRYPT);
    t_cipherLengthRSA = RSAcipher.doFinal(plaintxt,(short)0, (short)plaintxt.length, t_cipherText, (short)0);
    //DECRYPT
    RSAcipher.init(pub_key, Cipher.MODE_DECRYPT);
    RSAcipher.doFinal(ciphertxt,(short)0,(short) t_cipherLengthRSA, temp1, (short)0);

    I write javacard RMI style. My problem is...
    Source code below is work when it write in applet (card - side)
    but in client-side (reader -side) I copy it to client - side code and test to run, if fail --> throw
    exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHMYou can not share code between card and client. On the card use the classes of javacardx.crypto and on the client side those of javax.crypto and java.security.
    It seem to be "javacardx.crypto" and "javacard.security" is make for use in applet in card only. That is right.
    if it make for use in applet only, how is possible to
    do like this " card use privatekey to sign message
    and send to reader , reader use card's publickey to
    verify that card sign this signature or not." or
    "card use reader's publickey to encrypt message and
    send to reader, then reader use privatekey to decrypt
    message (reader authencate itself) "On each platform you have classes that provide the same cryptographic operations but the interface of these classes is different (because of the limitations of the java card platform).
    because I can't do any of cipher , keybuilder in
    RMI-client side(reader)Use the java.security.KeyFactory instead.
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false);
    it will throw nullPointerException
    and if (change false to true)
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,true);
    throw exception 0x3 -
    javacard.security.CryptoException.NO_SUCH_ALGORITHMCryptographic support on java cards is optional. Not every card supports every algorithm. Try to use another algo.
    Jan

Maybe you are looking for