Modify

Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#1534 closed enhancement (worksforme)

Print XML errors in presets during loading stage and not when using them

Reported by: Luebeck Owned by: framm
Priority: minor Milestone:
Component: Core Version: tested
Keywords: presets Cc:

Description

i want to input a userdefine poi - then the message comes. in release 910 it works. no modifi of userdefinition.

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 943
Node Kind: directory
Last Changed Author: framm
Last Changed Rev: 943
Last Changed Date: 2008-09-10 01:09:39 +0200 (Wed, 10 Sep 2008)

java.lang.NullPointerException

at org.openstreetmap.josm.Translation_de.lookup(Translation_de.java:3709)
at org.openstreetmap.josm.Translation_de.handleGetObject(Translation_de.java:3731)
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getString(Unknown Source)
at org.xnap.commons.i18n.I18n.tr(I18n.java:230)
at org.openstreetmap.josm.tools.I18n.tr(I18n.java:27)
at org.openstreetmap.josm.gui.tagging.TaggingPreset$Check.addToPanel(TaggingPreset.java:168)
at org.openstreetmap.josm.gui.tagging.TaggingPreset.createPanel(TaggingPreset.java:474)
at org.openstreetmap.josm.gui.tagging.TaggingPreset.actionPerformed(TaggingPreset.java:480)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (5)

comment:1 by anonymous, 17 years ago

WHat exactly do you do. I looks like you try to add an <item> with no "text" parameter, but this is not allowed.

comment:2 by Luebeck, 17 years ago

Moin !

ich hatte gestern ein Ticket erstellt (leider ohne mir die Nummer zu notieren). Hierbei ging es um einen Absturz beim Einfügen eines Nodes aus einer eigenen Vorlage für die Elemente.

Ich habe nochmal etwas ausprobiert und bin dahinter gekommen das folgende Zeile

<check key="payment" value="none" />

in

<item name="Hunde-Kot-Tuete" icon="D:\DATEN\JAN\openstreetmap\josm\dog.png">

<key key="amenity" value="vending_machine" />
<key key="type" value="excrement_bags" />
<key key="amenity" value="vending_machine" />
<text key="operator" text="Name" default="Entsorgungsbetriebe Luebeck" delete_if_empty="true" />
<check key="payment" value="none" />

</item>

das Problem ausgelöst hat.

Vorerst habe ich den Eintrag gelöscht - aber vielleicht hift es weiter !

Gruß jan :-)
User: Lübeck

comment:3 by anonymous, 17 years ago

Component: unspecifiedCore
Keywords: presets added; userdefine poi removed
Priority: majorminor
Summary: insert a userdefine poi => messagePrint XML errors in presets during loading stage and not when using them
Type: defectenhancement

Your "check" argument is totally wrong. Have a look at the check parts in presets.xml for correct usage.

Dein check-Eintrag ist vollkommen falsch.

comment:4 by stoecker, 16 years ago

Resolution: worksforme
Status: newclosed

comment:5 by Deerworry, 16 years ago

now I'll stay tuned..

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
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.