Java refresh/update JTextPane

I have my JTextPane text reading from an xml file, now I have updated my xml file how do I make the JTextPane refresh/update with that content?
Thanks in advance,
Dennis

It's a bit long
Actually it's not that it isn't working, it is I don;t know the best way to do it.
package trunk.textConversation;
import javax.swing.*;
import javax.swing.text.*;
import java.awt.*;              //for layout managers and more
import java.awt.event.*;        //for action events
public class Textconversation extends JPanel implements ActionListener {
     //The name of the user
     public static String name = "Guest";
     //The message of the user
     public static String message;
     //The text to output
     public static String[] initString;
     //The style the text will be in
     public static String[] initStyles = {"regular"};
     public static JFrame frame;
     private static final long serialVersionUID = 1L;
     //private String newline = "\n";
    protected static final String textFieldString = "JTextField";
    protected static final String buttonString = "JButton";
    protected JLabel actionLabel;
    public Textconversation() {
        setLayout(new BorderLayout());
        //Create a regular text field.
        JTextField textField = new JTextField(10);
        textField.setActionCommand(textFieldString);
        textField.addActionListener(this);
        //Create some labels for the fields.
        JLabel textFieldLabel = new JLabel();
        textFieldLabel.setLabelFor(textField);
        //Create a label to put messages during an action event.
        actionLabel = new JLabel("Type text in a field and press Enter.");
        actionLabel.setBorder(BorderFactory.createEmptyBorder(10,0,0,0));
        //Lay out the text controls and the labels.
        JPanel textControlsPane = new JPanel();
        GridBagLayout gridbag = new GridBagLayout();
        GridBagConstraints c = new GridBagConstraints();
        textControlsPane.setLayout(gridbag);
        JLabel[] labels = {textFieldLabel};
        JTextField[] textFields = {textField};
        addLabelTextRows(labels, textFields, gridbag, textControlsPane);
        c.gridwidth = GridBagConstraints.REMAINDER; //last
        c.anchor = GridBagConstraints.WEST;
        c.weightx = 1.0;
        textControlsPane.add(actionLabel, c);
        textControlsPane.setBorder(
                BorderFactory.createCompoundBorder(
                                BorderFactory.createTitledBorder("Text Fields"),
                                BorderFactory.createEmptyBorder(5,5,5,5)));
        //Create a text pane.
        JTextPane textPane = createTextPane();
        JScrollPane paneScrollPane = new JScrollPane(textPane);
        paneScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        paneScrollPane.setPreferredSize(new Dimension(250, 155));
        paneScrollPane.setMinimumSize(new Dimension(10, 10));
        //Put the editor pane and the text pane in a split pane.
        JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
                                              paneScrollPane,
                                              textControlsPane);
        splitPane.setOneTouchExpandable(true);
        splitPane.setResizeWeight(0.5);
        JPanel rightPane = new JPanel(new GridLayout(1,0));
        rightPane.add(splitPane);
        rightPane.setBorder(BorderFactory.createCompoundBorder(
                        BorderFactory.createTitledBorder("Styled Text"),
                        BorderFactory.createEmptyBorder(5,5,5,5)));
        //Put everything together.
        JPanel leftPane = new JPanel(new BorderLayout());
        add(leftPane, BorderLayout.LINE_START);
        add(rightPane, BorderLayout.LINE_END);
    private void addLabelTextRows(JLabel[] labels, JTextField[] textFields, GridBagLayout gridbag, Container container) {
        GridBagConstraints c = new GridBagConstraints();
        c.anchor = GridBagConstraints.EAST;
        int numLabels = labels.length;
        for (int i = 0; i < numLabels; i++) {
            c.gridwidth = GridBagConstraints.RELATIVE; //next-to-last
            c.fill = GridBagConstraints.NONE;      //reset to default
            c.weightx = 0.0;                       //reset to default
            container.add(labels, c);
c.gridwidth = GridBagConstraints.REMAINDER; //end row
c.fill = GridBagConstraints.HORIZONTAL;
c.weightx = 1.0;
container.add(textFields[i], c);
public static void textOutput() {
     Xmlreader.readElement();
     initString = new String[Xmlreader.conversation.length];
     for (int s = 0; s < Xmlreader.conversation.length; s++) {
          initString[s] = Xmlreader.conversation[s] + "\n";
public void actionPerformed(ActionEvent e) {
     //After user clicked enter
String prefix = "You typed \"";
if (textFieldString.equals(e.getActionCommand())) {
JTextField source = (JTextField)e.getSource();
actionLabel.setText(prefix + source.getText() + "\"");
message = source.getText();
Xmlreader.addElement();
} else if (buttonString.equals(e.getActionCommand())) {
Toolkit.getDefaultToolkit().beep();
public JTextPane createTextPane() {
     textOutput();
JTextPane textPane = new JTextPane();
textPane.setEditable(false);
StyledDocument doc = textPane.getStyledDocument();
addStylesToDocument(doc);
try {
               for (int i=0; i < initString.length; i++) {
doc.insertString(doc.getLength(), initString[i],
doc.getStyle(initStyles[0]));
} catch (BadLocationException ble) {
System.err.println("Couldn't insert initial text into text pane.");
return textPane;
protected void addStylesToDocument(StyledDocument doc) {
//Initialize some styles.
Style def = StyleContext.getDefaultStyleContext().
getStyle(StyleContext.DEFAULT_STYLE);
Style regular = doc.addStyle("regular", def);
StyleConstants.setFontFamily(def, "SansSerif");
Style s = doc.addStyle("italic", regular);
StyleConstants.setItalic(s, true);
s = doc.addStyle("bold", regular);
StyleConstants.setBold(s, true);
s = doc.addStyle("small", regular);
StyleConstants.setFontSize(s, 10);
s = doc.addStyle("large", regular);
StyleConstants.setFontSize(s, 16);
s = doc.addStyle("icon", regular);
StyleConstants.setAlignment(s, StyleConstants.ALIGN_CENTER);
ImageIcon pigIcon = createImageIcon("", "");
if (pigIcon != null) {
StyleConstants.setIcon(s, pigIcon);
s = doc.addStyle("button", regular);
StyleConstants.setAlignment(s, StyleConstants.ALIGN_CENTER);
ImageIcon soundIcon = createImageIcon("", "");
JButton button = new JButton();
if (soundIcon != null) {
button.setIcon(soundIcon);
} else {
button.setText("BEEP");
button.setCursor(Cursor.getDefaultCursor());
button.setMargin(new Insets(0,0,0,0));
button.setActionCommand(buttonString);
button.addActionListener(this);
StyleConstants.setComponent(s, button);
/** Returns an ImageIcon, or null if the path was invalid. */
protected static ImageIcon createImageIcon(String path,
String description) {
java.net.URL imgURL = Textconversation.class.getResource(path);
if (imgURL != null) {
return new ImageIcon(imgURL, description);
} else {
System.err.println("Couldn't find file: " + path);
return null;
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event dispatch thread.
private static void createAndShowGUI() {
//Create and set up the window.
frame = new JFrame("Conversation");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Add content to the window.
frame.add(new Textconversation());
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
//Schedule a job for the event dispatching thread:
//creating and showing this application's GUI.
SwingUtilities.invokeLater(new Runnable() {
public void run() {
//Turn off metal's use of bold fonts
                    UIManager.put("swing.boldMetal", Boolean.FALSE);
                    createAndShowGUI();
Message was edited by:
Dennis56

Similar Messages

  • Refresh/Update WSDL File?

    New to JDeveloper, so apologises if this is simple / asked before. I've done some Googles and search this forum but to no avail.
    I'm developing a Java based client to call a .NET web service. I've managed to communicate to the web service by adding the Web Service Proxy option to my application.
    However the web service has now been updated and I would like to call the new functionality - how can I refresh/update the wsdl file? Or do I have to delete and reimport everytime?
    Cheers,
    Greg
    PS. Using JDeveloper 1.10.3...

    okay nevermind, everything is working fine now. weird. :)

  • 'A file or directory doesn't exist' error during java stack update

    Dear All,
    I've done a fresh installation of solution manger system on IBM iseries box (OS400 & DB2 combo).
    As part of post installation activity, I've updated the kernel patch, updated the ABAP stack to sp4, and am currently doing the java stack update.
    I'm struck with one error. The log file shows:
    Feb 23, 2012 7:54:35 PM  Error: /usr/sap/SLM/SYS/global/j2eeclient/META-INF/SAP_MANIFEST.MF (A file or directory in the path name does not exist.)
    Feb 23, 2012 7:54:35 PM  Error: Error deploying Fileset Complete to /usr/sap/SLM/SYS/global/j2eeclient
    Feb 23, 2012 7:54:35 PM  Info: ***** End of File-System Deployment com.sap.engine.client *****
    Feb 23, 2012 7:54:35 PM  Error: Aborted: development component 'com.sap.engine.client'/'sap.com'/'SAP AG'/'7.0209.20110628100654.0000'/'1', grouped by :
    Deployment was not successful
    I've checked the file system and found that the directory META-INF is not present in /../../global/j2eeclient
    Please suggest a solution.
    Thank You.
    regards,
    vin

    Hi,
    This is an easy solution:
    From the OS command line, do WRKLNK, go to /usr/sap/SLMS/global/j2eeclient,  at the top where it shows the directory, do a copy on this. Then at the command line type MD, do F4, paste the directory name in the first line, then after j2eeclient add /META-INF'
    IMportant*** Make sure the full directory name is in single quotes.*
    *On the next 2 lines change INDIR to RWX.  Then press enter and re-run your job.  If you have any problems let me know.

  • Java 7 update 51 cause the following error: java.util.HashMap cannot be cast to java.awt.RenderingHints

    Since I installed Java 7 update 51 accessing the EMC VNX Unisphere Console cause the following error: java.util.HashMap cannot be cast to java.awt.RenderingHints.
    I rolled back to Apple Java 1.6 -005 now I am getting the following error: plug-in failure.
    I think this is cused by the fact that the EMC console application has been written for java 7 and not java 6. Has anybody faced and solved the "java.util.HashMap cannot be cast to java.awt.RenderingHints." error ?

    Hi Yaakov,
    The error is thrown from the  eclipselink.jar:2.5.1 which is a JPA provider .
    Is the above jar bundled in the Oracle Product you are working upon or was this downloaded from external site ?
    If the jar is bundled with the Oracle Product, go ahead a log a SR with Oracle Support with Toplink product group to drill down on the issue, as the issue is happening internally or thrown by the Eclipselink implementation and we've no control....
    Hope it helps!!
    Thanks,
    Vijaya

  • Webstart no longer works after update from Java 7 Update 67 to Java 7 Update 71/72

    Hi,
    We have an application that is launched via Webstart.  Last year, we had to make a bunch of changes to the application in order to work with Java 7 Update 45.  It has been working fine up to and including Java 7 Update 67.  However, it is no failing with Java 7 Update 71 and 72.  Upon launch it is giving the error below. I have searched online and found other articles related to the AccessControlException but they are about 7 years old.  I also tried adding this to the java.policy file with no luck.  Any ideas or help would be appreciated to determine what I can do to get this to work for update 71.
    java.security.AccessControlException: access denied ("java.util.PropertyPermission" "eclipse.exitcode" "write")
        at java.security.AccessControlContext.checkPermission(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at org.eclipse.osgi.framework.internal.core.FrameworkProperties.setProperty(FrameworkProperties.java:64)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:216)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
        at org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartMain.java:78)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
        at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain.java:56)

    krubar wrote:
    I have same problem on Sparc system (Solaris 10). Does anybody know how to fix it ? I can't change symbolic link for javaAre you certain that you are experiencing exactly the same issue? Did you follow the hyperlinks to the Sun Solve documents above?
    The Sun Solve document itself states:
    1. Solaris 8 and 9 and OpenSolaris and Solaris 10 on the SPARC platform are not impacted by this issue.I would suggest that you open a Support Call with your local solutions centre.

  • Mavericks (10.9.1) blocking Java 7 update 51

    I am trying to play the NY Times Java Acrostic.  Every couple of months I have to update Java in order to get the applet to load (I get a message that my Java is out of date). This time I updated to Java 7 update 51, installed it, verified that it is successfully installed. But every time I try to click on the Java Acrostic, I get an error message where the Acrostic normally is located reading "Error. Click for details." I click and get a box headed "Application Blocked. Click for detais" with a red stop sign icon (the first few times it was just a white "i" in t blue circle icon) that states "Your security settings have blocked an untrusted application from running." There are three buttons: Details, Ignore, Reload.  "Ignore" and "Reload" accomplish nothing. "Details" gets me a "Java Console" box which reads:
    Java Plug-in 10.51.2.13
    Using JRE version 1.7.0_51-b13 Java HotSpot(TM) 64-Bit Server VM
    User home directory = /Users/sandina
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    The menu bar in the Java Console reads "Java Applet---www.nytimes.com"
    The Times is stumped. I went to Safari Preferences (Security) and both the Times website and Java Applet are set to "Always Allow." Java Preferences' Security tab is set to "Medium" as several tech websites instruct (apparently this is a HUGE known issue with the latest updates to Mavericks and Java).  This did not happen until I updated Mavericks to 10.9.1.
    HELP!!! (Warning--I am NOT comfortable trying to write code and don't understand half the complicat

    I'm not an expert, but I've gotten around this problem in the following way.
    Go to the Java Control Panel
    Click on the Security Tab
    Look for the Exception Site List toward the bottom, and click "Edit Site List"
    I added these sites to the list. Not sure if all are needed, but I was able to do the acrostic afterwards.
    http://nytsyn.pzzl.com
    http://www.nytimes.com
    http://query.nytimes.com
    You may need to quit Safari and restart it.  Good luck.

  • HT5945 Java has updated again today, i use a jave plug in to run my virtual software to access my work from home, today i have an error message saying security will not allow access to my website that i use to log in to work from, this is a JREdetection e

    Java has updated again today,
    i use a java plug in to run my virtual software to access my work from home,
    today i have an error message saying that security will not allow access to my website
    i use to log in to work from, this is a JREdetection error,
    my system runs off java and citrix, i tried chrome,firefox and safari - same issue, if my system cannot detect java it wont run, it runs on plug ins.
    How to i change my sec settings to allow access to this website, as i can only see that i can add apps not web addresses?

    If you get an error that says can't backup, try moving the existing backup file to a safe location and thry again. again. You can find the location of the backup file here:
    iPhone and iPod touch: About backups

  • Java 7 Update 9 don't work in mac os 10.7.5

    I have Mac OS X 10.7.5. I have installed Java 7 Update 9 as confirmed by the Java Control Panel. When I go to java.com and try verifying installation I got no response, so there is a problem with my installation. I have reinstalled Java and I have deleted all temporary files via the Java Control Panel, as suggested at java.com. But still Java is not working. What can I do? Thank you for any solution!

    Use OnyX to clean your system and User cache files. It's free to download. Just click on the "Automation" tab, check the boxes and run it.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Creator of 'Mac611 - Mobile Mac Support' (designed exclusively for an iPhone/iPod touch)

  • Java 7 update 17 not  working on Mac os x 10.7.5

    Hi,
    I am trying to get my Java working on my mac os x 10.7.5, but everything is saying that the plug-in is inactive, or java applets just continuously load. My java is enabled and up to date, as is my safari. I have read about all this stuff saying apple disabled java then renabled it without telling anyone. What exactly is going on and how can i get java to work?!?! I have tried fiddling with its settings, uninstalling, reinstalling, downloading chrome, etc etc and nothing seems to have any affect. Is there a way of reverting to some old software in either safari, java, or something to make this work as it used to until it decided to not one magical day?
    Thanks in advance,
    Jen 

    Hi Jen,
    I am having the same issue, from what i am reading and understanding is apple and there in genius ideas decided to block Java because its apparently a security risk - a joke i know!
    see i had my course materail for tafe all working then i decided to do the update that kept popping up since then it doesnt work, i installed java 7 update 17 on my old mac book pro and it works perfectly the only thing that is different between those 2 is safari my imac is running 6.0.3 and my macbook is still on the one before that..
    i am still currently working on a way to enable this again unless apple relise that this was a completly stupid idea and come to there sens before i come up with away then ill keep you updated when i get it working
    so for those who are reading this and havent updated yet my advise if you need java for online games or course materail or anything really DONT UPDATE
    thanks
    mel

  • Upgrade to 18.0 has disabled Java even though plugin checker says Java 7 Update 10 is up to date, yet webpages using java display "missing plug in" error

    Attempting to install the "missing plug-in" using the Firefox prompts results in Java 7 Update 10 being installed, re-installing it is successful and does not resolve the issue, Firefox 18 refuses to allow/display java content even with the proper updated version of Java installed.
    This problem ONLY occurred immediately following this mornings update to Firefox 18.0.

    Context:
    Yesterday: Java working fine.
    This morning: Update to Firefox 18.0
    Java will not work, not at all even with Java 7 Update 10 installed, not even the "verify java version" applet at http://www.java.com/en/download/installed.jsp will display.
    When attempting to view/display any java content the "missing plug-in" error bar at the top of the page displays and attempting to install the required plug-in via that method does not resolve the issue even though the correct version of Java is installed and the plug-in checker verified it was "up-to-date".

  • When belle refresh update on nokia n8

    my product code 059c8t6 when its going to get the belle refresh update
    Solved!
    Go to Solution.

     Unfortunately no-one can tell you when the update will be released for your country variant North American US N8. All you can do is wait for it to be approved in your country.
    Ray.

  • Java 7 Update 11 Not Working with Firefox

    For me, the problems described in the thread "Java 7 Update 10 Not Working with Firefox? " Java 7 Update 10 Not Working with Firefox?
    are continuing with Java 7 Update 11.
    Windows 7 64 bit
    Firefox 18
    The problem is that "Java(TM) Platform" is missing from the plug-in list.
    I've uninstalled Java 7 Update 11 and reinstalled Java Update 9 which correctly installs the plugin and restores Java functionality which was broken immediately upon installing both Java 10 & 11.

    981243 wrote:
    So why not using Ju11 ? You can workaround the issue. It would sucks but still be safer than using Ju9.
    Also ask Mozilla forums if Firefox has options where to search for plugins.
    Or try 64-bit Firefox.As I explained in both threads ...
    Java 7 Update 10 Not Working with Firefox?
    Java 7 Update 11 Not Working with Firefox
    ... neither jre7u10 nor jre7u11 are working ... and they are BOTH broken with the same problem ... "Java(TM) Platform" pliugin is missing from the plug-in list. It cannot be enabled, because it simply is NOT there. A suggestion was made the jre7u12 will be the "fix" for this issue ... so I installed the Update 12 Preview and it sis ALSO broken, no "Java(TM) Platform" in the plug-in list.
    The ONLY Java version that actually works for me is jre7u9.
    As far as installing Firefox 64bit ... I see no future in installing a browser that has been discontinued.
    http://www.computerworld.com/s/article/9233976/Mozilla_suspends_work_on_64_bit_Firefox_for_Windows
    Even though Mozilla relented due to backlash, I continued development will be a somewhat low priority.
    http://www.computerworld.com/s/article/9234997/Mozilla_compromises_on_x64_Firefox_after_user_backlash

  • Java 6 updates 22 thru 24 does not allow ASP Remote Scripting calls

    The Java 6 update 22 thru 24 all prevent ASP Remote Scripting from working correctly, causing applications using Remote Scripting via the standardized rs.htm code to fail. This is well documented with examples at the Java Forums page http://www.java-forums.org/new-java/36522-java-jre-6-update-21-22-rs-problem.html
    To date I have not been able to find anything that indicates Oracle is aware of this problem and is trying to fix it. If there is a fix, please contact me with it immediately!

    876886 wrote:
    Is there any update on this?
    is it fixed?Whats stopping you from installing update 26 and trying it out? Or did you think that this is an Oracle technical support forum where actual Oracle employees post?
    Note that if nobody bothered to create a bug report for this problem (because I see no evidence of that in either forum) then the answer is likely no.

  • Java 7 Update 25 Client App Downloaded From Web Start Can't Connect Out

    Since Java 7 update 25, I have an issue where my client Java application, downloaded with Java Web Start, can no longer connect to a remote server. (The client uses remote EJB to connect various servers). The issue I believe is that the client application is being blocked by security features of this Java update.
    A very quick (random?) fix around the problem is to show the Java console. If the Java console is enabled to be shown, the client application can connect fine.
    Although showing the Java console is a quick fix, it's not one we particularly want to keep asking customers to do. I understand we may need to define the Codebase and Permissions in the manifest file as described here: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/no_redeploy.html..
    I have defined the Codebase and Permissions in the manifest of the client jar's we build ourselves. I believe this has worked as we no longer see "Missing Codebase manifest attribute for...." in the console for our own jar's. However, the application still cannot connect out. I'm stumbling around somewhat on this issue and trying various things in an attempt to get this to work. Assuming i'm on the right lines and the problem is some jars missing the Codebase and Permissions in their manifests, my question is, should I and how can I modify the manifest of 3rd party jars to include this information? For example, the client app requires many JBoss and EJB client jars - do I need to somehow modify the manifest of all of these jars to include the codebase and permissions?
    It goes without saying that all the jars are signed - the application would not start at all if there was a problem here. So the application starts with it's login box - but it simply cannot connect out to the servers.
    If anybody can offer any help on this issue i'd be most grateful. As a quick fix, is there a way to get this to work via adjusting Control Panel settings (other than showing the console)? I have played with a lot but not stumbled on a way to get this to work other than showing the console, although ideally i'd like to be able to get this to work without having to do any tweaks to clients Java control panel.

    We're also seeing this. The 7u25 update completely derailed a trial program we were conducting, because no one could log in to our application via WebStart once they upgraded Java.
    Our login code crashes because SwingUtilities.isEventDispatchThread() throws an NPE.
    We tried theskad81's fix but it didn't work for us. We worked around the issue by hosting u21 on our site and pointing our WebStart page there instead of at Oracle's update site.
    *** ORACLE: PLEASE FIX THIS ISSUE USING APPLE'S FIX (mentioned in an earlier post - see above) ***
    Slightly edited stack trace:
         javax.security.auth.login.LoginException: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
        at java.awt.Toolkit.getEventQueue(Unknown Source)
        at java.awt.EventQueue.isDispatchThread(Unknown Source)
        at javax.swing.SwingUtilities.isEventDispatchThread(Unknown Source)
        at com.abc.ConsoleAuthUI.handle(ConsoleAuthUI.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
        at com.sun.proxy.$Proxy1.handle(Unknown Source)
        at com.abc.ms.rmi.MsLogin$1.handle(MsLogin.java:100)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(Unknown Source)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(Unknown Source)
        at com.abc.ms.auth.abcLoginModule.login(abcLoginModule.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.access$000(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
        at javax.security.auth.login.LoginContext.login(Unknown Source)
        at com.abc.ms.rmi.MsLogin.authenticate(MsLogin.java:111)
        at com.abc.ms.rmi.MsLogin.login(MsLogin.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at javax.security.auth.login.LoginContext.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.access$000(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
        at javax.security.auth.login.LoginContext.login(Unknown Source)
        at com.abc.ms.rmi.MsLogin.authenticate(MsLogin.java:111)
        at com.abc.ms.rmi.MsLogin.login(MsLogin.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
        at com.sun.proxy.$Proxy0.login(Unknown Source)
        at com.abc.abc.ui.console.Main.attemptLogin(Main.java:488)
        at com.abc.abc.ui.console.LoginDialog$7.run(LoginDialog.java:182)
        at com.abc.util.GrayTimer$GrayTimerTaskWrapper.run(GrayTimer.java:84)
        at java.util.TimerThread.mainLoop(Unknown Source)
        at java.util.TimerThread.run(Unknown Source)

  • Offline Web Start app fails to launch with Java 7 Update 25

    So it seems that another issue with Java 7 update 25 and Web Start applications is that a signed application will not launch when offline.
    It fails when attempting to check the revocation status of the signing certificate.
    Anyone have any ideas to get around this exception aside from uninstalling update 25?
    Thanks!
    com.sun.deploy.security.RevocationChecker$StatusUnknownException: java.net.UnknownHostException: ocsp.usertrust.com
                   at com.sun.deploy.security.RevocationChecker.checkOCSP(Unknown Source)
                   at com.sun.deploy.security.RevocationChecker.check(Unknown Source)
                   at com.sun.deploy.security.TrustDecider.checkRevocationStatus(Unknown Source)
                   at com.sun.deploy.security.TrustDecider.getValidationState(Unknown Source)
                   at com.sun.deploy.security.TrustDecider.validateChain(Unknown Source)
                   at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
                   at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
                   at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
                   at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
                   at com.sun.javaws.Launcher.prepareResources(Unknown Source)
                   at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
                   at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
                   at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
                   at com.sun.javaws.Launcher.launch(Unknown Source)
                   at com.sun.javaws.Main.launchApp(Unknown Source)
                   at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
                   at com.sun.javaws.Main.access$000(Unknown Source)
                   at com.sun.javaws.Main$1.run(Unknown Source)
                   at java.lang.Thread.run(Unknown Source)
                   Suppressed: com.sun.deploy.security.RevocationChecker$StatusUnknownException
                                  at com.sun.deploy.security.RevocationChecker.checkCRLs(Unknown Source)
                                  ... 18 more
    Caused by: java.net.UnknownHostException: ocsp.usertrust.com
                   at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
                   at java.net.PlainSocketImpl.connect(Unknown Source)
                   at java.net.SocksSocketImpl.connect(Unknown Source)
                   at java.net.Socket.connect(Unknown Source)
                   at sun.net.NetworkClient.doConnect(Unknown Source)
                   at sun.net.www.http.HttpClient.openServer(Unknown Source)
                   at sun.net.www.http.HttpClient.openServer(Unknown Source)
                   at sun.net.www.http.HttpClient.<init>(Unknown Source)
                   at sun.net.www.http.HttpClient.New(Unknown Source)
                   at sun.net.www.http.HttpClient.New(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
                   at sun.security.provider.certpath.OCSP.check(Unknown Source)
                   at sun.security.provider.certpath.OCSP.check(Unknown Source)
                   at sun.security.provider.certpath.OCSP.check(Unknown Source)
                   ... 19 more

    Disregard. I found that the user had changed the java security settings to "Very High" in addition to upgrading to update 25.

Maybe you are looking for