转换成Eclipse项目
- 启动命令行,输入play new <项目名>,Play会在当前路径下创建项目。
- 输入play eclipsify <项目名>,Play会在项目目录中创建eclipse需要的配置文件,将其转换成eclipse项目。
- 在eclipse中导入创建的项目。
调试
Play转换eclipse项目时,在eclipse目录中生成了三个启动配置:
- JPDA:连接到已经启动的Play Server,实现alive调试
- Demo:本地运行项目
- Test:以测试模式启动项目
选中它们,右键执行Run As,即可完成相应的任务。
本地调试
直接Debug As 执行Demo会报错:
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
Error occurred during initialization of VM
agent library failed to init: jdwp
解决办法:
编辑Demo.launch
找到<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value=" -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes ...>
将-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n去掉!
附加Play源码,即可调试Play本身。
如果使用JDK1.7,还需要进行配置,否则Play会抛异常
异常信息
Execution exception VerifyError occured : Expecting a stack map frame Exception Details: Location: controllers/Secure$Security.authentify(Ljava/lang/String;Ljava/lang/String;) Z @33: istore_3 Reason: Error exists in the bytecode Bytecode: 0000000: b800 7d12 782b b800 7a12 712a b800 77bb 0000010: 0010 59b7 0012 bf3a 0403 3eb8 0080 1904 0000020: bf3e b800 821d ac Exception Handler Table: bci [0, 23] => handler: 23 Stackmap Table: same_locals_1_stack_item_frame(@23,Object[#55])
Internal Server Error (500) for request GET /sis/ Execution exception (In /app/controllers/Application.java around line 65) VerifyError occured : Expecting a stack map frame Exception Details: Location: controllers/Secure$Security.authentify(Ljava/lang/String;Ljava/lang/String;)Z @33: istore_3 Reason: Error exists in the bytecode Bytecode: 0000000: b800 7d12 782b b800 7a12 712a b800 77bb 0000010: 0010 59b7 0012 bf3a 0403 3eb8 0080 1904 0000020: bf3e b800 821d ac Exception Handler Table: bci [0, 23] => handler: 23 Stackmap Table: same_locals_1_stack_item_frame(@23,Object[#55]) play.exceptions.JavaExecutionException: Expecting a stack map frame Exception Details: Location: controllers/Secure$Security.authentify(Ljava/lang/String;Ljava/lang/String;)Z @33: istore_3 Reason: Error exists in the bytecode Bytecode: 0000000: b800 7d12 782b b800 7a12 712a b800 77bb 0000010: 0010 59b7 0012 bf3a 0403 3eb8 0080 1904 0000020: bf3e b800 821d ac Exception Handler Table: bci [0, 23] => handler: 23 Stackmap Table: same_locals_1_stack_item_frame(@23,Object[#55]) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:237) at Invocation.HTTP Request(Play!) Caused by: java.lang.VerifyError: Expecting a stack map frame Exception Details: Location: controllers/Secure$Security.authentify(Ljava/lang/String;Ljava/lang/String;)Z @33: istore_3 Reason: Error exists in the bytecode Bytecode: 0000000: b800 7d12 782b b800 7a12 712a b800 77bb 0000010: 0010 59b7 0012 bf3a 0403 3eb8 0080 1904 0000020: bf3e b800 821d ac Exception Handler Table: bci [0, 23] => handler: 23 Stackmap Table: same_locals_1_stack_item_frame(@23,Object[#55]) at controllers.Application.setConnectedUser(Application.java:65) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:510) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:484) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:479) at play.mvc.ActionInvoker.handleBefores(ActionInvoker.java:328) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:142) ... 1 more
解决办法:
IDE中配置JRE环境处,设置启动参数 -XX:-UseSplitVerifier
Window → Preferences → Java → Installed JREs → Edit... → Default VM arguments
If you want to stay with JDK7, would be to use "-XX:-UseSplitVerifier" as an argument for the VM.
相关推荐
此资源包括play2的环境配置,jdk配置等等整个项目的启动配置,转为eclipse开发和调试,包括谷歌的简单调试。
google play service lib 最新jar,适合eclipse开发google 的jar
google play service package for eclipse
You can play, pause, stop, play previous and play next from your play list. 5. You can play media repeatedly and random. 6. You can delete the selected item from play list or all items from play ...
Tools have an important role to play in learning aspect-orientation (AO) and Eclipse tools help Java developers better understand AOP. In fact the growing interest in AOP can be attributed to the ...
FlashPlay 11 debug版(调试版)
Play 详细文档。从下载,安装 ,创建 ,调试, 导入Eclipse 。数据库连接,增删改查。
你懂得 PLAYBOY精选之经典玩伴女郎
InPlay公司IN310/IN618无线低延时解决方案系统调试注意事项,重点列举了客户经常遇到的软硬件问题和解决办法。
play framework api,play! framework api,play api
对于苹果用户来说,AirPlay一定是一项令人印象深刻的技术,可以实现苹果不同设备间的内容投放,例如,iPhone、iPad中的内容可以通过AirPlay在Mac的屏幕上投放出来,不仅可以增强个人的视觉体验,还十分有利于群体间...
airplay最新的版本了,内面包括airplay.c、airplay_parser.c、airplay_parser.h、plist_parse.c、airplay_parser_callback.c几个重要实现文件,苹果用的二进制文件是binplist,解析已经封装到plist_parse.c里面,新测...
carplay开发说明文档,汽车上用的carplay连接说明资料。
在Eclipse中使用play框架,并对mysql数据库进行简单的增删改查操作的javaweb项目,主要目的是给学习play框架的新手提供一个简单的例子,帮助其熟悉框架。
三星 play camera 三星 play camera 三星 play camera
SUMMARYPlay for Java shows you how to build Java-based web applications using the Play 2 framework. The book starts by introducing Play through a comprehensive overview example. Then, you'll look at ...
CarPlay Communication Plug-in
google-play-services版本15.0.1,依赖工程可直接引用到项目中,适用Eclipse及AndroidStudio开发环境,快捷方便,本人亲自整理,后续资源有问题可咨询。若后续google-play-services如需其他版本迭代,也可让我更进。
timePlay.js
Apple CarPlay iap2的相关文档