#5028 closed defect (fixed)
JOSM will not start due to java exception on windows 7
Reported by: | Dane Springmeyer | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report | Cc: | dane@… |
Description
What steps will reproduce the problem?
This will be difficult to reproduce, but here is what I think happened:
- Load custom presents (in the case we are working in Haiti training mappers using the Humanitarian Data model presets
- Load them a second time (accidentally in our case)
- Nothing odd happened while JOSM was running (that I recall), but upon startup later in day JOSM would not start.
What is the expected result?
JOSM starting.
What happens instead?
JOSM does not start, only displaying splash screen then throwing exception.
In addition, trying to shut down windows fails and says JOSM is still running. JOSM is not registered in the windows task manager, so it cannot be forced to stop. Therefore the only way to try to stop JOSM (for a normal windows user) is to force shut down the machine.
Please provide any additional information below. Attach a screenshot if
possible.
Currently trying to uninstall JOSM (can't currently because JOSM is again still running in background). So after filing this ticket I will force the machine to shut down, re-start then try to uninstall JOSM, to hopefully clear out the custom presets that are causing this failure. I cannot locate the preferences file to delete it, but I would assume this would also fix the problem.
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2010-04-26 01:31:31 Last Changed Author: jttt Revision: 3208 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2010-04-25 15:31:07 +0200 (Sun, 25 Apr 2010) Last Changed Rev: 3208 Memory Usage: 43 MB / 455 MB (23 MB allocated, but free) Java version: 1.6.0_14, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM Operating system: Windows 7 Plugins: openstreetbugs,remotecontrol,validator,wmsplugin java.util.NoSuchElementException at java.util.LinkedList.getLast(Unknown Source) at org.openstreetmap.josm.gui.tagging.TaggingPreset.readAll(TaggingPreset.java:631) at org.openstreetmap.josm.gui.tagging.TaggingPreset.readFromPreferences(TaggingPreset.java:663) at org.openstreetmap.josm.gui.preferences.TaggingPresetPreference.initialize(TaggingPresetPreference.java:84) at org.openstreetmap.josm.Main.<init>(Main.java:214) at org.openstreetmap.josm.gui.MainApplication.<init>(MainApplication.java:49) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:195)
Attachments (0)
Change History (9)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
I'll add xml schema for tagging presets so that presets can be validated when loaded by JOSM. It should also make writing presets a bit easier (good xml editor will do code completion based on xsd file).
comment:3 by , 14 years ago
I have a few of the HDM presents around, and I'm not sure about which one was loaded that caused the problem. Is is possible on windows to find the preferences file that lists which preset is being used?
if I open a command console in my user director there is no .josm folder
comment:4 by , 14 years ago
oh, nm, found it in %APPDATA%, will attach what is there in a moment...
thanks!
comment:5 by , 14 years ago
presets that, when added twice broke josm:
<presets> <group name="Humanitarian Features - Common Tags"> <item name="ID"> <text key="id:uuid" text="ID:UUID"/> <text key="id:uid" text="id:uid" /> <text key ="id:ssid" text="id:ssid" /> </item> <item name="Name"> <text key="name" text="Name"/> <text key="name:en" text="Name:En"/> <text key="name:fr" text="Name:Fr"/> <text key="name:kr" text="Name:Kr"/> <text key="registry_name" text="Registry Name"/> </item> <item name="Address"> <text key="address:country_national_code" text="Address:Country_National_Code"/> <text key="address:country" text="Address:Country"/> <text key="address:city" text="Address:City"/> <text key="address:ward" text="Address:Ward"/> <text key="address:postal_code" text="Postal Code"/> <text key="address:street" text="Address:Street"/> <text key="address:housenumber" text="Address:House_Number"/> </item> <item name="Spatial Signature"> <text key="pcode" text="PCODE"/> <text key="boundary=administrative" text="boundary=administrative"/> <text key="admin_level=1" text="Admin Level=1"/> <text key="boundary=administrative" text="boundary=administrative"/> <text key="admin_level=2" text="Admin Level=2"/> <text key="boundary=administrative" text="boundary=administrative"/> <text key="admin_level=3" text="Admin Level=3"/> <text key="boundary=administrative" text="boundary=administrative"/> <text key="admin_level=4" text="Admin Level=4"/> <text key="place:area" text="Place:Area"/> <text key="place:area-alternate" text="Place:Area - Alternate Name"/> <text key="description" text="Location Description"/> <text key="place:nearestlandmark" text="Nearest Landmark" /> </item> <item name="Operating Institution"> <text key="operator" text="Operator" /> <combo key="operator_type" text="operator type" values="government_facility-public,government_facility-not_public,private_for_profit,private_non_profit" /> <text key="operator id" text="Operator ID" /> </item> <item name="Contact Information"> <text key="phonebusiness" text="Phone - Business"/> <text key="phoneemergency" text="Phone - Emergency" /> <text key="email" text="Email"/> <text key="fax:" text="Fax"/> </item> <item name="Humanitarian Use"> <combo key="humanitarian_use" text="Humanitarian Use" values="primary_hub,secondary_hub,final_delivery_point,operationally_significant_location,unspecified" /> </item> <item name="Operational_status"> <combo key="Operational_status" text="Operational Status" values="open,restricted,closed,unspecified" /> <combo key="Operational_status_quality" text="Quality of Op. Status Info" values="reported,confirmed,unspecified" /> </item> <item name="Surface"> <combo key="Surface" text="Surface" values="Paved,Gravel,Dirt/Sand,Unspecified" /> <combo key="SurfaceCondition" text="SurfaceCondition" values="Rough_less_than_40kph,Smooth_greater_than_40kph,Snow/Ice,Mud,Unspecified" /> </item> <item name="Practicability"> <combo key="Practicability" text="Practicability" values="non_motorized,motorbike,4wd_less_than_3.5mt,light_truck_less_than_10mt,heavy_truck_less_than_20mt,truck_+_trailer_greater_than_20mt,unspecified" /> </item> <item name="Source"> <text key="Geometry_source_type" text="Geometry Source Type" /> <text key="Geometry_source_date" text="Geometry Source Date" /> <text key="Attribute_source_type" text="Attribute Source Type" /> <text key="Attribute_source_date" text="Attribute Source Date" /> </item> </group> <group name="Humanitarian Features"> <item name="IDP Camp"> <combo key="settlement_type" text="Type of Settlement" values="spontaneous,planned,unspecified" /> <combo key="camp_management_agency" text="Camp Management Agency?" values="yes,no,unspecified" /> <text key="camp_management_agency_name" text="Camp Management Agency Name" /> <text key="pop_estimates_area" text="Population Estimates in Area" /> <text key="pop_estimates_site_ind" text="Population Estimates in Site - Indviduals" /> <text key="pop_estimates_site_hou" text="Population Estimates in Site - Households" /> <combo key="camp_registered" text="Camp Registered?" values="yes,no,unspecified" /> <text key="camp_registered_agency_name" text="Camp Regisration Agency" /> <combo key="camp_assessed" text="Camp Assessed?" values="yes,no,unspecified" /> <text key="camp_assessment_agency_name" text="Camp Assessment Agency Name" /> </item> <item name="School"> <text key="scolar_district" text="School District" /> <combo key="scolar_type" text="Type of School" values="Enseignement primaire - creche - jardin d'enfant,Enseignement primaire - ecole primaire,Enseignement primaire - ecole maternelle,Enseignement primaire - groupe scolaire,Enseignement secondaire - College,Enseignement secondaire - Lycee,Enseignement secondaire - Formation Professionnelle des Adultes (F.P.A.),Enseignement supérieur - faculte,Enseignement superieur - centre universitaire,Enseignement superieur - institut,Science - centre de recherche,Science - laboratoire,Science - observatoire,Science - station scientifique,Other (specify in Notes)" /> </item> <item name="Electricity Network"> <combo key="classe" text="Classe" values="conduite,ligne_electrique,poste_transformation,pylone" /> <text key="voltage:" text="Voltage"/> <text key="pos_sol:" text="Position par rapport au sol"/> </item> <item name="Health Facilities"> <combo key="type" text="Type" values="Specialized_Hopital,Hospital,Field Hospital,CS-Health_center,CAL-Health_center_with_beds,CSL-Health_center_without_beds,Dispensary,Other_type_of_health_facility,Unknown_type_of_facility,Unspecified" /> <text key="Organization_Name" text="Name of the Organization Responsible for Health Facility"/> <combo key="Humanitarian:HealthFacility:OrganizationType" text="Type of Organization Responsible for Health Facility" values="government_facility-public,government_facility-not_public,private_for_profit,Faith-based_organization_(FBO),NGO_other_than_faith-based,Community,Unspecified" /> <text key="HealthFacilityConstructionDescription" text="Construction Description"/> <text key="HealthFacilityServiceDescription" text="Service Description" /> <text key="HealthFacilityCapacityDescription" text="Capacity Description" /> <text key="HealthFacilityCapacityBeds" text="Number of Beds" /> </item> <item name="Roads"> <combo key="highway" text="Type" values="primary,secondary,tertiary,footway,track,unspecified" delete_if_empty="true" /> </item> <item name="Transport Obstacles"> <combo key="type" text="Type" values="bridge_damage,road_damage,landslide,mudslide,debris,checkpoint,roadblock,unspecified" /> </item> <item name="WaterPoint"> <combo key="waterpoint_type" text="Waterpoint Type" values="tap,well,tank,bladder,unspecified" /> </item> </group> </presets>
comment:6 by , 14 years ago
and my preferences file for reference:
cache.motd.html=1273854047 cache.motd.html.version=3208 cache.wmsplugin.expire=2419200 cache.wmsplugin.maxsize=70 color.layer Markers from Max_peter.gpx=#FF6633 color.layer Markers from jacmel_thurs.gpx=#FF0033 color.layer Max_peter.gpx=#FF0033 color.layer jacmel_thurs.gpx=#CC0033 commandstack.visible=true conflict.minimized=true conflict.visible=true coordinates=DECIMAL_DEGREES download.newlayer=true download.places.history=port-au-prince haiti gui.geometry=752x860+0+0 gui.maximized=false josm.version=3208 laf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel lastDirectory=C:\Users\user\Desktop\Maxau Leogane layerlist.visible=true marker.audiofromstart=false marker.buttonlabels=false marker.show point _releves.gpx=hide mirror.http://josm.openstreetmap.de/presets=1273853403992;C:\Users\user\AppData\Roaming\JOSM\mirror_http___josm.openstreetmap.de_presets mirror.http://josm.openstreetmap.de/styles=1270516037878;C:\Users\user\AppData\Roaming\JOSM\mirror_http___josm.openstreetmap.de_styles mirror.http://svn.openstreetmap.org/applications/editors/josm/plugins/validator/ignoretags.cfg=1273758497738;C:\Users\user\AppData\Roaming\JOSM\plugins\validator\mirror_http___svn.openstreetmap.org_applications_editors_josm_plugins_validator_ignoretags.cfg mirror.http://svn.openstreetmap.org/applications/editors/josm/plugins/validator/tagchecker.cfg=1273758498343;C:\Users\user\AppData\Roaming\JOSM\plugins\validator\mirror_http___svn.openstreetmap.org_applications_editors_josm_plugins_validator_tagchecker.cfg mirror.http://svn.openstreetmap.org/applications/editors/josm/plugins/wmsplugin/sources.cfg=1273602260428;C:\Users\user\AppData\Roaming\JOSM\plugins\wmsplugin\mirror_http___svn.openstreetmap.org_applications_editors_josm_plugins_wmsplugin_sources.cfg mirror.http://svn.openstreetmap.org/applications/utils/planet.osm/java/speller/words.cfg=1273758497054;C:\Users\user\AppData\Roaming\JOSM\plugins\validator\mirror_http___svn.openstreetmap.org_applications_utils_planet.osm_java_speller_words.cfg org.openstreetmap.josm.actions.OpenLocationAction.uploadAddressHistory=http://hypercube.telascience.org/cgi-bin/mapserv?map=/geo/haiti/mapfiles/4326.map&layers=geoeye-01-16-4326&request=GetMap&version=1.0.0&styles=&format=image/jpeg&service=WMS& org.openstreetmap.josm.gui.download.DownloadDialog.geometry=x=212,y=138,width=1000,height=600 org.openstreetmap.josm.gui.io.UploadDialog.geometry=x=600,y=130,width=400,height=600 org.openstreetmap.josm.gui.io.UploadSelectionDialog.geometry=x=700,y=230,width=200,height=400 org.openstreetmap.josm.gui.preferences.PreferenceDialog.geometry=x=183,y=15,width=600,height=800 osb.api.disabled=false osb.auto_download=true osb.include_date=true osb.uri.close=http://openstreetbugs.schokokeks.org/api/0.1/closePOIexec osb.uri.download=http://openstreetbugs.schokokeks.org/api/0.1/getBugs osb.uri.edit=http://openstreetbugs.schokokeks.org/api/0.1/editPOIexec osb.uri.new=http://openstreetbugs.schokokeks.org/api/0.1/addPOIexec osm-download.bounds=18.5482299;-72.3425996;18.549781;-72.3407865 osm-server.upload-strategy=singlerequest osm-server.url=http://www.openstreetmap.org/api pluginmanager.lastupdate=1273758494005 pluginmanager.version=3208 plugins=openstreetbugs remotecontrol validator wmsplugin projection=org.openstreetmap.josm.data.projection.Epsg4326 propertiesdialog.visible=true proxy.policy=no-proxy selectionlist.visible=true shortcut.groups.1=128 shortcut.groups.10=64 shortcut.groups.11=576 shortcut.groups.12=64 shortcut.groups.13=512 shortcut.groups.15=640 shortcut.groups.16=640 shortcut.groups.17=576 shortcut.groups.18=512 shortcut.groups.19=128 shortcut.groups.2=128 shortcut.groups.20=512 shortcut.groups.3=0 shortcut.groups.4=512 shortcut.groups.5=0 shortcut.groups.6=512 shortcut.groups.8=192 shortcut.groups.9=192 shortcut.groups.configured=true slippymap.autoload_tiles=true slippymap.autozoom=true slippymap.custom_tile_source_1.name=Damage slippymap.custom_tile_source_1.url=http://haiti.dbsgeo.com/damage_assessment/ slippymap.draw_debug=false slippymap.fade_background=0.0 slippymap.last_zoom_lvl=16 slippymap.max_zoom_lvl=18 slippymap.tile_source=Damage taggingpreset.enable-defaults=false taggingpreset.sources=C:\Users\user\Desktop\02_Thematic_HDM_Presets\HealthFacility\humanitarian_health_facility_presets_josm.xml C:\Users\user\Desktop\02_Thematic_HDM_Presets\Transportation\humanitarian_common_tags_presets_josm.xml C:\Users\user\Desktop\02_Thematic_HDM_Presets\humanitarian_josm_presets_haiti.xml C:\Users\user\Desktop\02_Thematic_HDM_Presets\humanitarian_josm_presets_haiti.xml toggleDialogs.width=250 toolbar=open save download upload | undo redo | dialogs/search(searchExpression=) preference | splitway combineway wayflip | | | | | upload.comment.history=removing nonexistent refugee camp adding exhibition plane removing ocha buildings changing tags, adding sources ocha/iom areas in logbase, pap, haiti parking lot in logbase, pap, haiti validator.tests=Coastlines=true,MultipolygonTest=true,SimilarNamedWays=true,UntaggedNode=true,CrossingWays=true,NodesWithSameName=true,TagChecker=true,OverlappingWays=true,UnclosedWays=true,WronglyOrderedWays=true,UnconnectedWays=true,SelfIntersectingWay=true,DuplicatedWayNodes=true,NameMismatch=true,DuplicateWay=true,UntaggedWay=true,DuplicateNode=true validator.testsBeforeUpload=Coastlines=true,MultipolygonTest=true,SimilarNamedWays=true,UntaggedNode=true,CrossingWays=true,NodesWithSameName=true,TagChecker=true,OverlappingWays=true,UnclosedWays=true,WronglyOrderedWays=true,UnconnectedWays=true,SelfIntersectingWay=true,DuplicatedWayNodes=true,NameMismatch=true,DuplicateWay=true,UntaggedWay=true,DuplicateNode=true walkingpapers.last-used-id=z4f9tz8l wmsplugin.default.html:http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?=true wmsplugin.default.http://onearth.jpl.nasa.gov/wms.cgi?request_GetMap&layers_global_mosaic&styles_&format_image/jpeg&=true wmsplugin.url.0.name=GeoEye wmsplugin.url.0.url=http://hypercube.telascience.org/cgi-bin/mapserv?map=/geo/haiti/mapfiles/4326.map&layers=geoeye-01-16-4326&request=GetMap&version=1.0.0&styles=&format=image/jpeg&service=WMS& wmsplugin.url.1.name=Landsat wmsplugin.url.1.url=http://onearth.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic&styles=&format=image/jpeg& wmsplugin.url.2.name=Yahoo Sat wmsplugin.url.2.url=html:http://josm.openstreetmap.de/wmsplugin/YahooDirect.html? wmsplugin.url.overlap=false wmsplugin.url.overlapEast=14 wmsplugin.url.overlapNorth=4
comment:7 by , 14 years ago
Working now!
After re-starting the machine and deleting the JOSM folder, JOSM works again.
Before restarting, I tried to delete the folder containing the preferences file, but could not because Windows said that an application was accessing the folder (JOSM running in background I think). What is the secret to closing JOSM if it is not visible? I know this is more of a windows question, but I'm not very familiar with windows, nor windows 7. Any ideas?
- dane
comment:8 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Please attach the custom preset file. It contains errors, but JOSM shouldn't crash like this if it finds a broken preset file.
To get it working again, reinstallation might not be enough. Here you can find how to reset the preferences: Help/ResetPreferences