CharsetProvider and JWS

Hi,
We have had difficulty with Cp1153, as in Java does not currently support it, so we have created our own custom CharsetProvider.
We have created everything we need and we can run the app in our Eclipse workspace and it works fine, run the app from a batch file as a standalone Java app and it again works fine.
However when we launch the app via a JNLP/JWS it no longer picks up this custom CharsetProvider and reverts to the JRE version!!! v frustrating!
Has anyone encountered this before or does anyone know why JWS would not pick up our custom CharsetProvider?
It would appear to me, being very new to this and not understanding it all yet...that the only difference between working and not working is the JNLP. Do we need something in the JNLP to reference the new CharsetProvider?
Thanks, Andrew.

Sorry people,
It was a stupid question and we've fixed the problem.
Too much beer in the tropics.

Similar Messages

  • SOAP and JWS - Help!!

    Hi everyone!!
    I am trying to integrate SOAP and JWS. ie the application being downloaded is a SOAP messaging application. while compiling i have SAAJ api in my classpath. while executing it, i need to have it too in my classpath. before executing the application, if i dont set the classpath, the application doesnt execute. when i do, it works. its ok when i execute the application in the command prompt bcoz i can set classpath again. but issue arises when i run this example using jws. can anybody resolve this issue?
    regards,
    Manyadeveloper

    Hi I've been dealing with this problem for a little while.
    I've got an APP that is dependant on SOAP.JAR. My appp doesn't need to be signed, but SOAP.JAR does.
    Why does it need to be signed?
    I only want to download information from the server where I started my program from. When I leave SOAP.JAR unsigned it tells me I need to input the proxy address and port.
    Any ideas?
    Thanks Martin

  • SOAP and JWS

    I've got a problem with some of my clients networks. I've got an app that is running correctly on most networks. It relies extensively on SOAP calls to our server.
    The problem networks will download the app correctly and start it up, but at the point of the first SOAP call it fails. I'm assuming that because the app downloaded and started that the proxy settings are correct. Although the problem seems to arise more in corporate networks which have more draconian proxy servers.
    Are there any known gotchas with SOAP and JWS I should know about?
    'Little help?'
    Cheers

    Some proxies require Username and Password authentication. You can pass that info in the SOAP call setup, but of course you have to have it available.
    Since Java Web Start likes to handle proxies itself and does not provide a way to retrieve the Username and Password, you might have to create an additional proxy login screen.
    Of course, this might be very annoying as you would get 3 logins! One for Java Web Start's proxy login, one for you to get the proxy login info for your SOAP call, and one for your application's login. VERY ANNOYING!
    I do not know of a good solution to the problem, but I hope this info can help you resolve it.

  • Problem with serialized objects and JWS

    My JWS launched application fails when loading a serialized object that has been instatiated from a class not contained in the signed jar-file. Does anyone know why this happens and if there is some workaround for the problem?

    Where is the class contained then?

  • Dynamic JNLP and JWS Application Manager

    All,
    I have a Swing application that communicates to the server via Servlets. I have packaged the entire application into a WAR file and I am using JWS to distribute to the users.
    The "main" method of my application accepts two parameters, one of which is dynamic based on information from the web server. To be able to calculate the value of that parameter, I decided to dynamically create and serve my JNLP file through a servlet. The parameter is then passed into the application via the <argument> tag in the served JNLP file.
    That part works great. However, once the application is installed, it doesn't show up in JWS Application Manager. My best guess is because there is not a "physical" JNLP file for reference.
    Can anyone out there confirm or deny my guess? And, more importantly, can anyone give me an idea on how to keep the dynamic JNLP file and get it to install in the JWS Application Manager?
    Thanks!

    Got it fixed. Apparently, the JWS Application Manager "view" setting wasn't correct. Once it was working, the application was showing up fine.

  • RMI and JWS tutorials

    This isn't quite a RMI issue, I'm actually putting my RMI server into a Windows Service using JWS (Java Windows Service). However, JWS isn't behaving and the awful tutorial on their homepage really doesn't help.
    Does anyone out their know of any good tutorial/guides for JWS, or even better an example of the conf file implementing everything required for a RMI application. I've been trying for a few hours now to no success.
    Thanks

    Hello Tomas,
    since you can't set the java.rmi.server.hostName property inside the sandbox, a technique I have found useful is to create a custom RMICientSocketFactory that takes a fixed address in its constructor. It uses this value when it creates sockets, instead of the default of using the server hostName property value.
    Quite a few other issues will crop as you progress, if you are interested, here is a [url = https://cajo.dev.java.net/tutorial.html]link, to a fully functional example, including source code. It just might help get you up and running more quickly.
    Good luck,
    John

  • Audio capture delayed with Java Sound and JWS

    Hi.
    I am experiencing quite a strange problem with Java Sound in my Java Web Start application. I am acquiring sound from the microphone through Java Sound, using a code which looks like this:
    ==============================
    AudioFormat audioFormat = new AudioFormat(11025, 8, 1, true, false);
    // Get a TargetDataLine from the appropriate mixer
    DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);
    TargetDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);
    // Prepare the line for use
    targetDataLine.open(audioFormat);
    targetDataLine.start();
    targetDataLine.addLineListener(myLineListener);
    // Build an input stream from the line
    AudioInputStream audioInStream = new AudioInputStream(targetDataLine);
    // Create the output file
    File outputFile = new File("C:\\MySampleAudioFile.wav");
    // Start the actual audio file-writing operation
    AudioFileFormat.Type targetFileFormatType = AudioFileFormat.Type.WAVE;
    AudioSystem.write(audioInStream, targetFileFormatType, outputFile);
    ==============================
    This code is executed in an independent thread. As you can see from the code reported above, I add a LineListener to my TargetDataLine.
    The problem is that in my JWS application several seconds (about 5-6 seconds) elapse from the call to AudioSystem.write() and the reception of the START LineEvent on my LineListener. This delay only occurs when my JWS application is downloaded from my public internet website, while it is not present when I test my JWS application on my local LAN server.
    It looks like the call to AudioSystem.write() causes some kind of network connection to the remote web server of the JWS app, and this operation takes some time. In fact, if I download my JWS app to my client from the public web server, then I disable all network connections on my client, then the START event is received immediately after the call to AudioSystem.write()... This is STRANGE, isn't it???
    Do you believe the call to AudioSystem.write(), or any other Java Sound call, may cause a network connection to the server from which the JWS application has been downloaded?
    A final addition to the above picture: I also have a "Java Applet" version of this application, which is exactly identical to the JWS version and uses the same exact code to do audio acquisition from the microphone. But, in this case the delay is not present, even when running the applet from the public web server!
    Any help / suggestion would be highly appreciated.
    Best regards,
    Marco.

    Hi
    Just Visit the following link and download sample source code for rtp in java
    http://javasolution.blogspot.com/2007/04/rtp-using-java.html
    if u want know basic simple java voice chat then visit
    http://javasolution.blogspot.com/2007/04/voice-chat-using-java.html

  • JRun and JWS

    Running my JNLP as a JSP under JRun, I put a block of Java code (<% code $>) in my "JNLP-as-JSP" file and noticed it is getting called 7-8 times before the applet (inside the JNLP-as-JSP file) is shown. Is JWS executing the JNLP-as-JSP file multiple times or is JRun somehow doing this?

    I get the same problem running JWS with a Tomcat 4.0 server. I noticed the problem when we tried to pass URL paramaters to the "JNLP-as-JSP" file. The first time, the parameters are there and we try to set properties using those parameters. However, the second, third, fourth... times the JSP file is called, the paramters are not there. Therefore, the last time it is called (which is the 8th time for us), the URL parameters are missing, the properties are not set, and the client ends up getting none of the properties we try to pass.
    Not sure why this happens, but if you change
    href="http://xxxx/xxxx"
    with
    href=""
    in the JNLP/JSP file, it only gets called once. However, your application no longer appears on the JWS console (and it never asks to create a shortcut on the desktop).
    I'm guessing it gets called multiple times because of some function of the cache manager.
    If you figure out why, and/or how to fix the problem, let me know.
    Thanks,
    -Rob

  • Browser and JWS Communication

    Can I exchange information between JavaScript and a JWS application lauched from the same browser session? Scenario would be as follows:
    1) Enter URL of web page from browse.
    2) Web page displays in browser with a button which will lauch a JWS application. Would like to pass parameter data to JWS application when lauched.
    3) Upon existing JWS application, any return values are passed back to browser (hoping JavaScript could read return values).
    4) Display return values within browser page (same page if possible).
    Please let me know if this is possible or at least some variation (JSP, servlets, etc). Also, please don't ask me about using applets. Just assume I can't use them.
    Thanks for any help,
    SLS

    Can I exchange information between JavaScript and a
    JWS application lauched from the same browser session?No, you can't. JWS applications are ordinary desktop applications, not "plugins" or anything like that.
    1) Enter URL of web page from browse.- Internet explorer goes to web page
    2) Web page displays in browser with a button which
    will lauch a JWS application. Would like to pass
    parameter data to JWS application when lauched.- parameters to JWS programs must be passed as parameter-tags inside the applicationdesc-tags in the jnlp file. You will need a script on the webserver to generate the jnlp-file with correct values being pasted in the parameter-tags. Make sure the script checks the parameters so that no-one can trick others to launch your JWS application with parameters that make it cause harm to their system.
    A script-generated jnlp file will appear as a "modified application: new version" to the webstart cache. Therefore all the jars referenced directly by the script-generated jnlp file will be downloaded each time the application is launched. This can be very annoying for the user since the download easily exceeds 2 mb if you use a few libraries in addition to your code.
    My solution is to create a special jar file containing ONLY the main class and reference only that jar in the script-generated jnlp descriptor. Then you create a static "external" jnlp-file (reference by the script-generated jnlp as "external") that lists the rest of the jars, including a jar file containg all classes of your program EXCEPT the main class.
    The webstart cache will then get the script-generated jnlp and download the very small jar file with the main class, since it believes this has a new version. It will also get the "external" jnlp file and note that these external libraries are not changed so the cached version is still valid.
    Note that all the jar files referenced by a jnlp file must be signed by the same key. If you use libraries signed by others, these libraries must have their own "external" jnlp file.
    3) Upon existing JWS application, any return values
    are passed back to browser (hoping JavaScript could
    read return values).
    4) Display return values within browser page (same
    page if possible).How do you do that from an application? Perhaps you can launch a new internet explorer instance and control it programmatically from the outside using an exe-file made in VB or something.
    Or, you can use scripts on the web server again: Make a script that accepts get-requests. Make your JWS application trigger internet explorer to open the script-page using a get request with the data embedded:
    String[] cmd = {
    "C:/path/to/iexplorer.exe",
    "http://www.myserver.com/path/to/my.script?key1=value1&key2=value2"
    Runtime.getRuntime().exec(cmd);
    Your JWS app must be signed (preferably with at proper certificate) and have all-privileges to be allowed to do this.
    Please let me know if this is possible or at least
    some variation (JSP, servlets, etc). I can hardly that this suggestion is qualified to be called a solution to your problem, but at least I showed you that it IS possible.

  • SSL and JWS Sandbox

    I saw references herein and at the vamphq faq that you could not run SSL from within the JWS Sandbox. I'm guessing that this is a JDK1.3 issue because, while in the sandbox, you cannot install the security provider. Therefore, this issue should go away with JDK1.4 since the default security provider is pre-installed, and SSL from inside the JWS Sandbox should work. Comments?
    However, you cannot use a proxy server because the proxy server is not the download host. So for proxy server cases (which is quite often), you would still need "all permissions". Any way around this?
    And, of course, just to chime in, JWS does need granular permissions so you can request just, for example, java.net.SocketPermission, and not all permissions. As others have noted, a security box that declares an application is requesting unrestricted access makes an end-user very wary. Of course, end-users install applications all the time that have unrestricted access, but since they usually aren't warned, they don't think about it. Telling the user is, in theory, a good feature. But if we tell them, we need to be able to ask for much less.

    I've been asking for fine grained permissions ever since the first version of JWS.
    Has anyone ever heard a response from Sun on this?

  • JAvaMAil and JWS

    I am using JavaMail to send emails with authentification. I am developing with eclipse 3 M8 and it works correctly but when i put it in java web start it doesn�t work. It looks like doesnt authentificate in the smtp server but, that i said, it works correctly with Eclipse. Any idea?. It throw a exception :
    DEBUG: setDebug: JavaMail version 1.3.1
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    java.security.AccessControlException: access denied (java.util.PropertyPermission user.name read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         at javax.mail.Service.connect(Service.java:205)
         at javax.mail.Service.connect(Service.java:134)
         at javax.mail.Service.connect(Service.java:86)
         at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:104)
         at javax.mail.Transport.send0(Transport.java:162)
         at javax.mail.Transport.send(Transport.java:80)
         at es.tecnova.qida2.swingui.impresion.EnvioEmail.EnviarEmail(EnvioEmail.java:82)
         at es.tecnova.qida2.swingui.impresion.FrameVistaInformeEditorPane.EnviarEmail FrameVistaInformeEditorPane.java:91)
         at es.tecnova.qida2.swingui.impresion.FrameVistaInformeEditorPane.actionPerformed FrameVistaInformeEditorPane.java:125)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG SMTP: trying to connect to host "10.72.0.11", port 25
    java.security.AccessControlException: access denied (java.net.SocketPermission 10.72.0.11:25 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at com.sun.mail.util.SocketFetcher.getSocket0(SocketFetcher.java:130)
         at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:112)
         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:959)
         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:197)
         at javax.mail.Service.connect(Service.java:255)
         at javax.mail.Service.connect(Service.java:134)
         at javax.mail.Service.connect(Service.java:86)
         at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:104)
         at javax.mail.Transport.send0(Transport.java:162)
         at javax.mail.Transport.send(Transport.java:80)
         at es.tecnova.qida2.swingui.impresion.EnvioEmail.EnviarEmail(EnvioEmail.java:82)
         at es.tecnova.qida2.swingui.impresion.FrameVistaInformeEditorPane.EnviarEmailFrameVistaInformeEditorPane.java:91)
         at es.tecnova.qida2.swingui.impresion.FrameVistaInformeEditorPane.actionPerformed FrameVistaInformeEditorPane.java:125)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    I solve it. It was easy but difficult to find. THe librery was signed by sun, so, you need the extension type in your jnlp file ( i was using java web start) but i forgot give "all permisions" for the second (Extension) jnlp file.
    thanks

  • Bi Beans session connect method and JWS gives accesscontrolexception

    Hi,
    I have folowing code for connecting to Bi session and am trying to load my application using java web start technology. When I try to run the code from Jdeveloper it works fine but when trying to run from java web start gives following error.
    Error:
    Exception occurred during event dispatching:
    java.security.AccessControlException: access denied (java.util.PropertyPermission apple.awt.showGrowBox read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         at oracle.bali.ewt.elaf.basic.BasicLookAndFeel$2.createValue(Unknown Source)
         at javax.swing.UIDefaults.getFromHashtable(Unknown Source)
         at javax.swing.UIDefaults.get(Unknown Source)
         at javax.swing.MultiUIDefaults.get(Unknown Source)
         at javax.swing.UIDefaults.getInsets(Unknown Source)
         at javax.swing.UIManager.getInsets(Unknown Source)
         at oracle.bali.ewt.button.DialogBarLayout.preferredLayoutSize(Unknown Source)
         at java.awt.Container.preferredSize(Unknown Source)
         at java.awt.Container.getPreferredSize(Unknown Source)
         at javax.swing.JComponent.getPreferredSize(Unknown Source)
         at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
         at java.awt.Container.preferredSize(Unknown Source)
         at java.awt.Container.getPreferredSize(Unknown Source)
         at javax.swing.JComponent.getPreferredSize(Unknown Source)
         at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
         at java.awt.Container.preferredSize(Unknown Source)
         at java.awt.Container.getPreferredSize(Unknown Source)
         at javax.swing.JComponent.getPreferredSize(Unknown Source)
         at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
         at java.awt.Container.preferredSize(Unknown Source)
         at java.awt.Container.getPreferredSize(Unknown Source)
         at javax.swing.JComponent.getPreferredSize(Unknown Source)
         at javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source)
         at java.awt.Container.preferredSize(Unknown Source)
         at java.awt.Container.getPreferredSize(Unknown Source)
         at javax.swing.JComponent.getPreferredSize(Unknown Source)
         at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
         at java.awt.Container.preferredSize(Unknown Source)
         at java.awt.Container.getPreferredSize(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.getPreferredSize(Unknown Source)
         at java.awt.Window.pack(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.pack(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.dss.util.gui.BIExceptionDialog.display(BIExceptionDialog.java:199)
         at gecf.pmg.PmgBiOlapApp.showExceptionDialog(PmgBiOlapApp.java:2560)
         at gecf.pmg.PmgBiOlapApp.connect(PmgBiOlapApp.java:2823)
         at gecf.pmg.PmgBiOlapApp$39.actionPerformed(PmgBiOlapApp.java:2886)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener$ReleasedAction.actionPerformed(Unknown Source)
         at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Code:
    //1. create session
    m_biSession = new BISession();
    m_biSession.setBIUser(new BIUser(userName));
    m_biSession.setDeploymentOption("LOCAL");
    m_biSession.setProperty("Mode","ERROR");
    DefaultErrorHandler m_handler = new DefaultErrorHandler();
    m_handler.setDebugMode(DefaultErrorHandler.SHOW_ERROR);
    m_biSession.addErrorHandler(m_handler);
    //2.
    m_connection = new Connection();
    DefaultErrorHandler o_handler = new DefaultErrorHandler();
    o_handler.setDebugMode(DefaultErrorHandler.SHOW_ERROR);
    m_connection.addErrorHandler(o_handler);
    m_connection.setSession(m_biSession);
    m_connection.setDriverType("MDM");
    m_connection.setServerType("OLAPServer");
    m_connection.setJdbcDriverType("thin");
    m_connection.setHostName(m_hostName);
    m_connection.setPortNumber(Integer.parseInt(m_port));
    m_connection.setSID(m_olapSid);
    m_connection.setUsername(userName);
    m_connection.setPassword(password);
    //3.
    p_connection = new Connection();
    DefaultErrorHandler p_handler = new DefaultErrorHandler();
    p_handler.setDebugMode(DefaultErrorHandler.SHOW_ERROR);
    p_connection.addErrorHandler(p_handler);
    p_connection.setSession(m_biSession);
    p_connection.setDriverType(MDU.PERSISTENCE);
    p_connection.setJdbcDriverType("thin");
    p_connection.setHostName(m_hostName);
    p_connection.setPortNumber(Integer.parseInt(m_port));
    p_connection.setUsername("CATLOGADMIN");
    p_connection.setPassword("CATLOGADMINPWD");
    p_connection.setSID(m_catSid);
    p_connection.setProperty(PSRConstants.STORAGEMANAGER_DRIVER, "oracle.dss.persistence.storagemanager.bi.BIStorageManagerImpl",1,1);
    //4.
    m_metadataManager = new MetadataManager();
    DefaultErrorHandler md_handler = new DefaultErrorHandler();
    md_handler.setDebugMode(DefaultErrorHandler.SHOW_ERROR);
    m_metadataManager.addErrorHandler(md_handler);
    m_metadataManager.setSession(m_biSession);
    m_metadataManager.setConnection(p_connection);
    m_metadataManager.setConnection(m_connection);
    try{
    m_biSession.connect();
    }catch (Exception e)
    System.out.println("error connecting to bisession");
    e.printStackTrace();
    m_metadataManager.attach();
    It is giving me the error at "m_biSession.connect();" line.
    Please help asap.
    Thanks and Regards,
    Ujwala

    Did you follow the points outlined in the Release Notes:
    http://www.oracle.com/technology/products/bib/htdocs/904/readme_bibeans.html#webstart
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Machine boot time, rcscripts and jws

    Is there any way that I can specify that the jws application manager be started at the machine boot time/ restart time?
    If anyone has any ideas , please looking forward for that.
    Thanks,
    Rama

    Is there any way that I can specify that the jws
    application manager be started at the machine boot
    time/ restart time?It is just a simple program (javaws[.exe]).
    Just put it wherever one puts programs for startup on your os (Startup folder under Win32, script in one of the rc.d dirs under Unix)
    Regards,
    Marc

  • Networking and JWS

    Hi...
    In the same machine I have the following applications running :
    (1) A web server able to provide JWS content
    (2) A j2se application acting as server
    When I access this web server I get a client application via JWS that might connect to the application server(2)
    It throws no error... it simply doesnt connect.. any suggestion???
    thank you

    yes... it is not throwing an exception.
    the connection is stablished when the client initializes a Socket instance using for instance Socket mySocket = new Socket("201.78.22.192",1234)... this initialization may throw a IOException either a SecurityException. The problem is... none of this are being throwed :\
    whats happening??? I was wondering if there could be some security restriction... I dont know
    thank you anyway! but someone help me please!

  • The Differences of JWS and Sun One?

    I am quite confused on the difference between JWS and SUN one? Is JWS part of Sun One?
    And, I am also confused on J2EE and JWS? Can JWS utilize the backend of J2EE, that say, ejb?
    Your help will be much appreciated.

    I am quite confused on the difference between JWS
    and SUN one? Is JWS part of Sun One?Sun ONE (Open Network) is a name for the web centric infrastructure Sun wants to arrive at:
    http://www.sun.com/software/sunone/faq.html#1
    Don't think of this as a already 100% worked out
    plan. Parts are there, parts are planned, parts are
    open.
    Java Web Start is a technology for beaming
    Java applications (full apps, applets, ..) to
    client machines over the Web.
    A very useful thing.
    Yes, Sun mentions it together with Sun ONE:
    http://www.sun.com/software/sunone/portfolio/plat.html
    And, I am also confused on J2EE and JWS? Can JWS
    utilize the backend of J2EE, that say, ejb?As far as I understand J2EE and its Enterprise Java Beans, they are intended to run on server machines.
    Web Start is intended for beaming Java apps to
    client machines in the first place, allowing a very
    easy installation/update which just needs a mouse click from a web page by the user to get done (once Web Start has been installed on the client).
    While it might be possible to use Web Start in
    some favourable way in the context of server
    administration, I doubt that those admins
    will use it right now. If, it most likely turn up
    in the shape of special jnlp clients, that use
    part of the Web Start technologies, not in
    shape of the present end-user client.
    Regards,
    Marc

Maybe you are looking for

  • Mode Aggregate function in Oracle

    The function Should give the most frequently occurring, or repetitive, value in the group of data. Example, if say rate column as following values.... 6,3,3,5,6,7,3,3. The function mode(rate) should return 3, since 3 occures 4 times in the stream all

  • What is the benefit of static in a method/function

    hello, can u explain the benefit of static in a function? and why i cannot called a function in a static method..example : class jalaninFungsi{      public static void main(String args[])           tesfungsi();      public  void tesfungsi()          

  • Removing faulted frames in a video

    Hi, I have a video recorded from a conversation by Fraps. However, the video is blinking please check these 2 frames: http://i.imgbox.com/advDizY4.jpg (good frame,sensored for privacy, sorry about that) http://i.imgbox.com/abfLJ77o.jpg (error frame)

  • OTL Timecard Customization !!!

    Hi All, I'm trying Customization to OTL Timecard i.e add two extra columns Project Name and Task Name. I got this ldt file (hxczzhxclayt0019.ldt) to customize. I did my changes to add these fields. I was successful in seeing these columns. But the pr

  • How to write into file from xml dom Object

    Hello, I try to transform my xml DOM document object into file. I try the following: try {           // Prepare the DOM document for writing           DOMSource source = new DOMSource(newDoc);           // Prepare the output file           File file