Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

0.8.2 - 실행시 다음과 같은 오류가 발생합니다. #1019

Open
ihoneymon opened this issue Jan 28, 2016 · 2 comments
Open

0.8.2 - 실행시 다음과 같은 오류가 발생합니다. #1019

ihoneymon opened this issue Jan 28, 2016 · 2 comments

Comments

@ihoneymon
Copy link

서버의 갑작스런 재시작 이후

  • activator 를 실행하고
  • start 명령을 내리는 순간

다음과 같은 에러메시지가 출력되고 실행되지 않습니다. ㅠㅅ-)

[info] play - database [default] connected at jdbc:h2:file:./yobi
Oops, cannot start the server.
Configuration error: Configuration error[Cannot register class [models.Organization] in Ebean server]
    at play.api.Configuration$.play$api$Configuration$$configError(Configuration.scala:94)
    at play.api.Configuration.reportError(Configuration.scala:743)
    at play.Configuration.reportError(Configuration.java:310)
    at play.db.ebean.EbeanPlugin.onStart(EbeanPlugin.java:81)
    at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91)
    at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91)
    at scala.collection.immutable.List.foreach(List.scala:318)
    at play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:91)
    at play.api.Play$$anonfun$start$1.apply(Play.scala:91)
    at play.api.Play$$anonfun$start$1.apply(Play.scala:91)
    at play.utils.Threads$.withContextClassLoader(Threads.scala:21)
    at play.api.Play$.start(Play.scala:90)
    at play.core.StaticApplication.<init>(ApplicationProvider.scala:55)
    at play.core.server.NettyServer$.createServer(NettyServer.scala:244)
    at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:280)
    at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:275)
    at scala.Option.map(Option.scala:145)
    at play.core.server.NettyServer$.main(NettyServer.scala:275)
    at play.core.server.NettyServer.main(NettyServer.scala)
Caused by: java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    models/Organization.getVisibleProjects(Lmodels/User;)Ljava/util/List; @13: invokevirtual
  Reason:
    Type 'models/User' (current frame, stack[1]) is not assignable to 'models/Organization'
  Current Frame:
    bci: @13
    flags: { }
    locals: { 'models/Organization', 'models/User', 'java/util/ArrayList' }
    stack: { 'java/lang/Long', 'models/User' }
  Bytecode:
    0000000: bb00 9159 b700 924d 2ab6 00c2 2bb6 00c2
    0000010: b800 c599 0011 2c2a b600 c8b9 00cc 0200
    0000020: 57a7 008a 2ab6 00c2 2bb6 00c2 b800 cf99
    0000030: 0041 2ab6 00c8 b900 9601 004e 2db9 009c
    0000040: 0100 9900 2b2d b900 9f01 00c0 00d1 3a04
    0000050: 1904 b600 d499 000c 2b19 04b6 00d8 9900
    0000060: 0c2c 1904 b900 5e02 0057 a7ff d2a7 003e
    0000070: 2ab6 00c8 b900 9601 004e 2db9 009c 0100
    0000080: 9900 2b2d b900 9f01 00c0 00d1 3a04 1904
    0000090: b600 db9a 000c 2b19 04b6 00d8 9900 0c2c
    00000a0: 1904 b900 5e02 0057 a7ff d22c bb00 0e59
    00000b0: 2ab7 00dd b800 e32c b0                 
  Stackmap Table:
    append_frame(@36,Object[#145])
    append_frame(@60,Object[#152])
    append_frame(@97,Object[#209])
    same_frame(@106)
    chop_frame(@109,1)
    chop_frame(@112,1)
    append_frame(@122,Object[#152])
    append_frame(@159,Object[#209])
    same_frame(@168)
    chop_frame(@171,2)

    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:270)
    at play.db.ebean.EbeanPlugin.onStart(EbeanPlugin.java:79)
    ... 15 more
@doortts
Copy link
Contributor

doortts commented Feb 1, 2016

activator clean

을 한번 해보시겠어요?

@ihoneymon
Copy link
Author

작업폴더 정보가 달라져서 잠시 당황했네요.

README.md 파일을 보고 activator clean 명령을 확인했는데, 위험하다고 해서 넘어갔는데...
한번 해볼까 하고 실행했다가 $YOBI_HOME/target/universal/stage 가 깔끔히 정리되어 당황했습니다...

$YOBI_HOME/{uploads, repo, conf/application.conf}

디렉토리와 파일들을

$YOBI_HOME/target/universal/stage

에 복사해서 정상적으로 실행시켰습니다.

아, 그러고보니.. 기존의 $YOBI_HOME/{uploads, repo, conf/application.conf} 것들을 심볼릭 링크로 해두면 되겠네요.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants