Read: This is not my code that is producing the exception. This is purely the builder that is making this error. This is not a duplicate of any question that is related to the indexoutofbounds exception as it pertains to written code.
I'm using the most recent version of eclipse, and when I try to build any project in my workspace, I get the following error
'Errors occurred during the build.
Errors running builder 'Java Builder' on project '[project]'.
offset 9673, count -7399, length 13677'
Looking into the log yields the full stacktrace:
!ENTRY org.eclipse.jdt.ui 4 0 2020-11-13 22:54:50.333
!MESSAGE Error in JDT Core during reconcile
!STACK 1
Java Model Exception: java.lang.StringIndexOutOfBoundsException: offset 9673, count -7399, length 13677
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:324)
at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:192)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:268)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:596)
at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1141)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:736)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1318)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:113)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
Caused by: java.lang.StringIndexOutOfBoundsException: offset 9673, count -7399, length 13677
at java.base/java.lang.String.checkBoundsOffCount(String.java:3304)
at java.base/java.lang.String.rangeCheck(String.java:280)
at java.base/java.lang.String.<init>(String.java:276)
at org.eclipse.jdt.internal.compiler.parser.Scanner.disambiguatedToken(Scanner.java:5491)
at org.eclipse.jdt.internal.compiler.parser.Scanner.getNextToken(Scanner.java:1461)
at org.eclipse.jdt.internal.compiler.parser.diagnose.LexStream.readTokenFromScanner(LexStream.java:84)
at org.eclipse.jdt.internal.compiler.parser.diagnose.LexStream.token(LexStream.java:154)
at org.eclipse.jdt.internal.compiler.parser.diagnose.LexStream.kind(LexStream.java:194)
at org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnoseParser.diagnoseParse(DiagnoseParser.java:312)
at org.eclipse.jdt.internal.compiler.parser.Parser.reportSyntaxErrors(Parser.java:14010)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12843)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12902)
at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.parseStatements(ConstructorDeclaration.java:587)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.parseMethods(TypeDeclaration.java:1138)
at org.eclipse.jdt.internal.compiler.parser.Parser.getMethodBodies(Parser.java:11825)
at org.eclipse.jdt.internal.compiler.SourceElementParser.parseCompilationUnit(SourceElementParser.java:1058)
at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:195)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:268)
at org.eclipse.jdt.internal.core.SourceRefElement.generateInfos(SourceRefElement.java:113)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:596)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:326)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:312)
at org.eclipse.jdt.internal.core.SearchableEnvironment.find(SearchableEnvironment.java:184)
at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:478)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.fromSplitPackageOrOracle(LookupEnvironment.java:424)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.lambda$1(LookupEnvironment.java:297)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForTypeFromModules(LookupEnvironment.java:391)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:296)
at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:276)
at org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:3464)
at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:3175)
at org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:57)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:536)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:638)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:634)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.resolveTypeFor(SourceTypeBinding.java:2282)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.fields(SourceTypeBinding.java:1257)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.internalFaultInTypeForFieldsAndMethods(SourceTypeBinding.java:1224)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.faultInTypesForFieldsAndMethods(SourceTypeBinding.java:1071)
at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:529)
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1066)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:272)
... 19 more
Caused by: java.lang.StringIndexOutOfBoundsException: offset 9673, count -7399, length 13677
at java.base/java.lang.String.checkBoundsOffCount(String.java:3304)
at java.base/java.lang.String.rangeCheck(String.java:280)
at java.base/java.lang.String.<init>(String.java:276)
at org.eclipse.jdt.internal.compiler.parser.Scanner.disambiguatedToken(Scanner.java:5491)
at org.eclipse.jdt.internal.compiler.parser.Scanner.getNextToken(Scanner.java:1461)
at org.eclipse.jdt.internal.compiler.parser.diagnose.LexStream.readTokenFromScanner(LexStream.java:84)
at org.eclipse.jdt.internal.compiler.parser.diagnose.LexStream.token(LexStream.java:154)
at org.eclipse.jdt.internal.compiler.parser.diagnose.LexStream.kind(LexStream.java:194)
at org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnoseParser.diagnoseParse(DiagnoseParser.java:312)
at org.eclipse.jdt.internal.compiler.parser.Parser.reportSyntaxErrors(Parser.java:14010)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12843)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12902)
at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.parseStatements(ConstructorDeclaration.java:587)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.parseMethods(TypeDeclaration.java:1138)
at org.eclipse.jdt.internal.compiler.parser.Parser.getMethodBodies(Parser.java:11825)
at org.eclipse.jdt.internal.compiler.SourceElementParser.parseCompilationUnit(SourceElementParser.java:1058)
at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:195)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:268)
at org.eclipse.jdt.internal.core.SourceRefElement.generateInfos(SourceRefElement.java:113)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:596)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:326)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:312)
at org.eclipse.jdt.internal.core.SearchableEnvironment.find(SearchableEnvironment.java:184)
at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:478)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.fromSplitPackageOrOracle(LookupEnvironment.java:424)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.lambda$1(LookupEnvironment.java:297)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForTypeFromModules(LookupEnvironment.java:391)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:296)
at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:276)
at org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:3464)
at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:3175)
at org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:57)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:536)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:638)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:634)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.resolveTypeFor(SourceTypeBinding.java:2282)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.fields(SourceTypeBinding.java:1257)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.internalFaultInTypeForFieldsAndMethods(SourceTypeBinding.java:1224)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.faultInTypesForFieldsAndMethods(SourceTypeBinding.java:1071)
at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:529)
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1066)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:272)
at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:192)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:268)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:596)
at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1141)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:173)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:736)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1318)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:131)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:113)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:93)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:90)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:157)
at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:94)
at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:107)
at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
What is causing this error? If I was to guess, it is the metadata of the workspace or files not matching up with the actual files, however there is not enough information online to confirm this.
I have tried deleting all workspace metadata, clearing all eclipse configuration files, running eclipse with -clean, and re-installing my JDK (JDK 11). None of these attempts have changed or removed the error.
How do I remove this error and allow eclipse to build again?
Related
I am using db2 version 10.5 and inserting the values into the DB2JSON, created a simple standalone java program to retrieve all the values from the table(Collection) when I run the query I am getting the following error
Exception in thread "main" java.lang.RuntimeException: com.ibm.db2.jcc.am.SqlException: [jcc][t4][1065][12306][3.69.66] Caught java.io.CharConversionException. See attached Throwable for details. ERRORCODE=-4220, SQLSTATE=null
at com.ibm.nosql.json.api.DBObjectRowHandler.handle(DBObjectRowHandler.java:38)
at com.ibm.nosql.json.api.DBObjectRowHandler.handle(DBObjectRowHandler.java:14)
at com.ibm.nosql.json.api.BaseResultIterator.next(BaseResultIterator.java:119)
at com.ibm.nosql.json.api.DBCursor.fetchResultsEagerly(DBCursor.java:801)
at com.ibm.nosql.json.api.DBCursor.find(DBCursor.java:895)
at com.ibm.nosql.json.api.DBCursor.hasNext(DBCursor.java:278)
at com.ws.Demo.TestingDemo.main(TestingDemo.java:47)
Caused by: com.ibm.db2.jcc.am.SqlException: [jcc][t4][1065][12306][3.69.66] Caught java.io.CharConversionException. See attached Throwable for details. ERRORCODE=-4220, SQLSTATE=null
at com.ibm.db2.jcc.am.gd.a(gd.java:733)
at com.ibm.db2.jcc.am.gd.a(gd.java:66)
at com.ibm.db2.jcc.am.gd.a(gd.java:120)
at com.ibm.db2.jcc.am.kc.a(kc.java:2868)
at com.ibm.db2.jcc.am.kc.p(kc.java:525)
at com.ibm.db2.jcc.am.kc.Z(kc.java:2747)
at com.ibm.db2.jcc.am.ResultSet.getObjectX(ResultSet.java:1438)
at com.ibm.db2.jcc.am.ResultSet.getObject(ResultSet.java:1413)
at com.ibm.nosql.json.api.DBResultSet.getObject(DBResultSet.java:255)
at com.ibm.nosql.json.api.DBData.getObjectX(DBData.java:66)
at com.ibm.nosql.json.api.DBObjectRowHandler.getObjectID(DBObjectRowHandler.java:58)
at com.ibm.nosql.json.api.DBObjectRowHandler.handle(DBObjectRowHandler.java:28)
... 6 more
Caused by: java.nio.charset.MalformedInputException: Input length = 290
at com.ibm.db2.jcc.am.r.a(r.java:19)
at com.ibm.db2.jcc.am.kc.a(kc.java:2864)
... 14 more
Caused by: sun.io.MalformedInputException
at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:292)
at com.ibm.db2.jcc.am.r.a(r.java:16)
... 15 more
I also went throught few posts where it suggest to use db2.jcc.charsetDecoderEncoder=3 but I have no idea where to use it, and also I few other posts it is suggested touse the lastest version db2jcc.jar, I am using the jars that is present inside the db2 10.5 under sqllib folder. Anyone let me know how to fix this
Add the following environment variable(Java VM arguments) in your tomcat settings
-Ddb2.jcc.charsetDecoderEncoder=3
This worked.
You can set the charset decoder encoder using system property inside your Java code.
For example:
System.setProperty("db2.jcc.charsetDecoderEncoder", "3");
I'm trying to extract the content of a large dataset that contains a mix of files (pdf, doc, ppt).
I'm using tika-app-1.12.jar, when T run my code everything done perfectly then I got this error
Exception in thread "main" org.apache.tika.exception.TikaException:
Unexpected RuntimeException from
org.apache.tika.parser.microsoft.OfficeParser#3ea25501 at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:258)
at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:256)
at
org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
at
recruitmentprototyp.RecruitmentPrototyp.tikareadDoc(RecruitmentPrototyp.java:135)
at
recruitmentprototyp.RecruitmentPrototyp.doForAll(RecruitmentPrototyp.java:110)
at
recruitmentprototyp.RecruitmentPrototyp.main(RecruitmentPrototyp.java:897)
Caused by: java.lang.IllegalStateException: Pap style 19 claimed to
have itself as its parent, which isn't allowed at
org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:232)
at org.apache.poi.hwpf.model.StyleSheet.<init>(StyleSheet.java:120)
at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:346) at
org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:81)
at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:201)
at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:172)
at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:256)
... 5 more Java Result: 1
what should I do?!!
I am getting this error while the server tries to generate a jsp file. We are using our very own Application server (proprietary tool). The server will download the files from a region (say QA) on which my application depends on.
I know the root cause for this error - Classpath is too long, but I dont know how my downloaded files/ jar are getting included to the classpath string, which makes its length greater than 32767 characters. (See the Screenshot)
I need a workaround to solve this problem.
Note : I have come across so many threads reg this issue. They are related to working with eclipse. I don't use eclipse at all. I am just using a text editor.. Any Idea on how to fix this issue.
Thanks in advance
[Error] arch.presentation.JSPResource generating jsp page: generating jsp servlet '__jsp_error__.jsp' org.apache.jasper.JasperException: Unable to compile clas
org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:105)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:344)
at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:288)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:301)
at arch.tools.JspC.JspC.processFile(JspC.java:458)
at arch.tools.JspC.JspC.parseFile(JspC.java:571)
at arch.presentation.JSPResource.compile_if_needed(JSPResource.java:300)
at arch.presentation.JSPResource.compile(JSPResource.java:497)
at arch.presentation.JSPResource.process(JSPResource.java:384)
at arch.presentation.JSPResource.process(JSPResource.java:375)
at arch.presentation.JSPResource.showErrorPage(JSPResource.java:157)
at arch.presentation.JSPResource.compile_if_needed(JSPResource.java:336)
at arch.presentation.JSPResource.compile(JSPResource.java:497)
at arch.presentation.JSPResource.process(JSPResource.java:384)
at arch.presentation.JSPResource.process(JSPResource.java:375)
at arch.presentation.beans.WebApplication$FilterChain.doFilter(WebApplication.java:519)
at arch.subsessions.Filter.doFilter(Filter.java:68)
at arch.presentation.beans.WebApplication$FilterChain.doFilter(WebApplication.java:513)
at pershing.netxoffice.amps.common.servlet.AmpsCommonFilter.doFilter(AmpsCommonFilter.java:80)
at arch.presentation.beans.WebApplication$FilterChain.doFilter(WebApplication.java:513)
at arch.subsessions.SubmitPostFilter.doFilter(SubmitPostFilter.java:58)
at arch.presentation.beans.WebApplication$FilterChain.doFilter(WebApplication.java:513)
at arch.presentation.beans.WebApplication._findAndDoFilter(WebApplication.java:740)
at arch.presentation.beans.WebApplication._findAndDoFilter(WebApplication.java:702)
at arch.presentation.beans.WebApplication._doServletFilterForRequest(WebApplication.java:691)
at arch.presentation.beans.WebApplication.processResource(WebApplication.java:1686)
at arch.presentation.beans.WebApplication.processRequest(WebApplication.java:2992)
at arch.servletengine.Provider.processRequest(Provider.java:447)
at arch.no.engine.Context.processRequest(Context.java:68)
at arch.no.engine.HttpConnector.processRequest(HttpConnector.java:58)
at arch.no.http.Response.prepare(Response.java:565)
at arch.no.http.Response._execute(Response.java:2008)
at arch.no.http.Response.startServletRequest(Response.java:1938)
at arch.no.http.Response.run(Response.java:1906)
at arch.no.http.HttpThreadPool._run(HttpThreadPool.java:35)
at arch.util.ThreadPool._runLoopBody(ThreadPool.java:221)
at arch.util.ThreadPool._runForThread(ThreadPool.java:238)
at arch.util.ThreadPool.access$000(ThreadPool.java:3)
at arch.util.ThreadPool$1.run(ThreadPool.java:96)
Caused by: Error running C:\Data\jdk6\bin\javac.exe compiler
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:509)
at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:257)
... 37 more
Caused by: java.io.IOException: Cannot run program "C:\Data\jdk6\bin\javac.exe": CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
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.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:506)
... 41 more
Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 50 more
[Error] org.apache.jasper.compiler.Compiler Environment: Compile: javaFileName=/C:/Data/inautilus/Regions/qa/downloaded/pershing.netxoffice.amps.common/work/pershing.netxoffice.amps.common.WebApplication/__jsp__//amps_002fcommon/
classpath=C:\Data\inautilus\Regions\qa\downloaded\pershing.netxoffice.amps.common\work\pershing.netxoffice.amps.common.WebApplication\__jsp__;C:\Data\inautilus\Regions\qa\downloaded\pershing.netxoffice.amps.common\classes;C:\
are.thirdparty\lib\ais-client.jar;C:\Data\inautilus\Regions\qa\downloaded\middleware.thirdparty\lib\aqapi.jar;C:\Data\inautilus\Regions\qa\downloaded\middleware.thirdparty\lib\CL3Export.jar;C:\Data\inautilus\Regions\qa\downloaded
.4.57/arch.core.jdbc/lib/driver_getter/;C:/Data/arch.inautilus.full.7400.7.4.57/arch.core.jdbc/lib/oracle/db_config.py;C:/Data/arch.inautilus.full.7400.7.4.57/arch.core.jdbc/lib/oracle/ojdbc14.jar;C:\Data\inautilus\Regions\qa\dow
7400.7.4.57\arch.ejbpersistence\lib\hibernate3.jar;C:\Data\arch.inautilus.full.7400.7.4.57\arch.ejbpersistence\public.jar;C:\Data\inautilus\Regions\qa\downloaded\middleware.appln.MLGSyncService\classes;C:\Data\inautilus\Regions\q
mon\lib\icepublisher.jar;C:\Data\inautilus\Regions\qa\downloaded\com.inautix.netx.alertcommon\lib\icesocket.jar;C:\Data\inautilus\Regions\qa\downloaded\com.inautix.netx.alertcommon\lib\iceutil.jar;C:\Data\inautilus\Regions\qa\dow
voiceware.dialer\lib\util.jar;C:\Data\inautilus\Regions\qa\downloaded\arch.struts2\classes;C:\Data\inautilus\Regions\qa\downloaded\arch.struts2\lib;C:\Data\inautilus\Regions\qa\downloaded\arch.struts2\lib\antlr.jar;C:\Data\inauti
sper.jar;C:\Data\arch.inautilus.full.7400.7.4.57\arch.core.servletengine\lib\jersey-client-1.4.jar;C:\Data\arch.inautilus.full.7400.7.4.57\arch.core.servletengine\lib\jersey-core-1.4.jar;C:\Data\arch.inautilus.full.7400.7.4.57\ar
.samlcore\lib\xmlsec-1.4.3.jar;C:\Data\inautilus\Regions\qa\downloaded\system.sso.common.ssoutils\classes;C:\Data\inautilus\Regions\qa\downloaded\system.entitlements.cache\classes;C:\Data\inautilus\Regions\qa\downloaded\arch.cohe
autilus\Regions\qa\downloaded\arch.coherence.cache.containers\classes;C:\Data\inautilus\Regions\qa\downloaded\arch.coherence.grid.enterprisesession\classes;C:\Data\inautilus\Regions\qa\downloaded\arch.coherence.grid.enterpriseses
achment\classes;C:\Data\inautilus\Regions\qa\downloaded\netxoffice.attachment\public.jar;C:\Data\inautilus\Regions\qa\downloaded\imaging.webservices\classes;C:\Data\inautilus\Regions\qa\downloaded\imaging.webservices\lib;C:\Data\
aging\lib\poi-ooxml-3.7-20101029.jar;C:\Data\inautilus\Regions\qa\downloaded\com.pershing.imaging\lib\poi-ooxml-schemas-3.7-20101029.jar;C:\Data\inautilus\Regions\qa\downloaded\com.pershing.imaging\lib\xmlbeans-2.3.0.jar;C:/Data/
common.dbservices\lib\spring-core-3.1.2.RELEASE.jar;C:\Data\inautilus\Regions\qa\downloaded\pershing.common.dbservices\lib\spring-expression-3.1.2.RELEASE.jar;C:\Data\inautilus\Regions\qa\downloaded\pershing.common.dbservices\lib
ed\netxoffice.userdata\classes;C:\Data\inautilus\Regions\qa\downloaded\netxoffice.userdata\public.jar;C:\Data\inautilus\Regions\qa\downloaded\arch.workflowservices\classes;C:\Data\inautilus\Regions\qa\downloaded\arch.workflowserv
downloaded\com.inautix.netx.alert\lib\icebalancer.jar;C:\Data\inautilus\Regions\qa\downloaded\com.inautix.netx.alert\lib\icecommon.jar;C:\Data\inautilus\Regions\qa\downloaded\com.inautix.netx.alert\lib\icedbdao.jar;C:\Data\inauti
tilus\Regions\qa\downloaded\netxoffice.enterpriserichgrid\classes;C:\Data\inautilus\Regions\qa\downloaded\netxoffice.enterpriserichgrid\lib;C:\Data\inautilus\Regions\qa\downloaded\netxoffice.enterpriserichgrid\lib\itext-1.4.6.jar
ib\streambuffer.jar;C:\Data\inautilus\Regions\qa\downloaded\formsmgmt.laspdf\lib\war-classes.jar;C:\Data\inautilus\Regions\qa\downloaded\formsmgmt.laspdf\lib\woodstox-core-asl.jar;C:\Data\inautilus\Regions\qa\downloaded\formsmgmt
ation.rsa\public.jar;C:\Data\inautilus\Regions\qa\downloaded\middleware.common.AsyncGateway\classes;C:\Data\inautilus\Regions\qa\downloaded\middleware.common.AsyncGateway\public.jar;C:\Data\inautilus\Regions\qa\downloaded\eservic
ownloaded\arch.jsf\lib\commons-digester-1.8.jar;C:\Data\inautilus\Regions\qa\downloaded\arch.jsf\lib\commons-discovery-0.4.jar;C:\Data\inautilus\Regions\qa\downloaded\arch.jsf\lib\jetty-util-7.0.0pre3.jar;C:\Data\inautilus\Region
inautilus.full.7400.7.4.57\arch.core\lib\commons-fileupload-1.0-beta-1.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\lib\commons-logging-api.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\lib\concurrent.jar;c:\data
inautilus.full.7400.7.4.57\arch.core\lib\extensions\axis.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\lib\extensions\dom.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\lib\extensions\dom4j.jar;c:\data\arch.inautil
pi.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core.servletengine\lib\jackson-core-asl-1.5.5.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core.servletengine\lib\jackson-jaxrs-1.5.5.jar;c:\data\arch.inautilus.full.7400.7.
ersistence\lib\commons-collections-2.1.1.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.ejbpersistence\lib\ehcache-1.2.4.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.ejbpersistence\lib\hibernate-entitymanager.jar;c:\data\ar
cp=../../../arch/struts2/lib/commons-collections.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\classes;C:\Data\jdk6\lib\tools.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\classes;c:\data\arch.inautilus.full.7
full.7400.7.4.57\arch.core\lib\looks-win-1.1.2.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\lib\nis-providerutil.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\lib\nis.jar;c:\data\arch.inautilus.full.7400.7.4.57\a
s\xalan.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\lib\extensions\xercesImpl.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core\lib\extensions\xsltc.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core.servletengin
57\arch.core.servletengine\lib\jstl.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core.servletengine\lib\servlet-api.jar;c:\data\arch.inautilus.full.7400.7.4.57\arch.core.servletengine\lib\standard.jar;c:\data\arch.inautilus.f
cp=C:\Data\inautilus\Regions\qa\downloaded\pershing.netxoffice.amps.common\work\pershing.netxoffice.amps.common.WebApplication\__jsp__
Changing the download directory from C:\Data\inautilus\Regions\qa\downloaded to C:/downloaded helps me to reduce the length of the classpath.. Works fine now
Platform: Windows 7 x64
JDK version: 7.0.25 x64 or 7.0.45 x64
JDK installation path:
C:\Java\jdk725 or default c:\Program Files\Java\jdk1.7.0_25\
Spring Framework Release: 3.2.4 or 3.2.5
UAC: enabled or disabled
gradlew build (after gradlew):
:referenceHtmlMulti FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':referenceHtmlMulti'.
Failed to compile stylesheet. 59 errors detected.
Try:
Run with --info or --debug option to get more log output.
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':referen
ceHtmlMulti'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
ecuteActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
ecute(ExecuteActionsTaskExecuter.java:46)
..
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: javax.xml.transform.TransformerConfigurationException: Failed to comp
ile stylesheet. 59 errors detected.
at com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:136)
at com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryI
mpl.java:127)
at com.icl.saxon.TransformerFactoryImpl.newTransformer(TransformerFactor
yImpl.java:79)
..
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
ecuteAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
ecuteActions(ExecuteActionsTaskExecuter.java:61)
... 70 more
BUILD FAILED
My question is: why did my build fail?
The problem happens when :referenceHtmlMulti task is executing.
If we look in groovy class we will see that XSLT transformation is used to create docbook-reference. Despite the fact, that Saxon is used (TransformerFactoryImpl is selected) the choosen SAXParserFactory is org.apache.xerces.jaxp.SAXParserFactoryImpl (I wonder why not to use com.icl.saxon.aelfred.SAXParserFactoryImpl).
IF we look what implementation of xerces is used by gradle we will see xercesImpl-2.9.1.jar, which is old enough.
Now let's find class URI in xerces sources. It represents a Uniform Resource Identifier (URI). On line 1134 we can find
else if (!isURICharacter(testChar)) {
throw new MalformedURIException(
"Opaque part contains invalid character: " + testChar);
}
Now let's look how this function works:
private static boolean isURICharacter (char p_char) {
return (p_char <= '~' && (fgLookupTable[p_char] & MASK_URI_CHARACTER) != 0);
}
We can see that function will return true if char comparision will return true also. But that means rather close limits of chars (from code 0 - 126 (~)). But what about non US-ASCII character set?
Let's read RFC 2396 about non us-ascii characters (that can exist in your windows path, representing your local language or can be found in account name, under which gradle unpacks itself and works): other catagory - The Unicode characters that are not in the US-ASCII character set, are not control characters (according to the Character.isISOControl method), and are not space characters (according to the Character.isSpaceChar method) (Deviation from RFC 2396, which is limited to US-ASCII). The set of all legal URI characters consists of the unreserved, reserved, escaped, and other characters.
So. URI identification fails. And that is the place where build code fails.
There are 2 solutions:
To make your account name or path consist only of US-ASCII characters.
To patch URI class (for example, by rewriting function isURICharacter)
20:15:43 [INFO] macintosh264 issued server command: /sell hand
20:15:43 [INFO] [XYZShop] MacCommand sell executed
20:15:43 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'sell' in plugin XYZShop v0.1.3
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchCommand(CraftServer.java:510)
at net.minecraft.server.v1_4_6.PlayerConnection.handleCommand(PlayerConnection.java:979)
at net.minecraft.server.v1_4_6.PlayerConnection.chat(PlayerConnection.java:897)
at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:852)
at net.minecraft.server.v1_4_6.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112)
at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NoSuchMethodError: dev.xyzcraft.net.database.DatabaseHandler.getItem(IS)Ldev/xyzcraft/net/xyzshop/dataObject/MSItem;
at dev.xyzcraft.net.xyzshop.commands.SellCommand.onCommand(SellCommand.java:63)
at dev.xyzcraft.net.xyzshop.util.MacCommand.onCommand(MacCommand.java:44)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 15 more
I get that exception
here's the code:
https://github.com/macintosh264/XYZShop
Lastly, I'm using a Mod API for a popular video game, Minecraft, entitled Bukkit. Here's the JavaDoc, and library
http://dl.bukkit.org/downloads/bukkit/
http://jd.bukkit.org
"I also have this problem with another project that uses MySQL, and the stack trace occurs WHENEVER the mysql class is used. "
Macintosh264
It seems like whatever your trying to execute (i.e.the method that holds the command) isn't reading it properly. Try re-packaging your project, it's happened to me many times and that is usually an easy fix.