I have recently configured my tomcat 6.0 with "serve modules without publishing" option, in order to avoid the end of the http session when I perform a hot code replacement. Since then I'm having the next error when starting the server:
GRAVE: WSSERVLET11: failed to parse runtime descriptor: XML reader error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'K' (code 75) in prolog; expected '<'
at [row,col,system-id]: [1,1,"jndi:/localhost/projectX/WEB-INF/wsdl/.svn/prop-base/WSprojectXService_schema1.xsd.svn-base"]
XML reader error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'K' (code 75) in prolog; expected '<'
at [row,col,system-id]: [1,1,"jndi:/localhost/projectX/WEB-INF/wsdl/.svn/prop-base/WSprojectXService_schema1.xsd.svn-base"]
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:246)
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:70)
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:85)
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:75)
at com.sun.xml.ws.server.SDDocumentImpl.create(SDDocumentImpl.java:77)
at com.sun.xml.ws.server.EndpointFactory.categoriseMetadata(EndpointFactory.java:413)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:139)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:318)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:337)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:239)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:131)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:90)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'K' (code 75) in prolog; expected '<'
at [row,col,system-id]: [1,1,"jndi:/localhost/projectX/WEB-INF/wsdl/.svn/prop-base/WSprojectXService_schema1.xsd.svn-base"]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:639)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2052)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1134)
at javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:60)
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:51)
... 25 more
This error never happened before without the "serve modules without publishing" option. It seems is trying to parse a svn inner file, and it's getting a parsing exception.
Thanks in advance.
The file
.svn/prop-base/WSprojectXService_schema1.xsd.svn-base
should not be exported to tomcat.
Upgrade to latest versions of subversion. It only has a .svn folder (in the oldest parent folder) and not one for each subfolder (which is why you're exporting the .svn subfolder).
You can try to tell eclipse not to export .svn subfolders but I do not know how to do that ...
Victor.
Related
Hi i have my project in VSC and when i try to run in the terminal the command line:
sonar-scanner.bat -D"sonar.projectKey=***" -D"sonar.sources=." -D"sonar.host.url=***" -D"sonar.login=***"
to analyse my code VSC terminal displays this error:
ERROR: Error during SonarScanner execution
org.sonar.java.AnalysisException: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.
at org.sonar.java.classpath.ClasspathForMain.init(ClasspathForMain.java:75)
at org.sonar.java.classpath.AbstractClasspath.getElements(AbstractClasspath.java:319)
at org.sonar.java.SonarComponents.getJavaClasspath(SonarComponents.java:204)
at org.sonar.java.JavaFrontend.<init>(JavaFrontend.java:95)
at org.sonar.plugins.java.JavaSensor.execute(JavaSensor.java:112)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59)
at org.sonar.scanner.scan.SpringModuleScanContainer.doAfterStart(SpringModuleScanContainer.java:81)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
at org.sonar.scanner.scan.SpringProjectScanContainer.scan(SpringProjectScanContainer.java:392)
at org.sonar.scanner.scan.SpringProjectScanContainer.scanRecursively(SpringProjectScanContainer.java:388)
at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:357)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:135)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
I am not sure what i am doing wrong, i have my token, i select Other (for JS, TS, Go, Python, PHP, ...) > Windows and Execute the Scanner in the VSC terminal
The error indicates that you have not provided the java binaries during the sonar execution.
Add the below sonar.properties:
sonar.java.binaries= **/*.java
This will now scan your java binaries. This property is one of the required property if you are going to scan the java code.
I need to build a new chart theme for a Line Chart. To do that I followed all the steps specified in this tutorial Chart Themes
To apply the theme in Jasper Studio I select the chart and I navigate to Properties -> Chart -> Here I select the name of the new theme from the Theme dropdown. After that I try to Preview the report. When I do this I get this error message:
net.sf.jasperreports.engine.JRException: net.sf.jasperreports.util.JacksonRuntimException: com.fasterxml.jackson.core.JsonParseException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at com.jaspersoft.studio.editor.preview.view.control.ReportController.fillReport(ReportController.java:553)
at com.jaspersoft.studio.editor.preview.view.control.ReportController.access$18(ReportController.java:528)
at com.jaspersoft.studio.editor.preview.view.control.ReportController$1.run(ReportController.java:446)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: net.sf.jasperreports.util.JacksonRuntimException: com.fasterxml.jackson.core.JsonParseException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at net.sf.jasperreports.util.JacksonUtil.loadXml(JacksonUtil.java:215)
at net.sf.jasperreports.chartthemes.simple.XmlChartTheme.loadSettings(XmlChartTheme.java:131)
at net.sf.jasperreports.chartthemes.simple.XmlChartTheme.loadSettings(XmlChartTheme.java:104)
at net.sf.jasperreports.chartthemes.simple.XmlChartTheme.getChartThemeSettings(XmlChartTheme.java:88)
at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.getChartSettings(SimpleChartTheme.java:212)
at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.configureChart(SimpleChartTheme.java:443)
at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.createLineChart(SimpleChartTheme.java:1001)
at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.createChart(SimpleChartTheme.java:387)
at net.sf.jasperreports.engine.fill.JRFillChart.evaluateChart(JRFillChart.java:846)
at net.sf.jasperreports.engine.fill.JRFillChart.evaluateRenderer(JRFillChart.java:799)
at net.sf.jasperreports.engine.fill.JRFillChart.resolveElement(JRFillChart.java:1407)
at net.sf.jasperreports.engine.fill.JRFillElement.performDelayedEvaluation(JRFillElement.java:1140)
at net.sf.jasperreports.engine.fill.JRFillElement.resolveElement(JRFillElement.java:1242)
at net.sf.jasperreports.engine.fill.ElementEvaluationAction.execute(ElementEvaluationAction.java:69)
at net.sf.jasperreports.engine.fill.DelayedFillActions.runActions(DelayedFillActions.java:271)
at net.sf.jasperreports.engine.fill.BaseReportFiller.resolveBoundElements(BaseReportFiller.java:807)
at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveReportBoundElements(JRBaseFiller.java:1209)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1238)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:308)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:126)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)
at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:135)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at com.fasterxml.jackson.dataformat.xml.XmlFactory._initializeXmlReader(XmlFactory.java:717)
at com.fasterxml.jackson.dataformat.xml.XmlFactory._createParser(XmlFactory.java:583)
at com.fasterxml.jackson.dataformat.xml.XmlFactory._createParser(XmlFactory.java:30)
at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:1083)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3666)
at net.sf.jasperreports.util.JacksonUtil.loadXml(JacksonUtil.java:211)
... 22 more
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:701)
at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2235)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2141)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1180)
at com.fasterxml.jackson.dataformat.xml.XmlFactory._initializeXmlReader(XmlFactory.java:712)
... 27 more
at [row,col {unknown-source}]: [1,0]
I don't know what to do about this error. If I select another Theme from the Theme dropdown (a default theme) it works just fine. Can someone help me with this problem? Thank you!
After doing the configuraton on Putty for X11. When I am running dbca I am getting the following error:
[oracle#XYZ bin]$ dbca
Exception in thread "main" java.lang.NoClassDefFoundError: Could not
initialize class sun.awt.X11.XToolkit
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.Toolkit$2.run(Toolkit.java:860)
at java.awt.Toolkit$2.run(Toolkit.java:855)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
From command promt i have already run the command for Xming:
"C:\Program Files (x86)\Xming\Xming.exe" :0 -clipboard -multiwindow -ac
run this, export DISPLAY=localhost:10.0
after that, run dbca
While doing I/O in Scala using Cygwin, I have copied data at this location:
/cygdrive/c/DataResearch/retail_db/order_items/part-00000
but when I am trying to access the file from the Scala prompt with the following command I get this error:
val orderItems = Source
.fromFile("/cygdrive/c/DataResearch/retail_db/order_items/part-00000")
Error:
java.i[![enter image description here][1]][1]o.FileNotFoundException: \c\DataResearch\retail_db\order_items\part-
00000
(The system cannot find the path specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at scala.io.Source$.fromFile(Source.scala:91)
at scala.io.Source$.fromFile(Source.scala:76)
at scala.io.Source$.fromFile(Source.scala:54)
What can I try to resolve this?
I have SBT, Scala, and giter8. When I type g8 on the command line it says that it's installed fine, but when I use it to set up a template from a GitHub repository, i.e.
g8 ajhager/libgdx-sbt-project
it throws the following exception:
java.lang.IllegalArgumentException: Invalid wildcards +refs/pull/*/head:refs/remotes/origin/pr/*
at org.eclipse.jgit.transport.RefSpec.<init>(RefSpec.java:142)
at org.eclipse.jgit.transport.RemoteConfig.<init>(RemoteConfig.java:176)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:151)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:121)
at giter8.Apply$class.clone(apply.scala:73)
at giter8.Giter8.clone(giter8.scala:3)
at giter8.Apply$class.inspect(apply.scala:33)
at giter8.Giter8.inspect(giter8.scala:3)
at giter8.Apply$class.inspect(apply.scala:46)
at giter8.Giter8.inspect(giter8.scala:3)
at giter8.Giter8$$anonfun$2.apply(giter8.scala:19)
at giter8.Giter8$$anonfun$2.apply(giter8.scala:18)
at scala.Option.map(Option.scala:133)
at giter8.Giter8.run(giter8.scala:18)
at giter8.Giter8.run(giter8.scala:10)
at giter8.Giter8.run(giter8.scala:3)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:57)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:77)
at xsbt.boot.Launch$.run(Launch.scala:57)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)
at xsbt.boot.Launch$.launch(Launch.scala:65)
at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Boot$.runImpl(Boot.scala:32)
at xsbt.boot.Boot$.main(Boot.scala:21)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.lang.IllegalArgumentException: Invalid wildcard
s +refs/pull/*/head:refs/remotes/origin/pr/*
What's causing it? I use PowerShell, and just trying to get a libgdx sbt project set up.
It may be that the environment(s) - Git Shell / PowerShell - you execute g8 in interferes and hence the error.
Execute g8 in cmd on Windows so no git-related configurations would come into effect.