This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 99734 - Getting NPE when running TRS project
Summary: Getting NPE when running TRS project
Status: CLOSED DUPLICATE of bug 99100
Alias: None
Product: usersguide
Classification: Unclassified
Component: SOA (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-02 22:54 UTC by jklee
Modified: 2007-04-09 21:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jklee 2007-04-02 22:54:30 UTC
Able to build and deploy sample SOA project "TRS" but getting the following 
exception when running Test Project:

------------- Standard Error -----------------
Apr 2, 2007 2:44:45 PM org.netbeans.modules.editor.impl.KitsTracker logOnce
WARNING: No mime type uses editor kit implementation class: class 
org.netbeans.modules.xml.text.syntax.XMLKit
Apr 2, 2007 2:44:45 PM org.netbeans.editor.Settings getKitMap
WARNING: null
java.lang.NullPointerException
        at 
org.netbeans.modules.editor.NbEditorSettingsInitializer.updateSettingsMap
(NbEditorSettingsInitializer.java:102)
        at org.netbeans.editor.Settings.getKitMap(Settings.java:626)
        at org.netbeans.editor.Settings.getValue(Settings.java:330)
        at org.netbeans.editor.Settings.getValue(Settings.java:314)
        at org.netbeans.editor.SettingsUtil.getInteger(SettingsUtil.java:102)
        at org.netbeans.editor.SettingsUtil.getPositiveInteger
(SettingsUtil.java:113)
        at org.netbeans.editor.SettingsUtil.getPositiveInteger
(SettingsUtil.java:122)
        at org.netbeans.editor.BaseDocument.settingsChange
(BaseDocument.java:345)
        at org.netbeans.editor.BaseDocument.<init>(BaseDocument.java:296)
        at org.netbeans.modules.xml.xdm.diff.XDMUtil.prettyPrintXML
(XDMUtil.java:70)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.formatString
(ConfiguredTest.java:2223)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2116)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2004)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testConcurrentSOAPRequest
(ConfiguredTest.java:757)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run
(JUnitTestRunner.java:421)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch
(JUnitTestRunner.java:912)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main
(JUnitTestRunner.java:766)
------------- ---------------- ---------------
test-report:
test-single:
BUILD SUCCESSFUL (total time: 2 seconds)



The above is for "HasHotel" testcase result.  The other test cases fails with 
other exceptions below:



Apr 2, 2007 2:49:35 PM org.netbeans.modules.editor.impl.KitsTracker logOnce
WARNING: No mime type uses editor kit implementation class: class 
org.netbeans.modules.xml.text.syntax.XMLKit
Test HasAirline\Concurrent.properties Failed.
Apr 2, 2007 2:49:35 PM org.netbeans.editor.Settings getKitMap
WARNING: null
java.lang.NullPointerException
        at 
org.netbeans.modules.editor.NbEditorSettingsInitializer.updateSettingsMap
(NbEditorSettingsInitializer.java:102)
        at org.netbeans.editor.Settings.getKitMap(Settings.java:626)
        at org.netbeans.editor.Settings.getValue(Settings.java:330)
        at org.netbeans.editor.Settings.getValue(Settings.java:314)
        at org.netbeans.editor.SettingsUtil.getInteger(SettingsUtil.java:102)
        at org.netbeans.editor.SettingsUtil.getPositiveInteger
(SettingsUtil.java:113)
        at org.netbeans.editor.SettingsUtil.getPositiveInteger
(SettingsUtil.java:122)
        at org.netbeans.editor.BaseDocument.settingsChange
(BaseDocument.java:345)
        at org.netbeans.editor.BaseDocument.<init>(BaseDocument.java:296)
        at org.netbeans.modules.xml.xdm.diff.XDMUtil.compareXML
(XDMUtil.java:146)
        at org.netbeans.modules.xml.xdm.diff.XDMUtil.compareXML
(XDMUtil.java:126)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testCompareXMLIdentical
(ConfiguredTest.java:2624)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testCompareXMLIdentical
(ConfiguredTest.java:2618)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2109)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2004)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testConcurrentSOAPRequest
(ConfiguredTest.java:757)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run
(JUnitTestRunner.java:421)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch
(JUnitTestRunner.java:912)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main
(JUnitTestRunner.java:766)
Test HasHotel\Concurrent.properties Passed. Threads count Success: <1> Error: 
<0> Not completed: <0>
Test HasNoReservations\Concurrent.properties Failed.
Test HasVehicle\Concurrent.properties Failed.
Tests run: 4, Failures: 3, Errors: 0, Time elapsed: 2.313 sec

