java.lang.VerifyError: Expecting to find object/array on stack

731 views
Skip to first unread message

stephanos

unread,
Feb 15, 2013, 10:25:27 AM2/15/13
to unfilter...@googlegroups.com
Hi,

I just created a new project with unfiltered 0.6.7 and Scala 2.10 when I ran into this issue:

[error] (run-main) java.lang.VerifyError: (class: Server, method: <init> signature: ()V) Expecting to find object/array on stack
java.lang.VerifyError: (class: Server, method: <init> signature: ()V) Expecting to find object/array on stack
at Main$.<init>(Main.scala:4)
at Main$.<clinit>(Main.scala)
at Main.main(Main.scala)
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)

Interestingly, someone created an example with this problem already (with 0.6.5): https://gist.github.com/xuwei-k/4529706

But I wasn't able to find a solution yet. What do I do?

Regards
Stephan

Kenji Yoshida

unread,
Feb 16, 2013, 12:17:19 AM2/16/13
to unfilter...@googlegroups.com
Hi Stephan.

I think a temporary workaround is this way


use unfiltered.filter.Plan (not Planify).
maybe this is a bug of scala2.10.0. but I could not find issue number :(

Kenji Yoshida

unread,
Feb 16, 2013, 2:24:45 PM2/16/13
to unfilter...@googlegroups.com
oh!? can't even compile in Scala2.10.1-RC1 :(

[error] /Users/kenji/unfiltered/unfiltered/json/src/test/scala/JsonBodySpec.scala:14: Implementation restriction: anonymous class $anonfun requires premature access to class TestPlan.
[error]   class TestPlan extends unfiltered.filter.Planify({
[error]                                                    ^
[error] /Users/kenji/unfiltered/unfiltered/json/src/test/scala/JsonSpec.scala:14: Implementation restriction: anonymous class $anonfun requires premature access to class TestPlan.
[error]   class TestPlan extends unfiltered.filter.Planify({
[error]                                                    ^
[error] /Users/kenji/unfiltered/unfiltered/json/src/test/scala/JsonpSpec.scala:12: Implementation restriction: anonymous class $anonfun requires premature access to class TestPlan.
[error]   class TestPlan extends unfiltered.filter.Planify({
[error] 

stephanos

unread,
Feb 19, 2013, 12:53:04 PM2/19/13
to unfilter...@googlegroups.com
Cool, it works. Thanks!
Reply all
Reply to author
Forward
0 new messages