Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javassist.NotFoundException #135

Closed
sabarcor6 opened this issue Jul 29, 2017 · 18 comments
Closed

javassist.NotFoundException #135

sabarcor6 opened this issue Jul 29, 2017 · 18 comments
Assignees
Milestone

Comments

@sabarcor6
Copy link

i found error when run the project, but when i try only rebuild everything is ok. i'm using android studio 3.0 Canary 8 and totally kotlin project.

the error from gradle console :

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:transformClassesWithObjectBoxAndroidTransformForDebug'.

javassist.NotFoundException: /C:/Users/Bachman%20Sabar/.gradle/caches/modules-2/files-2.1/io.objectbox/objectbox-java/0.9.13/6017a6322d7b75fa7d666a3e315125410ad120e/objectbox-java-0.9.13.jar

@greenrobot
Copy link
Member

greenrobot commented Jul 29, 2017

Thanks for reporting. Did you try with Android Studio 2.3.3?

Also, could you run Gradle with an addition --stacktrace parameter? Thx!

@greenrobot
Copy link
Member

@sabarcor6 Any updates? We need more info on this to do something. Thanks!

@greenrobot greenrobot added the more info required Further information is requested label Aug 7, 2017
@greenrobot
Copy link
Member

Probably failed for the same reason as in #136.

@jraiderguy
Copy link

jraiderguy commented Aug 26, 2017

I have the same error. Android Studio 2.3.3, Object Box 0.9.15, using Java. compileSDKversion 26, builtToolsVersion 26.0.1. MinSDK 16, targetSDK 26. Also compiling appcompat v7:26 and support v4:26.

"Make Project" succeeds without issue, but build fails when trying to run on emulated device in AVD.

Information:Gradle tasks [:app:assembleDebug]
Error:13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:transformClassesWithObjectBoxAndroidTransformForDebug'.
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > javassist.NotFoundException: /C:/Users/James%20Carney/.gradle/caches/modules-2/files-2.1/io.objectbox/objectbox-java/0.9.15/397438efb2836bb261c8b2e1995c4509674c694e/objectbox-java-0.9.15.jar
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithObjectBoxAndroidTransformForDebug'.
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:84)
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
13:39:23.467 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:236)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:77)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:196)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:193)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:193)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:50)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner$1.execute(RunAsBuildOperationBuildActionRunner.java:43)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner$1.execute(RunAsBuildOperationBuildActionRunner.java:40)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.tooling.internal.provider.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:75)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.util.Swapper.swap(Swapper.java:38)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.RuntimeException: javassist.NotFoundException: /C:/Users/James%20Carney/.gradle/caches/modules-2/files-2.1/io.objectbox/objectbox-java/0.9.15/397438efb2836bb261c8b2e1995c4509674c694e/objectbox-java-0.9.15.jar
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.android.builder.profile.Recorder$Block.handleException(Recorder.java:55)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:176)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:163)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	... 78 more
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: javassist.NotFoundException: /C:/Users/James%20Carney/.gradle/caches/modules-2/files-2.1/io.objectbox/objectbox-java/0.9.15/397438efb2836bb261c8b2e1995c4509674c694e/objectbox-java-0.9.15.jar
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at javassist.JarClassPath.<init>(ClassPoolTail.java:135)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at javassist.ClassPoolTail.makePathObject(ClassPoolTail.java:257)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at javassist.ClassPoolTail.appendClassPath(ClassPoolTail.java:249)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at javassist.ClassPool.appendClassPath(ClassPool.java:1004)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.objectbox.gradle.transform.ClassTransformer$Context.<init>(ClassTransformer.kt:33)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.objectbox.gradle.transform.ClassTransformer.transformOrCopyClasses(ClassTransformer.kt:47)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.objectbox.gradle.transform.ObjectBoxAndroidTransform.transform(ObjectBoxAndroidTransform.kt:78)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:185)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:181)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	... 85 more
13:39:23.483 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 

Information:1 error
Information:0 warnings
Information:See complete output in console

@greenrobot
Copy link
Member

@jraiderguy Looks like a Gradle failure with maven repositories. Can you try deleting your gradle cache files (log with "/C:/Users/James%20Carney/.gradle/caches" hints at this). Or just update to 0.9.16-RC to redownload everything.

@greenrobot
Copy link
Member

@jraiderguy PS.: Can you verify if the file mentioned by the javassist.NotFoundException really does not exist?

@jraiderguy
Copy link

