Modify

Opened 7 years ago

Closed 6 years ago

#14988 closed defect (duplicate)

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@… 7 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by Klumbumbus, 7 years ago

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

comment:2 by Don-vip, 7 years ago

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

Can you please attach your dxf file?

by amishabudhiraja96@…, 7 years ago

Attachment: Drawing.dxf added

in reply to:  2 comment:3 by anonymous, 7 years ago

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 by Klumbumbus, 7 years ago

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

comment:5 by Don-vip, 6 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #15520.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.