Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by nhatminhle
, 1 year ago
!code.isEmpty() at com.google.java.contract.core.apt.AnnotationSourceInfo.<init>.<pre>(AnnotationSourceInfo.java:55)
com.google.java.contract.PreconditionError: !code.isEmpty()
	at com.google.java.contract.core.apt.AnnotationSourceInfo.<init>.<pre>(AnnotationSourceInfo.java:55)	at com.google.java.contract.core.apt.AnnotationSourceInfo.(AnnotationSourceInfo.java:65)	at com.google.java.contract.core.apt.AbstractTypeBuilder.createContractModel(AbstractTypeBuilder.java:174)	at com.google.java.contract.core.apt.AbstractTypeBuilder.visitAnnotation(AbstractTypeBuilder.java:206)	at com.google.java.contract.core.apt.AbstractTypeBuilder.scanAnnotations(AbstractTypeBuilder.java:277)	at com.google.java.contract.core.apt.TypeBuilder$ContractExtensionBuilder.visitType(TypeBuilder.java:99)	at com.google.java.contract.core.apt.TypeBuilder$ContractExtensionBuilder.visitType(TypeBuilder.java:85)	at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:892)	at com.google.java.contract.core.apt.TypeBuilder.scanSuper(TypeBuilder.java:441)	at com.google.java.contract.core.apt.TypeBuilder$ContractExtensionBuilder.visitType(TypeBuilder.java:103)	at com.google.java.contract.core.apt.TypeBuilder$ContractExtensionBuilder.visitType(TypeBuilder.java:85)	at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:892)	at com.google.java.contract.core.apt.TypeBuilder.scanSuper(TypeBuilder.java:436)	at com.google.java.contract.core.apt.TypeBuilder$ContractExtensionBuilder.visitType(TypeBuilder.java:103)	at com.google.java.contract.core.apt.TypeBuilder$ContractExtensionBuilder.visitType(TypeBuilder.java:85)	at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:892)	at com.google.java.contract.core.apt.TypeBuilder.scanSuper(TypeBuilder.java:436)	at com.google.java.contract.core.apt.TypeBuilder.visitType(TypeBuilder.java:272)	at com.google.java.contract.core.apt.TypeBuilder.visitType(TypeBuilder.java:65)	at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:892)	at com.google.java.contract.core.apt.TypeFactory.createType(TypeFactory.java:76)	at com.google.java.contract.core.apt.AnnotationProcessor.createTypes(AnnotationProcessor.java:327)	at com.google.java.contract.core.apt.AnnotationProcessor.process(AnnotationProcessor.java:166)	at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:793)	at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:722)	at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1700(JavacProcessingEnvironment.java:97)	at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1029)	at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1163)	at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1108)	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)	at com.sun.tools.javac.main.Main.compile(Main.java:439)	at com.sun.tools.javac.main.Main.compile(Main.java:353)	at com.sun.tools.javac.main.Main.compile(Main.java:342)	at com.sun.tools.javac.main.Main.compile(Main.java:333)	at com.sun.tools.javac.Main.compile(Main.java:76)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1153)	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:930)	at org.netbeans.modules.java.source.ant.JavacTask.execute(JavacTask.java:144)	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)	at sun.reflect.GeneratedMethodAccessor171.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)	at org.apache.tools.ant.Task.perform(Task.java:348)	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)	at sun.reflect.GeneratedMethodAccessor171.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)	at org.apache.tools.ant.Task.perform(Task.java:348)	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)	at sun.reflect.GeneratedMethodAccessor171.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)	at org.apache.tools.ant.Task.perform(Task.java:348)	at org.apache.tools.ant.Target.execute(Target.java:392)	at org.apache.tools.ant.Target.performTasks(Target.java:413)	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:285)	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)