------------- Standard Output ---------------
{java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, 
sun.boot.library.path=C:\Program Files\Java\jdk1.5.0_09\jre\bin, 
java.vm.version=1.5.0_09-b01, java.vm.vendor=Sun Microsystems Inc., 
java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java 
HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, 
sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual 
Machine Specification, user.dir=C:\Documents and Settings\jimmy.lee\My 
Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApp
lication, java.runtime.version=1.5.0_09-b01, 
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, 
java.endorsed.dirs=C:\Program Files\Java\jdk1.5.0_09\jre\lib\endorsed, 
os.arch=x86, java.io.tmpdir=C:\DOCUME~1\jimmy.lee\LOCALS~1\Temp\, 
line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, 
os.name=Windows XP, sun.jnu.encoding=Cp1252, java.library.path=C:\Program 
Files\Java\jdk1.5.0_09
\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WIN
DOWS\system32\WBEM;C:\Oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1
\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\ATI 
Technologies\ATI Control Panel;C:\Program Files\UltraEdit;C:\Program 
Files\TortoiseCVS;C:\alaska\root\build-tools\jdk1.5.0_04;C:\alaska\root\build-
tools\jdk1.5.0_04;C:\alaska\root\build-tools\jdk1.5.0_04
\lib;C:\alaska\root\build-tools\apache-ant-1.6.2\bin;C:\Program 
Files\QuickTime\QTSystem\;C:\mks\mksnt\;C:\product\10.1.3.1\OraBPEL_1
\MOBILE\sdk\bin;;C:\adabas\bin;C:\adabas\pgm;C:\WINDOWS\system32;C:\WINDOWS;C:\
WINDOWS\system32\WBEM;C:\Oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1
\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\Oracle\jre\1.1.8
\bin;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program 
Files\TortoiseCVS;C:\alaska\root\build-tools\jdk1.5.0_04;C:\alaska\root\build-
tools\jdk1.5.0_04;C:\alaska\root\build-tools\jdk1.5.0_04
\lib;C:\alaska\root\build-tools\apache-ant-1.6.2\bin;, 
java.specification.name=Java Platform API Specification, 
java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, 
os.version=5.1, user.home=C:\Documents and Settings\jimmy.lee, 
user.timezone=America/Los_Angeles, 
java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, 
java.specification.version=1.5, 
java.class.path=C:\netbeans_60_hula\netbeans\soa1
\modules\ext\jbi\catd.jar;C:\netbeans_60_hula\netbeans\soa1
\modules\ext\jbi\xmlunit1.0.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\ext\junit-3.8.2.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\ext\jaxrpc16\FastInfoset.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\ext\jaxrpc16\saaj-api.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\ext\jaxrpc16\saaj-impl.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\org-netbeans-modules-xml-xdm.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\org-netbeans-modules-xml-xam.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\org-netbeans-modules-editor-lib.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\org-netbeans-modules-xml-text.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\org-netbeans-modules-editor.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\org-netbeans-modules-editor-util.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\org-netbeans-modules-xml-core.jar;C:\netbeans_60_hula\netbeans\ide8
\modules\org-netbeans-modules-editor-
lib2.jar;C:\netbeans_60_hula\netbeans\platform7\lib\org-openide-
modules.jar;C:\netbeans_60_hula\netbeans\platform7\lib\org-openide-
util.jar;C:\netbeans_60_hula\netbeans\platform7\modules\org-openide-
options.jar;C:\netbeans_60_hula\netbeans\platform7\modules\org-openide-
text.jar;C:\netbeans_60_hula\netbeans\platform7\modules\org-openide-
loaders.jar;C:\netbeans_60_hula\netbeans\platform7\modules\org-openide-
nodes.jar;C:\netbeans_60_hula\netbeans\platform7\core\org-openide-
filesystems.jar;C:\product\10.1.3.1\OraBPEL_1
\MOBILE\Sdk\bin\OLITE40.JAR;C:\Documents and Settings\jimmy.lee\My 
Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApp
lication;C:\Oracle\ora92\jdbc\lib\classes12.zip;c:\temp\pool;C:\Program 
Files\Java\jre1.5.0_09\lib\ext\QTJava.zip;C:\netbeans_60_hula\netbeans\ide8
\ant\lib\ant-launcher.jar;C:\netbeans_60_hula\netbeans\ide8
\ant\lib\ant.jar;C:\netbeans_60_hula\netbeans\ide8\ant\lib\ant-junit.jar, 
user.name=jimmy.lee, java.vm.specification.version=1.0, java.home=C:\Program 
Files\Java\jdk1.5.0_09\jre, sun.arch.data.model=32, user.language=en, 
java.specification.vendor=Sun Microsystems Inc., 
awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, sharing, 
java.version=1.5.0_09, java.ext.dirs=C:\Program Files\Java\jdk1.5.0_09
\jre\lib\ext, sun.boot.class.path=C:\Program Files\Java\jdk1.5.0_09
\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_09\jre\lib\i18n.jar;C:\Program 
Files\Java\jdk1.5.0_09\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_09
\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_09\jre\lib\jce.jar;C:\Program 
Files\Java\jdk1.5.0_09\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_09
\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=\, 
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, 
sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, 
sun.desktop=windows, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx 
pentium i486 i386 i86}
Test HasAirline\Concurrent.properties Failed.
Test HasHotel\Concurrent.properties Passed. Threads count Success: <1> Error: 
<0> Not completed: <0>
Test HasNoReservations\Concurrent.properties Failed.
Test HasVehicle\Concurrent.properties Failed.
------------- ---------------- ---------------
------------- Standard Error -----------------
Apr 2, 2007 2:49:35 PM org.netbeans.modules.editor.impl.KitsTracker logOnce
WARNING: No mime type uses editor kit implementation class: class 
org.netbeans.modules.xml.text.syntax.XMLKit
Apr 2, 2007 2:49:35 PM org.netbeans.editor.Settings getKitMap
WARNING: null
java.lang.NullPointerException
        at 
