An unexpected error occured caused by exception VerifyError:
(class: controllers/Application$, method: index signature: ()Ljava/
lang/String;) Wrong return type in function
or
An unexpected error occured caused by exception VerifyError:
(class: controllers/Application$, method: index signature: ()Lscala/
xml/Elem;) Inconsistent stack height 1 != 0
I tried different versions of play and scala module but with no luck.
Am I doing something wrong here?
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
HTH
peter
On Mar 13, 12:43 pm, Mario Gutierrez <mario.l.gutier...@gmail.com>
wrote:
> Are you using the 1.1 bzr branch? I had the same issues.
>
> Try the github branchhttp://github.com/pk11/play-1.1-mirror
>
> On Sat, Mar 13, 2010 at 8:09 AM, Baldur Norddahl
> <baldur.nordd...@gmail.com>wrote:
>
>
>
> > I am trying out the Scala support. The basic application provided by
> > "play new x -with scala" works. But changing "def index = render()" to
> > either "def index = <h1>test</h1>" or "def index = "hi"" fails with:
>
> > An unexpected error occured caused by exception VerifyError:
> > (class: controllers/Application$, method: index signature: ()Ljava/
> > lang/String;) Wrong return type in function
>
> > or
>
> > An unexpected error occured caused by exception VerifyError:
> > (class: controllers/Application$, method: index signature: ()Lscala/
> > xml/Elem;) Inconsistent stack height 1 != 0
>
> > I tried different versions of play and scala module but with no luck.
>
> > Am I doing something wrong here?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "play-framework" group.
> > To post to this group, send email to play-fr...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > play-framewor...@googlegroups.com<play-framework%2Bunsubscribe@go oglegroups.com>
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
Thanks, Chris
> accessinghttp://localhost:9000/now gives:
> Oops: VerifyError
> An unexpected error occured caused by exception VerifyError:
> (class: controllers/Application$, method: index signature:
> ()Lscala/xml/Elem;) Inconsistent stack height 1 != 0
> change to def index = "hello"
> accessinghttp://localhost:9000/now gives:
> > > 2010/3/13 phausel <peter.hau...@gmail.com>
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
However, "bzr pull" from r820 to r825 takes over a minute! When will
Play officially move to GitHub?
On Mar 15, 8:16 am, Baldur Norddahl <baldur.nordd...@gmail.com> wrote:
> Thanks, I got it working now.
>
> Baldur
>
> 2010/3/14 Guillaume Bort <guillaume.b...@gmail.com>
>
>
>
> > Ok it was a bug in the current 1.1 trunk, fixed in the revision 821.
> > Thank you for the report.
>
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
Mine is 2.0.1, from MacPorts.
I have not been able to follow the example from:
http://www.playframework.org/documentation/1.1-trunk/scguide1
Error:
value QueryFunctions is not a member of package play.db.jpa
import play.db.jpa.QueryFunctions._
I think it should be:
import play.db.jpa.QueryOn._
but don't know how to proceed because I'm new to Scala.
Another typo at scguide3: Bootstrap.java should be Bootstrap.scala?
Wrong:
import play.db.jpa.QueryFunctions._
find[Post]("order by postedAt desc").first
Right:
import play.db.jpa._
QueryOn[Post].find("order by postedAt desc").first
On Mar 16, 1:02 pm, ngocdaothanh <ngocdaoth...@gmail.com> wrote:
> that page is obsolete
The file scguide2 in the latest source code still has this line:
import play.db.jpa.QueryFunctions._
Maybe the doc should be fixed?
I use the latest trunk versions of Play and the Scala plugin. The
first request to "yabe-with-scala" sample gives:
RuntimeException occured : Cannot load fixture initial-data.yml: null
Fixtures load "initial-data.yml"
2.
I'm new to Scala. Looking at the source of the Scala plugin, I see
that 4 spaces are used to indent at many files. Shouldn't Scala source
code be indented by 2 spaces?