Skip to content

Commit

Permalink
replay-tests: exercise tags/script.tag as it's currently failing
Browse files Browse the repository at this point in the history
Play.getVirtualFile() was renamed to Play.file() in commit
397f4ca and we got
groovy.lang.MissingMethodException now:

No signature of method: static play.Play.getVirtualFile() is applicable for argument types: (String) values: [app/public/javascripts/empty.js]
	at tags/script.tag.(line:19)

17:28:59,385 ERROR [play.server.javanet.PlayHandler] ~ Internal Server Error (500) for GET /empty (GTAppClassException)
play.template2.exceptions.GTAppClassException: File not found: app/public/javascripts/empty.js
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at tags/script.tag.(line:21)
	at play.template2.GTJavaBase.internalRenderTemplate(GTJavaBase.java:146)
	at play.template2.GTJavaBase.invokeTagFile(GTJavaBase.java:290)
	at /app/views/HelloWorld/empty.html.(line:4)
	at play.template2.GTJavaBase.internalRenderTemplate(GTJavaBase.java:146)
	at play.template2.GTJavaBase.internalRenderTemplate(GTJavaBase.java:110)
	at play.modules.gtengineplugin.gt_integration.GTJavaBase1xImpl.internalRenderTemplate(GTJavaBase1xImpl.java:96)
	at play.template2.GTJavaBase.renderTemplate(GTJavaBase.java:104)
	at play.modules.gtengineplugin.GTTemplate.renderGTTemplate(GTTemplate.java:67)
	at play.modules.gtengineplugin.GTTemplate.internalGTRender(GTTemplate.java:54)
	at play.modules.gtengineplugin.GTTemplate.internalRender(GTTemplate.java:38)
	at play.modules.gtengineplugin.GTTemplate.render(GTTemplate.java:73)
	at play.rebel.View.renderView(View.java:71)
	at play.rebel.View.apply(View.java:50)
	at play.mvc.ActionInvoker.applyResult(ActionInvoker.java:191)
	at play.mvc.ActionInvoker.invoke(ActionInvoker.java:158)
	at play.server.javanet.PlayHandler$JavaNetInvocation.execute(PlayHandler.java:434)
	at play.server.javanet.PlayHandler$JavaNetInvocation.lambda$run$0(PlayHandler.java:409)
	at play.db.jpa.JPA.withTransaction(JPA.java:271)
	at play.db.jpa.JPA.withinFilter(JPA.java:172)
	at play.server.javanet.PlayHandler$JavaNetInvocation.run(PlayHandler.java:407)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: play.template2.exceptions.GTAppClassException: File not found: app/public/javascripts/empty.js
	... 30 more
Caused by: play.exceptions.TagInternalException: File not found: app/public/javascripts/empty.js
	... 30 more
Caused by: groovy.lang.MissingMethodException: No signature of method: static play.Play.getVirtualFile() is applicable for argument types: (String) values: [app/public/javascripts/empty.js]
	at tags/script.tag.(line:19)
	... 26 more
  • Loading branch information
xabolcs authored and asolntsev committed Feb 11, 2025
1 parent 89ed2dc commit 4076c54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Empty file.
1 change: 1 addition & 0 deletions replay-tests/helloworld/app/views/HelloWorld/empty.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<html lang="en">
<head>
<title>Empty page</title>
#{script src: 'empty.js', path: 'app/public/javascripts/' /}
#{stylesheet src: 'empty.css', path: 'app/public/stylesheets/' /}
</head>
<body>
Expand Down

0 comments on commit 4076c54

Please sign in to comment.