Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4624608
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:09:13+00:00 2026-05-22T03:09:13+00:00

I have a Swing application running on Java 1.6.0_20 on Windows XP (32-bit). I

  • 0

I have a Swing application running on Java 1.6.0_20 on Windows XP (32-bit). I would like to publish the application via Citrix 3.0, running on Windows Server 2003. When attempting to run the client jar (with the same JRE and parameters as on XP, which works fine) from the server, however, the following exception is thrown:

    Exception: java.lang.NullPointerException
    Thu May 17 18:52:09 GMT 2011
    java.lang.NullPointerException
        at com.sun.java.swing.plaf.windows.WindowsRadioButtonUI.installDefaults(Unknown Source)
        at com.sun.java.swing.plaf.windows.WindowsCheckBoxUI.installDefaults(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonUI.installUI(Unknown Source)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.AbstractButton.setUI(Unknown Source)
        at com.company.aqqs.displayproject.factory.ToggleFieldFactory.newToggleField(ToggleFieldFactory.java:70)
        at com.company.aqqs.displayproject.factory.ToggleFieldFactory.newToggleField(ToggleFieldFactory.java:120)
        at com.company.aqqs.displayproject.factory.ToggleFieldFactory.newToggleField(ToggleFieldFactory.java:156)
        at com.company.aqqs.ui.MainWindow.getqq_FreezeWindow(MainWindow.java:7546)
        at com.company.aqqs.ui.MainWindow.getqq_GridField131657(MainWindow.java:7588)
        at com.company.aqqs.ui.MainWindow.getqq_RefreshPaneGridField(MainWindow.java:7640)
        at com.company.aqqs.ui.MainWindow.getqq_ToolbarGridField(MainWindow.java:8085)
        at com.company.aqqs.ui.MainWindow.getqq_MainGrid(MainWindow.java:11228)
        at com.company.aqqs.ui.MainWindow.getForm(MainWindow.java:11303)
        at com.company.aqqs.ui.MainWindow.initialize(MainWindow.java:11328)
        at com.company.aqqs.ui.BaseWindow.<init>(BaseWindow.java:109)
        at com.company.aqqs.ui.ExWindow.<init>(ExWindow.java:281)
        at com.company.aqqs.ui.MainWindow.<init>(MainWindow.java:435)
        at com.company.aqqs.ui.MainWindow.launch(MainWindow.java:11544)
        at com.company.aqqs.ui.MainWindow.main(MainWindow.java:11557)

Is there something missing in Windows Server 2003 that would cause the NullPointerException to be thrown and, equally important, is there a workaround?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T03:09:14+00:00Added an answer on May 22, 2026 at 3:09 am

    I have a hunch that this has to do with the supported Look and Feel on each platform, and Windows Server 2003 does not fully support the Default Look and Feel that the Java VM employs.

    You set the look and feel programmatically in this way

    /* Choose one of the L&Fs below. */    
    public static void main(String[] args) {
        try {
            // 1. Set System L&F
            UIManager.setLookAndFeel(
                UIManager.getSystemLookAndFeelClassName());
            // 2. or set cross-platform Java L&F (also called "Metal")
            UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
        } 
        catch (UnsupportedLookAndFeelException e) {
           // handle exception
        }
        catch (ClassNotFoundException e) {
           // handle exception
        }
        catch (InstantiationException e) {
           // handle exception
        }
        catch (IllegalAccessException e) {
           // handle exception
        }
    
        new SwingApplication(); //Create and show the GUI.
    }
    

    Likely, to specify the Look and Feel explicitly and catch any exceptions might solve the problem. See also the Java Tutorials.

    You might also want to compare the two Java Runtimes on each platform, especially the libraries in the Runtimes, i.e. .jar files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited development of a Java/SWT application running on Windows only. One of
I'm developing a Swing-based Java application in Eclipse on Windows XP. I have a
As the title suggests, we have a Java (Swing) desktop application, and we'd like
I have a Swing Application running under Linux, that has problems to display accented
I have a Java swing application with a panel that contains three JComboBoxe s
I have a Java Swing application, developed on Mac OS X 10.5 using Java
In the application I'm developping (in Java/swing), I have to show a full screen
I am making an application with Java Swing and i have a problem. I
I have an Apache Derby database running (in networked mode) inside a java swing
I have created one java-swing application. The application runs perfectly runs perfect on my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.