Jmeter 5.4 NPE at LoadRecentProject.java:125

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jmeter 5.4 NPE at LoadRecentProject.java:125

Ivan Rancati-3
Hello,

first of all thanks to the JMeter team for the 5.4 release.

I have a small problem on Windows 10: when I load a file (either from
File/Open Recent... or File/Open) an exception is logged, and "unexpected
error" is displayed.
It seems to be a problem with updating the recent file list
Here the exception (I replaced some company info with dots). The same file
can be opened with Jmeter 5.3


2020-12-08 11:06:36,340 INFO o.a.j.JMeter: Setting LAF to:
laf:javax.swing.plaf.nimbus.NimbusLookAndFeel
2020-12-08 11:06:36,618 INFO o.a.j.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties
2020-12-08 11:08:03,914 INFO o.a.j.s.FileServer: Default
base='C:\Users\.....\apache-jmeter-5.4\bin'
2020-12-08 11:08:03,919 INFO o.a.j.g.a.Load: Loading file:
C:\Users\.....\Documents\.......\loadtest\scripts\....\.....jmx
2020-12-08 11:08:03,919 INFO o.a.j.s.FileServer: Set new
base='C:\Users\.....\Documents\.......\loadtest\scripts\....'
2020-12-08 11:08:04,120 INFO o.a.j.s.SaveService: Testplan (JMX) version:
2.2. Testlog (JTL) version: 2.2
2020-12-08 11:08:04,148 INFO o.a.j.s.SaveService: Using SaveService
properties file encoding UTF-8
2020-12-08 11:08:04,150 INFO o.a.j.s.SaveService: Using SaveService
properties version 5.0
2020-12-08 11:08:04,155 INFO o.a.j.s.SaveService: Loading file:
C:\Users\.....\Documents\.......\loadtest\scripts\....\.....jmx
2020-12-08 11:08:04,488 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps
are START times
2020-12-08 11:08:04,489 INFO o.a.j.s.SampleResult:
sampleresult.default.encoding is set to ISO-8859-1
2020-12-08 11:08:04,489 INFO o.a.j.s.SampleResult:
sampleresult.useNanoTime=true
2020-12-08 11:08:04,489 INFO o.a.j.s.SampleResult:
sampleresult.nanoThreadSleep=5000
2020-12-08 11:08:05,131 WARN o.a.j.g.a.Load: Unexpected error.
java.lang.NullPointerException
java.lang.NullPointerException: null
at java.util.ArrayDeque.addLast(Unknown Source) ~[?:1.8.0_261]
at java.util.ArrayDeque.add(Unknown Source) ~[?:1.8.0_261]
at
org.apache.jmeter.gui.action.LoadRecentProject.updateRecentFileMenuItems(LoadRecentProject.java:125)
~[ApacheJMeter_core.jar:5.4]
at
org.apache.jmeter.gui.util.JMeterMenuBar.setProjectFileLoaded(JMeterMenuBar.java:144)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.MainFrame.setProjectFileLoaded(MainFrame.java:330)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.GuiPackage.setTestPlanFile(GuiPackage.java:732)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:101)
~[ApacheJMeter_core.jar:5.4]
at org.apache.jmeter.gui.action.Load.doActionAfterCheck(Load.java:88)
~[ApacheJMeter_core.jar:5.4]
at
org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:44)
~[ApacheJMeter_core.jar:5.4]
at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87)
~[ApacheJMeter_core.jar:5.4]
at
org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69)
~[ApacheJMeter_core.jar:5.4]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_261]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_261]
at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_261]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_261]
at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_261]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_261]
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source) [?:1.8.0_261]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_261]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[?:1.8.0_261]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[?:1.8.0_261]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[?:1.8.0_261]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_261]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_261]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_261]
2020-12-08 11:08:05,140 ERROR o.a.j.u.JMeterUtils: Unexpected error - see
log for details

If it's not a known issue I can log it and/or try a nightly build

thanks and best regards,
Ivan
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter 5.4 NPE at LoadRecentProject.java:125

Felix Schumacher
Am 08.12.2020 11:26, schrieb Ivan Rancati:

> Hello,
>
> first of all thanks to the JMeter team for the 5.4 release.
>
> I have a small problem on Windows 10: when I load a file (either from
> File/Open Recent... or File/Open) an exception is logged, and
> "unexpected
> error" is displayed.
> It seems to be a problem with updating the recent file list
> Here the exception (I replaced some company info with dots). The same
> file
> can be opened with Jmeter 5.3
>

I think you hit https://bz.apache.org/bugzilla/show_bug.cgi?id=64957