org.netbeans.modules.editor.NbEditorSettingsInitializer.updateSettingsMap
(NbEditorSettingsInitializer.java:102)
        at org.netbeans.editor.Settings.getKitMap(Settings.java:626)
        at org.netbeans.editor.Settings.getValue(Settings.java:330)
        at org.netbeans.editor.Settings.getValue(Settings.java:314)
        at org.netbeans.editor.SettingsUtil.getInteger(SettingsUtil.java:102)
        at org.netbeans.editor.SettingsUtil.getPositiveInteger
(SettingsUtil.java:113)
        at org.netbeans.editor.SettingsUtil.getPositiveInteger
(SettingsUtil.java:122)
        at org.netbeans.editor.BaseDocument.settingsChange
(BaseDocument.java:345)
        at org.netbeans.editor.BaseDocument.<init>(BaseDocument.java:296)
        at org.netbeans.modules.xml.xdm.diff.XDMUtil.compareXML
(XDMUtil.java:146)
        at org.netbeans.modules.xml.xdm.diff.XDMUtil.compareXML
(XDMUtil.java:126)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testCompareXMLIdentical
(ConfiguredTest.java:2624)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testCompareXMLIdentical
(ConfiguredTest.java:2618)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2109)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2004)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testConcurrentSOAPRequest
(ConfiguredTest.java:757)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run
(JUnitTestRunner.java:421)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch
(JUnitTestRunner.java:912)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main
(JUnitTestRunner.java:766)
------------- ---------------- ---------------
Testcase: HasAirline(org.netbeans.modules.compapp.catd.ConfiguredTest):	FAILED
[Apr 2, 2007 2:49:35 PM] The response is not identical to the expected output.
junit.framework.AssertionFailedError: [Apr 2, 2007 2:49:35 PM] The response is 
not identical to the expected output.
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2120)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2004)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testConcurrentSOAPRequest
(ConfiguredTest.java:757)


Testcase: HasNoReservations(org.netbeans.modules.compapp.catd.ConfiguredTest):
	FAILED
[Apr 2, 2007 2:49:36 PM] The response is not identical to the expected output.
junit.framework.AssertionFailedError: [Apr 2, 2007 2:49:36 PM] The response is 
not identical to the expected output.
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2120)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2004)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testConcurrentSOAPRequest
(ConfiguredTest.java:757)


Testcase: HasVehicle(org.netbeans.modules.compapp.catd.ConfiguredTest):	FAILED
[Apr 2, 2007 2:49:36 PM] The response is not identical to the expected output.
junit.framework.AssertionFailedError: [Apr 2, 2007 2:49:36 PM] The response is 
not identical to the expected output.
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2120)
        at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput
(ConfiguredTest.java:2004)
        at 
org.netbeans.modules.compapp.catd.ConfiguredTest.testConcurrentSOAPRequest
(ConfiguredTest.java:757)


Test org.netbeans.modules.compapp.catd.ConfiguredTest FAILED
test-report:
C:\Documents and Settings\jimmy.lee\My 
Documents\NetBeansProjects\TravelReservationService\TravelReservationServiceApp
lication\nbproject\build-impl.xml:356: Some tests failed; see details above.
BUILD FAILED (total time: 3 seconds)
Comment 1 jklee 2007-04-02 23:14:48 UTC
Build used:
Netbeans - Build070330_16
SDK - b10
Comment 2 jklee 2007-04-02 23:15:45 UTC
Build used:
Netbeans - Build070330_16
SDK - 5.0_03 b10
Comment 3 Jun Qian 2007-04-03 00:26:46 UTC
The NPE is a duplicate of 99100. This does not affect the test case result
though and therefore can simply be ignored for now.

For the failed test cases, check the output and see why the response is not
identical to the expected output.
Comment 4 Jun Qian 2007-04-03 00:27:20 UTC

*** This issue has been marked as a duplicate of 99100 ***
Comment 5 jklee 2007-04-09 21:54:49 UTC
closing as duplicat of 99100