-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fails to load Javascript files with Illegal character exception #101
Comments
Note that the exception is:
when the issue was written the "tags" were escaped by markdown |
Thanks for the report, I'll take a look! |
For example: <eval>#138!9<eval> Handle this on the <eval> path, to ensure that ScriptURL doesn't reject the URL as invalid. Ref #101
I've added compensation for this. Could you please test the latest master? In particular, do the scripts show up in DevTools in a way that makes sense? |
Hello, |
Ok, let me know what you find. |
Any update? |
yes. I still don't know what changed but we have a good bypass. |
I haven't been able to successfully set breakpoints though: |
"Unresolved" means that the location isn't known yet, which typically happens when the function that contains the location hasn't yet been executed. But I suppose DevTools doesn't stop at the breakpoint? Does it show? |
yes the breakpoints show and it doesn't stop. |
One of the differences is that I am doing remote debugging (through an ssh tunnel) while the server she is using is on the machine running the debugger |
Hm, could be some sort of timing problem. Can you post part of a log where you see the "Unresolved" messages and some context? |
ncdbg.log |
Not sure what else to give in term of context. |
Huh, sounds like #100, where Chrome/DevTools cuts off the URL so what gets sent to ncdbg isn't the correct URL. Did you remove the v8only parameter? |
let me check on that |
looks like it, sorry for that, since it is not printed in the url any more, I am guessing I have let chrome autocomplete my url. |
No worries, I'm glad we sorted that out! I'll take a look at the log errors. |
Do you see the error in any particular situation? |
The idea is to get more information for the error mentioned in #101
Javascript files are not getting loaded. I'm getting below exception.
java.net.URISyntaxException: Illegal character in path at index 0: #138:9
at java.net.URI$Parser.fail(URI.java:2848)
at java.net.URI$Parser.checkChars(URI.java:3021)
at java.net.URI$Parser.parseHierarchical(URI.java:3105)
at java.net.URI$Parser.parse(URI.java:3063)
at java.net.URI.(URI.java:588)
at com.programmaticallyspeaking.ncd.infra.ScriptURL$.create(ScriptURL.scala:67)
at com.programmaticallyspeaking.ncd.nashorn.JDIExtensions$RichLocation$.scriptURL$extension(JDIExtensions.scala:53)
at com.programmaticallyspeaking.ncd.nashorn.ScriptFactory.$anonfun$scriptUrlAndLocations$2(ScriptFactory.scala:62)
at scala.util.Success.$anonfun$map$1(Try.scala:251)
at scala.util.Success.map(Try.scala:209)
at com.programmaticallyspeaking.ncd.nashorn.ScriptFactory.scriptUrlAndLocations(ScriptFactory.scala:57)
at com.programmaticallyspeaking.ncd.nashorn.ScriptFactory.considerReferenceType(ScriptFactory.scala:39)
at com.programmaticallyspeaking.ncd.nashorn.ClassScanner.considerReferenceType(ClassScanner.scala:159)
at com.programmaticallyspeaking.ncd.nashorn.ClassScanner.scanOutstandingClasses(ClassScanner.scala:212)
at com.programmaticallyspeaking.ncd.nashorn.ClassScanner.$anonfun$scanOutstandingClasses$1(ClassScanner.scala:218)
at com.programmaticallyspeaking.ncd.nashorn.NashornDebuggerHost$$anon$2.$anonfun$onNext$1(NashornDebuggerHost.scala:180)
at com.programmaticallyspeaking.ncd.nashorn.NashornDebuggerHost$$anon$2.$anonfun$onNext$1$adapted(NashornDebuggerHost.scala:180)
at com.programmaticallyspeaking.ncd.nashorn.NashornDebugger.$anonfun$create$1(NashornDebugger.scala:58)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:654)
at scala.util.Success.$anonfun$map$1(Try.scala:251)
at scala.util.Success.map(Try.scala:209)
at scala.concurrent.Future.$anonfun$map$1(Future.scala:288)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
I have added few logs statements in ScriptFactory.scala at line nos 44, 60, 61, 66.
I have attached the corresponding ncdbg.log file
ScriptFactory.scala.txt
ncdbg.log
The text was updated successfully, but these errors were encountered: