Unable to compile sbt project due to freebuilder

17 views
Skip to first unread message

Dhaval Kolapkar

unread,
Nov 10, 2017, 4:17:30 PM11/10/17
to FreeBuilder
Hi,

I am trying to compile a sbt project but it fails with error

(compile:compileIncremental) javac returned nonzero exit code

I then added the generated folder as a managed source dir in sbt (managedSourceDirectories in Compile += baseDirectory.value / "generated")

After that, I am getting the error 

java.lang.ClassCastException: javassist.bytecode.InterfaceMethodrefInfo cannot be cast to javassist.bytecode.MethodrefInfo

Could you please help me out?

Thank you.

Regards,
Dhaval Kolapkar

Dhaval Kolapkar

unread,
Nov 10, 2017, 5:41:07 PM11/10/17
to FreeBuilder
I resolved the ClassCastException which was due to jar version issue. Now the code compiles but does not create the freebuilder classes.

--
You received this message because you are subscribed to a topic in the Google Groups "FreeBuilder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/freebuilder/ovD8J2xfoag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to freebuilder+unsubscribe@googlegroups.com.
To post to this group, send email to freeb...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/freebuilder/b3b4dd66-51a2-4614-b1a5-7e4a4b33729b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alice Purcell

unread,
Nov 13, 2017, 6:37:17 AM11/13/17
to Dhaval Kolapkar, FreeBuilder
I'm afraid I have no experience with SBT. Your question doesn't sound FreeBuilder-specific, though; have you tried asking about how to use annotation processors in SBT on StackOverflow? e.g. https://stackoverflow.com/questions/36407543/annotation-processor-output-path-sbt

On Fri, 10 Nov 2017 at 22:41 Dhaval Kolapkar <kolapka...@gmail.com> wrote:
I resolved the ClassCastException which was due to jar version issue. Now the code compiles but does not create the freebuilder classes.

On Fri, Nov 10, 2017 at 1:17 PM, Dhaval Kolapkar <kolapka...@gmail.com> wrote:
Hi,

I am trying to compile a sbt project but it fails with error

(compile:compileIncremental) javac returned nonzero exit code

I then added the generated folder as a managed source dir in sbt (managedSourceDirectories in Compile += baseDirectory.value / "generated")

After that, I am getting the error 

java.lang.ClassCastException: javassist.bytecode.InterfaceMethodrefInfo cannot be cast to javassist.bytecode.MethodrefInfo

Could you please help me out?

Thank you.

Regards,
Dhaval Kolapkar

--
You received this message because you are subscribed to a topic in the Google Groups "FreeBuilder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/freebuilder/ovD8J2xfoag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to freebuilder...@googlegroups.com.

To post to this group, send email to freeb...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/freebuilder/b3b4dd66-51a2-4614-b1a5-7e4a4b33729b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "FreeBuilder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freebuilder...@googlegroups.com.

To post to this group, send email to freeb...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages