`
Sev7en_jun
  • 浏览: 1225563 次
  • 性别: Icon_minigender_1
  • 来自: 广州
博客专栏
84184fc0-d0b6-3f7f-a3f0-4202acb3caf5
Apache CXF使用s...
浏览量:111305
社区版块
存档分类
最新评论

解决:Current thread: main java.lang.NullPointerException javax.swing.border

 
阅读更多

 

Error Message:

All visual sybase tools aborts after the initial splash screen.

                         +-----------------+
                              |   Stack Trace   |
                              +-----------------+

Current thread: main
java.lang.NullPointerException
        at javax.swing.border.EmptyBorder.<init>(Unknown Source)
        at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI
$XPDefaultRenderer.getTableCellRendererComponent(Unknown Source)
        at com.sybase.util.SybWindowsTableHeaderUI
$XPRendererFix.getTableCellRendererComponent
(SybWindowsTableHeaderUI.java)
        at com.sybase.central.viewer.DetailsList
$ImageHeaderRenderer.getTableCellRendererComponent(DetailsList.java:
1392)
        at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer
(Unknown Source)
        at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown
Source)
        at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown
Source)
        at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown
Source)
        at javax.swing.JComponent.getPreferredSize(Unknown Source)
        at javax.swing.ViewportLayout.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.ScrollPaneLayout.layoutContainer(Unknown Source)
        at java.awt.Container.layout(Unknown Source)
        at java.awt.Container.doLayout(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validate(Unknown Source)
        at java.awt.Window.show(Unknown Source)
        at java.awt.Component.show(Unknown Source)
        at java.awt.Component.setVisible(Unknown Source)
        at com.sybase.central.viewer.SybaseCentral.run(SybaseCentral.java:
144)
        at com.sybase.central.viewer.SybaseCentral.main(SybaseCentral.java:
232)
        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 com.sybase.central.viewer.SCLoader.callMethod(SCLoader.java:207)
        at com.sybase.central.viewer.SCLoader.main(SCLoader.java:107)

                             +--------------------+
                             |   Sybase Central   |
                             +--------------------+

Version: 4.3.0.2387

                               +---------------+
                               |   Classpath   |
                               +---------------+

C:\Sybase\Shared\Sybase Central 4.3\sybasecentral.jar
    Timestamp=2004-10-13 13:02:04.0
    Length=599987

C:\Sybase\Shared\java\jsyblib142.jar
    Timestamp=2004-10-13 12:55:20.0
    Length=264627

C:\Sybase\Shared\java\HelpManager11.jar
    Timestamp=2004-10-13 12:56:12.0
    Length=56457

C:\Sybase\Shared\java\SCEditor142.jar
    Timestamp=2004-10-13 12:58:36.0
    Length=344763

C:\Sybase\Shared\Sun\JavaHelp-1_1\jh.jar
    Timestamp=2002-06-24 09:36:00.0
    Length=347246

C:\Sybase\Shared\Sybase Central 4.3\jcchart400K.jar
    Timestamp=2003-10-08 10:38:32.0
    Length=1060404

                                +-------------+
                                |   Java VM   |
                                +-------------+

Total memory: 2994176
Free memory: 634224
System properties:
    asa.location=C:\Sybase\Shared\SYBASE~1.3\
    awt.toolkit=sun.awt.windows.WToolkit
    file.encoding=Cp1252
    file.encoding.pkg=sun.io
    file.separator=\
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.class.path=C:\Sybase\Shared\SYBASE~1.3\SYBASE~1.JAR;C:\Sybase
\Shared\java\JSYBLI~1.JAR;C:\Sybase\Shared\java\HELPMA~1.JAR;C:\Sybase
\Shared\java\SCEDIT~1.JAR;C:\Sybase\Shared\sun\JAVAHE~1\jh.jar;C:
\Sybase\Shared\SYBASE~1.3\JCCHAR~1.JAR;
    java.class.version=48.0
    java.endorsed.dirs=C:\Sybase\Shared\sun\jre142\lib\endorsed
    java.ext.dirs=C:\Sybase\Shared\sun\jre142\lib\ext
    java.home=C:\Sybase\Shared\sun\jre142
    java.io.tmpdir=C:\Users\OLAF~1.OCS\AppData\Local\Temp\
    java.library.path=C:\Sybase\Shared\Sybase Central 4.3\win32;.;C:
\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows
\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\SQL Anywhere 10\x64;C:\Program Files (x86)\SQL Anywhere
10\win32;C:\Program Files (x86)\SQL Anywhere 10\Sybase Central
5.0.0\win32;C:\Program Files (x86)\Sybase\Shared\PowerBuilder;C:
\Program Files (x86)\Sybase\PowerBuilder 11.0;C:\Program Files
(x86)\Sybase\Shared\Web Targets;C:\Windows\Microsoft.NET\Framework
\v2.0.50727;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn
\;C:\Program Files (x86)\Ipswitch\Common;C:\Program Files
(x86)\QuickTime\QTSystem\;C:\Program Files (x86)\PreMaster\PreMaster
PRO\ASA\win32;C:\Program Files (x86)\PreMaster\PreMaster PRO\ASA\shared
\win32;C:\Program Files (x86)\PreMaster\PreMaster PRO\ASA\drivers;C:
\Program Files (x86)\PreMaster\PreMaster PRO\ASA\shared\Sybase Central
4.3\win32;C:\Program Files (x86)\Sybase\SQL Anywhere 9\shared\win32;C:
\Program Files (x86)\Sybase\SQL Anywhere 9\shared\Sybase Central
4.3\win32;C:\Sybase\SQL Anywhere 9\win32;C:\Sybase\Shared\win32;C:
\Sybase\SQL Anywhere 9\drivers;C:\Sybase\Shared\Sybase Central
4.3\win32
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version=1.4.2_02-b03
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.4

java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactor­y
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.4.2_02
    java.vm.info=mixed mode
    java.vm.name=Java HotSpot(TM) Client VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=1.4.2_02-b03
    line.separator=

    os.arch=x86
    os.name=Windows NT (unknown)
    os.version=6.1
    path.separator=;
    sun.arch.data.model=32
    sun.awt.exception.handler=com.sybase.util.ExceptionHandler
    sun.boot.class.path=C:\Sybase\Shared\sun\jre142\lib\rt.jar;C:
\Sybase\Shared\sun\jre142\lib\i18n.jar;C:\Sybase\Shared\sun\jre142\lib
\sunrsasign.jar;C:\Sybase\Shared\sun\jre142\lib\jsse.jar;C:\Sybase
\Shared\sun\jre142\lib\jce.jar;C:\Sybase\Shared\sun\jre142\lib
\charsets.jar;C:\Sybase\Shared\sun\jre142\classes
    sun.boot.library.path=C:\Sybase\Shared\sun\jre142\bin
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    sun.io.unicode.encoding=UnicodeLittle
    sun.java2d.d3d=false
    sun.java2d.fontpath=
    sun.java2d.noddraw=true
    sun.os.patch.level=
    sybase.jsyblib.dll.location=C:\Sybase\Shared\win32\
    user.country=NO
    user.dir=C:\Sybase\Shared\Sybase Central 4.3\win32
    user.home=C:\Users\olaf.OCSPREMASTER
    user.language=no
    user.name=olaf
    user.timezone=GMT
    user.variant=

                             +-------------------+
                             |   Java Packages   |
                             +-------------------+

Package: com.sun.java.swing
    Implementation title: Java Runtime Environment
    Implementation vendor: Sun Microsystems, Inc.
    Implementation version: 1.4.2_02
    Specification title: Java Platform API Specification
    Specification vendor: Sun Microsystems, Inc.
    Specification version: 1.4

Package: com.sun.java.swing.plaf.windows
    Implementation title: Java Runtime Environment
    Implementation vendor: Sun Microsystems, Inc.
    Implementation version: 1.4.2_02
    Specification title: Java Platform API Specification
    Specification vendor: Sun Microsystems, Inc.
    Specification version: 1.4

Package: com.sun.java.swing.plaf.windows.resources
    Implementation title: Java Runtime Environment
    Implementation vendor: Sun Microsystems, Inc.
    Implementation version: 1.4.2_02
    Specification title: Java Platform API Specification
    Specification vendor: Sun Microsystems, Inc.
    Specification version: 1.4

Package: com.sun.swing.internal.plaf.basic.resources
    Implementation title: Java Runtime Environment
    Implementation vendor: Sun Microsystems, Inc.
    Implementation version: 1.4.2_02
    Specification title: Java Platform API Specification
    Specification vendor: Sun Microsystems, Inc.
    Specification version: 1.4

Package: com.sybase.central
    Implementation title: Sybase Central
    Implementation vendor: Sybase, Inc.
    Implementation version: 4.3.0.2387
    Specification title: Sybase Central
    Specification vendor: Sybase, Inc.
    Specification version: 4.3.0.2387

Package: com.sybase.central.editor
    Implementation title: Sybase Central Editor
    Implementation vendor: Sybase, Inc.
    Implementation version: 4.3.0.2197
    Specification title: Sybase Central Editor
    Specification vendor: Sybase, Inc.
    Specification version: 4.3.0.2197

Package: com.sybase.central.lang
    Implementation title: Sybase Central
    Implementation vendor: Sybase, Inc.
    Implementation version: 4.3.0.2387
    Specification title: Sybase Central
    Specification vendor: Sybase, Inc.
    Specification version: 4.3.0.2387

Package: com.sybase.central.viewer
    Implementation title: Sybase Central
    Implementation vendor: Sybase, Inc.
    Implementation version:
...

Solution:

Version 9 uses an older version of the Java JDK not compatible with Windows
7. 
Tturn off "Use visual styles on windows and buttons" in Windows
performance
options located in: 控制面板-> 系统 ->高级.->性能-设置->关闭“在窗口和按钮使用视觉样式”

 

PS:如果这项已经是关闭的,那你可能使用了“调整为最佳性能”,如果是这样就要选其他的

 

 

0
1
分享到:
评论

相关推荐

    An internal error occurred during: java.lang.NullPointerException

    这个错误通常伴随着`java.lang.NullPointerException`异常,导致在启动Tomcat服务器时不断弹出错误对话框。这种情况下,尽管后台没有明显的错误日志,但频繁出现的警告窗口无疑会给开发工作带来不便。 ### 错误分析...

    apple越狱备份数据

    Exception in thread "Thread-1" java.lang.ExceptionInInitializerError at com.semaphore.jna.md.MDLibrary.&lt;clinit&gt;(MDLibrary.java:39) at ...

    java.lang.NullPointerException

    Java.lang.NullPointerException 解决方案与原因分析 Java.lang.NullPointerException 是 Java 语言中一种常见的异常,它发生在 Java 应用程序尝试使用 null 对象引用时。这种异常通常是由于程序员错误地认为对象...

    java-json.7z

    java.lang.NullPointerException,没遇到可以跳过 19/09/20 09:57:47 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException at org.json.JSONObject.(JSONObject.java:144) ## 缺少...

    Java xml出现错误 javax.xml.transform.TransformerException: java.lang.NullPointerException

    在上述问题中,开发者遇到了一个特定的错误:“javax.xml.transform.TransformerException: java.lang.NullPointerException”。这个错误通常表明在尝试执行XML转换时,某个对象没有被正确地初始化或者为null。我们...

    java.lang.NullPointerException的解决方法

    ### Java.lang.NullPointerException 解决方法详解 在Java开发过程中,`java.lang.NullPointerException`(简称NPE)是一种常见的运行时异常。它发生在试图对空对象执行操作时,例如调用对象的方法或访问其属性等。...

    java.lang.NullPointerException的可能原因及处理.docx

    Java.lang.NullPointerException 的可能原因及处理 Java.lang.NullPointerException 是 Java 语言中最常见的异常之一,它的出现通常是由于编程不当或对象未被正确初始化所致。在本文中,我们将探讨 Java.lang....

    Sqoop通过Phoenix导hbase数据到hive

    出现此问题时使用:java.lang.NullPointerException at org.json.JSONObject.(JSONObject.java:144) at org.apache.sqoop.util.SqoopJsonUtil.getJsonStringforMap(SqoopJsonUtil.java:43) at org.apache.sqoop....

    java 空指针异常(NullPointerException)

    Exception in thread "main" java.lang.NullPointerException at com.example.YourClass.yourMethod(YourClass.java:XX) ``` 其中,`YourClass`是你程序中的类名,`yourMethod`是引发异常的方法名,`XX`是异常发生...

    CRASH问题:java.lang.NullPointerException

    java.lang.NullPointerException: Attempt to invoke virtual method ‘void android.widget.ImageView.setImageResource(int)’ on a null object reference 今天在家练习ListView的时候,遇到一个java.lang....

    绝望,上传文件失败。。遇到并解决java.lang.NullPointerException

    解决报错:java.lang.NullPointerException 解决方法:将文件的编码方式改为utf-8即可! 截图: 修改成功后:   代码: import os import json import re def json_to_html(i,cvenum): print('正在处理:'+...

    Exception in thread "main" java.lang.NullPointerException

    希望高手指点

    java.lang.NullPointerException出现的几种原因及解决方案

    java.lang.NullPointerException出现的几种原因及解决方案 java.lang.NullPointerException是Java中最常见的异常之一,它经常出现在日常编程中。了解java.lang.NullPointerException的原因和解决方案对于Java开发者...

    COS——R.log

    at java.lang.Thread.run(Thread.java:595) run WARN 2012-07-11 23:06:11,271 COS 218.2.129.11 入业务流跟踪表失败 run ERROR 2012-07-11 23:15:28,868 COS 218.2.129.11 本事务编码:CloseOverTimeSheet所对应...

    server frame base on c.rar

    java.lang.NullPointerException at com.ynd.back.socket.WebSocket.onMessage(WebSocket.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl....

    Myeclipse安装aptana插件后报java.lang.NullPointerException解决方案

    ### Myeclipse安装Aptana插件后报java.lang.NullPointerException解决方案 #### 问题背景 在使用Myeclipse的过程中,不少用户遇到了一个较为常见的问题:安装Aptana插件之后,每次启动Myeclipse时都会出现`java....

    android 奔溃日志收集 发送邮件到邮箱

    2018-01-31-19-14-51 ----java.lang.RuntimeException: Unable to start activity ComponentInfo{com.applp.chunghop/com.applp.chunghop.activity.MainActivity}: java.lang.NullPointerException: Attempt to ...

    在Java中异常分析

    - **异常路径**:`java.lang.Object -&gt; java.lang.Throwable -&gt; java.lang.Exception -&gt; java.lang.RuntimeException -&gt; java.lang.NullPointerException` - **解释**:当应用程序尝试使用未初始化的对象引用调用...

    pdfbox1.0.jar

    java.lang.NullPointerException at org.pdfbox.pdmodel.PDPageNode.getCount(PDPageNode.java:116) at org.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:772) (2)pdfbox0.8 org.apache....

    解决出现 java.lang.ExceptionInInitializerError错误问题

    `java.lang.ExceptionInInitializerError` 是Java编程语言中一种比较特殊的异常,通常在类的静态初始化过程中遇到问题时抛出。这个错误意味着在初始化类的静态变量或静态初始化块(static block)时发生了异常。这类...

Global site tag (gtag.js) - Google Analytics