«Конфигурации генерации кода Hibernate» выдает ошибку «Тип элемента« порт »должен быть завершен соответствующим конечным тегом« </port> »." - PullRequest
0 голосов
/ 21 октября 2018

Я использую

Plugin: JBoss Tools 4.9.0.Final

и Eclipse IDE

Eclipse Java EE IDE for Web Developers.
Version: 2018-09 (4.9.0)
Build id: 20180917-1800

Во время запуска «Конфигурации генерации кода Hibernate» для обратного инжиниринга я получаю ошибку ниже.

Session Data:
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_192
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

Plug-in  : org.hibernate.eclipse
Severity : Error
Date     : Sun Oct 21 13:42:49 IST 2018
Message  : java.lang.RuntimeException: org.xml.sax.SAXParseException; lineNumber: 165; columnNumber: 100; The element type "port" must be terminated by the matching end-tag "</port>".

Exception Stack Trace:
java.lang.RuntimeException: org.xml.sax.SAXParseException; lineNumber: 165; columnNumber: 100; The element type "port" must be terminated by the matching end-tag "</port>".
    at org.hibernate.tool.hbm2x.XMLPrettyPrinter.prettyFormat(XMLPrettyPrinter.java:40)
    at org.hibernate.tool.hbm2x.XMLPrettyPrinter.prettyPrintFile(XMLPrettyPrinter.java:24)
    at org.hibernate.tool.hbm2x.ArtifactCollector.formatXml(ArtifactCollector.java:69)
    at org.hibernate.tool.hbm2x.ArtifactCollector.formatFiles(ArtifactCollector.java:58)
    at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:109)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.jboss.tools.hibernate.runtime.common.Util.invokeMethod(Util.java:43)
    at org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade.start(AbstractExporterFacade.java:72)
    at org.hibernate.eclipse.console.common.ConsoleExtension$1.execute(ConsoleExtension.java:219)
    at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
    at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
    at org.hibernate.eclipse.console.common.ConsoleExtension.runExporters(ConsoleExtension.java:182)
    at org.hibernate.eclipse.console.common.ConsoleExtension.launchExporters(ConsoleExtension.java:110)
    at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:266)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:862)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:720)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1029)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1243)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.xml.sax.SAXParseException; lineNumber: 165; columnNumber: 100; The element type "port" must be terminated by the matching end-tag "</port>".
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
    at org.hibernate.tool.hbm2x.xml.AbstractXMLPrettyPrinterStrategy.newDocument(AbstractXMLPrettyPrinterStrategy.java:24)
    at org.hibernate.tool.hbm2x.xml.TrAXPrettyPrinterStrategy.prettyPrint(TrAXPrettyPrinterStrategy.java:20)
    at org.hibernate.tool.hbm2x.XMLPrettyPrinter.prettyFormat(XMLPrettyPrinter.java:38)
    ... 21 more

И ошибка:

Session Data:
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_192
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

Plug-in  : org.hibernate.eclipse
Severity : Error
Date     : Sun Oct 21 13:42:49 IST 2018
Message  : org.xml.sax.SAXParseException; lineNumber: 165; columnNumber: 100; The element type "port" must be terminated by the matching end-tag "</port>".

Exception Stack Trace:
org.xml.sax.SAXParseException; lineNumber: 165; columnNumber: 100; The element type "port" must be terminated by the matching end-tag "</port>".
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
    at org.hibernate.tool.hbm2x.xml.AbstractXMLPrettyPrinterStrategy.newDocument(AbstractXMLPrettyPrinterStrategy.java:24)
    at org.hibernate.tool.hbm2x.xml.TrAXPrettyPrinterStrategy.prettyPrint(TrAXPrettyPrinterStrategy.java:20)
    at org.hibernate.tool.hbm2x.XMLPrettyPrinter.prettyFormat(XMLPrettyPrinter.java:38)
    at org.hibernate.tool.hbm2x.XMLPrettyPrinter.prettyPrintFile(XMLPrettyPrinter.java:24)
    at org.hibernate.tool.hbm2x.ArtifactCollector.formatXml(ArtifactCollector.java:69)
    at org.hibernate.tool.hbm2x.ArtifactCollector.formatFiles(ArtifactCollector.java:58)
    at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:109)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.jboss.tools.hibernate.runtime.common.Util.invokeMethod(Util.java:43)
    at org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade.start(AbstractExporterFacade.java:72)
    at org.hibernate.eclipse.console.common.ConsoleExtension$1.execute(ConsoleExtension.java:219)
    at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
    at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
    at org.hibernate.eclipse.console.common.ConsoleExtension.runExporters(ConsoleExtension.java:182)
    at org.hibernate.eclipse.console.common.ConsoleExtension.launchExporters(ConsoleExtension.java:110)
    at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:266)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:862)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:720)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1029)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1243)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

В представлении «Соединения с базой данных» и в представлении «Конфигурации Hibernate»> «База данных» отображаются все таблицы.Я не объявлял явно ни одного XML-файла, использующего порт тега.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...