Thanks for the feedback. Did my best to keep sleuthing. Here's what I did:

  • The file DOES exist! See screenshot.
    fileexists

  • Leaving version at 0.9.15, did "Invalidate" to clear project cache and deleted the folders in .grade/caches in my user directory. On restart, gradle sync succeeds (same as before), but build fails when launching AVD (same as before). Error looks the same too (see attached text file).

  • Also tried with manually deleting .gradle project folder. Same result.

  • Changed version to "0.9.16-RC", deleted both caches, restarted. Same issue. Same error, but with path to 0.9.16-RC folder. This file also exists! See second screenshot.
    fileexists2

test_9.15.txt

@greenrobot
Copy link
Member

@jraiderguy weird, I checked the javassist sources and unfortunately the original IOException is just swallowed. :(
Does the same thing happen with a clean clone of the demo project?

@jraiderguy
Copy link

jraiderguy commented Aug 27, 2017

I cloned the example and get the same error (pasted below). However, I just noticed something: the error is looking for the JAR in "/C:/Users/James%20Carney/..." and the file doesn't exist there. It exists in the path ".../James Carney/..." (with a space, not hex code). Could this be down to my User Directory having a space? Will test tonight.

Error:Execution failed for task ':objectbox-example:transformClassesWithObjectBoxAndroidTransformForDebug'.
> javassist.NotFoundException: /C:/Users/James%20Carney/.gradle/caches/modules-2/files-2.1/io.objectbox/objectbox-java/0.9.16-RC/bd801630886ee936e41fcc95df9e404a33f87e75/objectbox-java-0.9.16-RC.jar

@jraiderguy
Copy link

jraiderguy commented Aug 27, 2017

I have confirmed that the issue was that my user directory had a space in it, which caused ObjectBox to be looking for the JAR in the wrong place, as it seems to have converted the space to a literal "%20" as shown in the previously posted error messages. In Android Studio, I changed the .gradle service directory to C:/Android/.gradle/ and the example project now works as expected.

Thanks for the prompt responses today. Looking forward to getting back to playing with ObjectBox

@greenrobot
Copy link
Member

@jraiderguy Great find! 👍 We'll try to cover that on our end.

@greenrobot
Copy link
Member

If possible, could you test the behavior with 0.9.16-RC2? We did a fix but did not have a user account with spaces to test with.

@jraiderguy
Copy link

Sure, either tonight or tomorrow sometime (pacific time).

@jraiderguy
Copy link

Confirmed the fix works on 0.9.16-RC2. Changed gradle service directory back to
"C:/Users/James Carney/..."
Then closed Android Studio, deleted gradle caches/folders, and restarted.
Gradle sync and emulator build succeeds as expected.
Thanks!

@greenrobot
Copy link
Member

@jraiderguy Thanks for verification! 👍

@gyorgygabor
Copy link

gyorgygabor commented Sep 23, 2019

Hi, I have got a similar error on our docker container:
`Execution failed for task ':app:transformClassesWithObjectBoxAndroidTransformForDevDebug'.

javassist.NotFoundException: /Xxx_App_xxx-android_PR-129/%3F/.gradle/caches/modules-2/files-2.1/io.objectbox/objectbox-java/2.3.4/cf7fe4341d8b3b42e4134f939c3df11241cc3c2f/objectbox-java-2.3.4.jar`

Apparently, the problem is with one of my folder`s name: ? (question mark) and it seems to have converted to character code: %3F

Could you provide a fix for it?
Best regards

@greenrobot-team
Copy link
Member

@gyorgygabor Thanks for reporting! Forwarded this to the development team.

@greenrobot-team greenrobot-team added this to the 2.4.0 milestone Sep 23, 2019
@greenrobot-team greenrobot-team self-assigned this Sep 23, 2019
@greenrobot-team greenrobot-team removed the more info required Further information is requested label Sep 23, 2019
@greenrobot-team
Copy link
Member

This was fixed internally and will be available with the next update. Thanks again for reporting!

greenrobot-team added a commit to objectbox/objectbox-java-generator that referenced this issue Aug 2, 2021
Follow-up to `ee43260c 0.9.16-RC2, replace %20 with space for javassist classpath if required`.

objectbox/objectbox-java#135
greenrobot-team added a commit to objectbox/objectbox-java-generator that referenced this issue Feb 27, 2024
Follow-up to `7a27b007 0.9.16-RC2, replace %20 with space for javassist classpath if required`.

objectbox/objectbox-java#135
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants