Modify

Opened 6 months ago

Last modified 5 months ago

#14988 new defect

NPE at dxfimport.DxfImportTask.realRun

Reported by: amishabudhiraja96@… Owned by: team
Priority: normal Milestone:
Component: Plugin DxfImport Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

1.JOSM current version on my system is 12450.

  1. Installed DxfImport Plugin.
  2. Error: "An unexpected excception occured. This is always a coding error"

What is the expected result?

With Dxf import plugin dxf file should be opened in JOSM.

What happens instead?

Error occured as mentioned above.

Please provide any additional information below. Attach a screenshot if possible.

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-07-03 00:44:07 +0200 (Mon, 03 Jul 2017)
Build-Date:2017-07-02 23:26:36
Revision:12450
Relative:URL: ^/trunk

Identification: JOSM/1.5 (12450 en) Linux Ubuntu 16.04.2 LTS
Memory Usage: 418 MB / 850 MB (162 MB allocated, but free)
Java version: 1.8.0_131-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: :0.0 1366x768
Maximum Screen Size: 1366x768
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found

Plugins:
+ DxfImport (1010)
+ apache-commons (32994)
+ dataimport (33024)
+ ejml (32680)
+ geotools (33380)
+ jts (32699)
+ opendata (33358)
+ utilsplugin2 (33328)

Last errors/warnings:
- W: Update plugins - org.openstreetmap.josm.plugins.PluginHandler$UpdatePluginsMessagePanel[,0,0,0x0,invalid,layout=java.awt.GridBagLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
- W: Invalid jar file ''<josm.pref>/plugins/dataimport.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>/plugins/geotools.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>/plugins/opendata.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>/plugins/jts.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>/plugins/utilsplugin2.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>/plugins/apache-commons.jar.new'' (exists: false, canRead: false)
- W: Invalid jar file ''<josm.pref>/plugins/ejml.jar.new'' (exists: false, canRead: false)
- E: java.io.IOException: java.lang.NullPointerException. Cause: java.lang.NullPointerException
- E: Handled by bug report queue: java.io.IOException: java.lang.NullPointerException. Cause: java.lang.NullPointerException


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (18) of main
java.io.IOException: java.lang.NullPointerException
	at org.openstreetmap.josm.plugins.dxfimport.DxfImportTask.realRun(DxfImportTask.java:192)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:95)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:143)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at com.kitfox.svg.Line.getBoundingBox(Line.java:118)
	at com.kitfox.svg.Group.calcBoundingBox(Group.java:270)
	at com.kitfox.svg.Group.getBoundingBox(Group.java:252)
	at com.kitfox.svg.Group.calcBoundingBox(Group.java:270)
	at com.kitfox.svg.Group.getBoundingBox(Group.java:252)
	at com.kitfox.svg.Group.calcBoundingBox(Group.java:270)
	at com.kitfox.svg.Group.getBoundingBox(Group.java:252)
	at com.kitfox.svg.SVGRoot.getBoundingBox(SVGRoot.java:374)
	at org.openstreetmap.josm.plugins.dxfimport.DxfImportTask.realRun(DxfImportTask.java:186)
	... 7 more

Attachments (1)

Drawing.dxf (762.7 KB) - added by amishabudhiraja96@… 6 months ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 months ago by Klumbumbus

Component: CorePlugin DxfImport
Priority: criticalnormal
Summary: Import Dxf file errorNPE at dxfimport.DxfImportTask.realRun

comment:2 Changed 6 months ago by Don-vip

Owner: changed from team to amishabudhiraja96@…
Status: newneedinfo

Can you please attach your dxf file?

Changed 6 months ago by amishabudhiraja96@…

Attachment: Drawing.dxf added

comment:3 in reply to:  2 Changed 6 months ago by anonymous

Replying to Don-vip:

Can you please attach your dxf file?

I have attached file Drawing.dxf made in Autocad. If I import dxf file contains rectangle. It opens successfully. But not Drawing.dxf

comment:4 Changed 5 months ago by Klumbumbus

Owner: changed from amishabudhiraja96@… to team
Status: needinfonew

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to amishabudhiraja96@gmail.com
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.