Project

General

Profile

Actions

Bug #1035

closed

Импортирование документа с русским именем

Added by Viktoria Kopach over 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Low
Category:
-
Target version:
Start date:
04/05/2011
Due date:
% Done:

100%

Estimated time:
Detected in build:
0.10.61
Platform:
Published in build:
0.13.153

Description

Знаю, что решено пока пользоваться только латиницей в именах, но баг завожу на будущее, чтобы не забыть.

В проект добавить документ с русским названием.
Возникает окно с сообщением об ошибке. "unknown protocol: d"

Содержимое consoleLog:

java.net.MalformedURLException: unknown protocol: d
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.unitesk.requality.nodetypes.Document.getDOM(Document.java:266)
at com.unitesk.requality.nodetypes.Document.setMetaCharset(Document.java
:53)
at com.unitesk.requality.documents.DocumentImporter.importDocument(Docum
entImporter.java:110)
at com.unitesk.requality.eclipse.wizards.DocumentImportWizard.performFin
ish(DocumentImportWizard.java:74)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java
:811)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java
:430)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at com.unitesk.requality.eclipse.views.actions.documents.ImportAction.ru
n(ImportAction.java:51)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContri
butionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC
ontributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja
va:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
a:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEAppli
cation.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
e.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
lipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

Actions #1

Updated by Alexey Demakov over 13 years ago

  • Status changed from New to Resolved
  • Assignee set to Viktoria Kopach
  • Target version set to 0.13
  • Published in build set to 0.13.112

А оно уже работает.

Actions #2

Updated by Viktoria Kopach about 13 years ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Viktoria Kopach to Alexey Demakov

Переименовала файл, который всегда хорошо импортировался.
При импорте возникает окно с ошибкой, подробности которой смогла засечь только в consoleLog.

java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.unitesk.requality.nodetypes.Document.getDOM(Document.java:303)
at com.unitesk.requality.documents.DocumentImporter.importDocument(Docum
entImporter.java:125)
at com.unitesk.requality.documents.OmnivorousImporter.importDocument(Omn
ivorousImporter.java:103)
at com.unitesk.requality.eclipse.wizards.DocumentImportWizardPage$3.run(
DocumentImportWizardPage.java:399)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Modal
Context.java:121)
java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.unitesk.requality.nodetypes.Document.getDOM(Document.java:303)
at com.unitesk.requality.documents.DocumentImporter.importDocument(Docum
entImporter.java:125)
at com.unitesk.requality.documents.OmnivorousImporter.importDocument(Omn
ivorousImporter.java:103)
at com.unitesk.requality.eclipse.wizards.DocumentImportWizardPage$3.run(
DocumentImportWizardPage.java:399)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Modal
Context.java:121)

Actions #3

Updated by Alexey Khoroshilov over 12 years ago

  • Status changed from Feedback to Open
  • Published in build deleted (0.13.112)
Actions #4

Updated by Андрей Третьяков over 12 years ago

  • Status changed from Open to Resolved
  • % Done changed from 0 to 100

Вроде, успешно импортирует и парсит документы с русскими именами и в винде, и в линухе.

Actions #5

Updated by Vladimir Fedotov over 12 years ago

я бы на урл смотрел, а не на имена.

Actions #6

Updated by Yuriy Shekochihin over 12 years ago

  • Published in build set to 0.13.153
Actions #7

Updated by Viktoria Kopach over 12 years ago

  • Status changed from Resolved to Verified
  • Assignee changed from Alexey Demakov to Alexey Khoroshilov
Actions #8

Updated by Alexey Khoroshilov over 12 years ago

  • Status changed from Verified to Closed
Actions

Also available in: Atom PDF