Modify

Opened 10 years ago

Closed 10 years ago

#2802 closed defect (fixed)

[PATCH] java.util.regex.PatternSyntaxException: Unexpected internal error

Reported by: phobie Owned by: dmuecke
Priority: minor Milestone:
Component: Core Version: latest
Keywords: seleaction search Cc:

Description

Downloaded something like http://www.openstreetmap.org/?lat=54.3&lon=10.21&zoom=16 .
In the "Current Selection"-widget clicked on "Search" and searched for "ref=L 52".
The search-function does not seem to support spaces and did not select the "L 52".
Checked "regular expression" but still nothing.
Changed the string to "ref=L\ 52" and received the exception.
Btw. "L.*52" works fine...

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1721
Node Kind: directory
Last Changed Author: david
Last Changed Rev: 1721
Last Changed Date: 2009-07-02 18:02:27 +0200 (Thu, 02 Jul 2009)

Memory Usage: 84 MB / 986 MB (34 MB allocated, but free)
Java version: 1.6.0_14

Plugins: measurementopenstreetbugsosmarenderplastic_lafremotecontrolroutesslippymaptageditortagging-preset-testerusertoolsutilspluginvalidatorwaydownloaderwmsplugin
Plugin plastic_laf Version: 14016
Plugin measurement Version: 15953
Plugin openstreetbugs Version: 16163
Plugin osmarender Version: 16163
Plugin remotecontrol Version: 14991
Plugin routes
Plugin slippymap Version: 16164
Plugin tageditor Version: 15707
Plugin tagging-preset-tester Version: 14015
Plugin usertools Version: 14125
Plugin utilsplugin Version: 16162
Plugin validator Version: 16159
Plugin waydownloader Version: 16177
Plugin wmsplugin Version: 15961

java.util.regex.PatternSyntaxException: Unexpected internal error near index 2
L\


at java.util.regex.Pattern.error(Pattern.java:1713)
at java.util.regex.Pattern.compile(Pattern.java:1466)
at java.util.regex.Pattern.<init>(Pattern.java:1133)
at java.util.regex.Pattern.compile(Pattern.java:823)
at org.openstreetmap.josm.actions.search.SearchCompiler$ExactKeyValue.<init>(SearchCompiler.java:212)
at org.openstreetmap.josm.actions.search.SearchCompiler.parsePat(SearchCompiler.java:557)
at org.openstreetmap.josm.actions.search.SearchCompiler.parseParens(SearchCompiler.java:540)
at org.openstreetmap.josm.actions.search.SearchCompiler.parseNot(SearchCompiler.java:529)
at org.openstreetmap.josm.actions.search.SearchCompiler.parseOr(SearchCompiler.java:510)
at org.openstreetmap.josm.actions.search.SearchCompiler.parseJuxta(SearchCompiler.java:502)
at org.openstreetmap.josm.actions.search.SearchCompiler.parse(SearchCompiler.java:491)
at org.openstreetmap.josm.actions.search.SearchCompiler.compile(SearchCompiler.java:484)
at org.openstreetmap.josm.actions.search.SearchAction.search(SearchAction.java:158)
at org.openstreetmap.josm.actions.search.SearchAction.searchWithHistory(SearchAction.java:139)
at org.openstreetmap.josm.actions.search.SearchAction.showSearchDialog(SearchAction.java:124)
at org.openstreetmap.josm.actions.search.SearchAction.actionPerformed(SearchAction.java:53)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Attachments (1)

pattern.txt (856 bytes) - added by dmuecke 10 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 10 years ago by dmuecke

Owner: changed from team to dmuecke
Status: newassigned

Changed 10 years ago by dmuecke

Attachment: pattern.txt added

comment:2 Changed 10 years ago by dmuecke

Summary: java.util.regex.PatternSyntaxException: Unexpected internal error[PATCH] java.util.regex.PatternSyntaxException: Unexpected internal error

Issue fixed!

comment:3 Changed 10 years ago by stoecker

Resolution: fixed
Status: assignedclosed

In r1786.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain dmuecke.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.