This regression will be fixed by a release (probably soon), but in the
mean time you can try a current build from trunk or a nightly build
(https://jmeter.apache.org/nightly.html)

Sorry for the inconvenience

Felix

>
> 2020-12-08 11:06:36,340 INFO o.a.j.JMeter: Setting LAF to:
> laf:javax.swing.plaf.nimbus.NimbusLookAndFeel
> 2020-12-08 11:06:36,618 INFO o.a.j.JMeter: Loaded icon properties from
> org/apache/jmeter/images/icon.properties
> 2020-12-08 11:08:03,914 INFO o.a.j.s.FileServer: Default
> base='C:\Users\.....\apache-jmeter-5.4\bin'
> 2020-12-08 11:08:03,919 INFO o.a.j.g.a.Load: Loading file:
> C:\Users\.....\Documents\.......\loadtest\scripts\....\.....jmx
> 2020-12-08 11:08:03,919 INFO o.a.j.s.FileServer: Set new
> base='C:\Users\.....\Documents\.......\loadtest\scripts\....'
> 2020-12-08 11:08:04,120 INFO o.a.j.s.SaveService: Testplan (JMX)
> version:
> 2.2. Testlog (JTL) version: 2.2
> 2020-12-08 11:08:04,148 INFO o.a.j.s.SaveService: Using SaveService
> properties file encoding UTF-8
> 2020-12-08 11:08:04,150 INFO o.a.j.s.SaveService: Using SaveService
> properties version 5.0
> 2020-12-08 11:08:04,155 INFO o.a.j.s.SaveService: Loading file:
> C:\Users\.....\Documents\.......\loadtest\scripts\....\.....jmx
> 2020-12-08 11:08:04,488 INFO o.a.j.s.SampleResult: Note: Sample
> TimeStamps
> are START times
> 2020-12-08 11:08:04,489 INFO o.a.j.s.SampleResult:
> sampleresult.default.encoding is set to ISO-8859-1
> 2020-12-08 11:08:04,489 INFO o.a.j.s.SampleResult:
> sampleresult.useNanoTime=true
> 2020-12-08 11:08:04,489 INFO o.a.j.s.SampleResult:
> sampleresult.nanoThreadSleep=5000
> 2020-12-08 11:08:05,131 WARN o.a.j.g.a.Load: Unexpected error.
> java.lang.NullPointerException
> java.lang.NullPointerException: null
> at java.util.ArrayDeque.addLast(Unknown Source) ~[?:1.8.0_261]
> at java.util.ArrayDeque.add(Unknown Source) ~[?:1.8.0_261]
> at
> org.apache.jmeter.gui.action.LoadRecentProject.updateRecentFileMenuItems(LoadRecentProject.java:125)
> ~[ApacheJMeter_core.jar:5.4]
> at
> org.apache.jmeter.gui.util.JMeterMenuBar.setProjectFileLoaded(JMeterMenuBar.java:144)
> ~[ApacheJMeter_core.jar:5.4]
> at
> org.apache.jmeter.gui.MainFrame.setProjectFileLoaded(MainFrame.java:330)
> ~[ApacheJMeter_core.jar:5.4]
> at
> org.apache.jmeter.gui.GuiPackage.setTestPlanFile(GuiPackage.java:732)
> ~[ApacheJMeter_core.jar:5.4]
> at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)
> ~[ApacheJMeter_core.jar:5.4]
> at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:101)
> ~[ApacheJMeter_core.jar:5.4]
> at org.apache.jmeter.gui.action.Load.doActionAfterCheck(Load.java:88)
> ~[ApacheJMeter_core.jar:5.4]
> at
> org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:44)
> ~[ApacheJMeter_core.jar:5.4]
> at
> org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87)
> ~[ApacheJMeter_core.jar:5.4]
> at
> org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69)
> ~[ApacheJMeter_core.jar:5.4]
> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
> [?:1.8.0_261]
> at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_261]
> at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_261]
> at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_261]
> at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_261]
> at java.security.AccessController.doPrivileged(Native Method)
> ~[?:1.8.0_261]
> at
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
> Source) [?:1.8.0_261]
> at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_261]
> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> [?:1.8.0_261]
> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> [?:1.8.0_261]
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> [?:1.8.0_261]
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> [?:1.8.0_261]
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> [?:1.8.0_261]
> at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_261]
> 2020-12-08 11:08:05,140 ERROR o.a.j.u.JMeterUtils: Unexpected error -
> see
> log for details
>
> If it's not a known issue I can log it and/or try a nightly build
>
> thanks and best regards,
> Ivan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]