When using JavaFXPorts on Android (Android 4.1.1 on Asus Transformer Prime TF201 tablet), a java.lang.StackOverflowError is thrown when pressing on a ComboBox (see below the top stacks of the stacktrace).
It happens in a ComboBox in my FX application and is also 100% reproducible with the ComboBox example that is in Ensemble. In other words: can't use JavaFX ComboBox.
I'm aware of the Android stack size limit posted in many forums and there are various suggestions on what to do when it happens with Android UI and Android APIs. However, can't find a relevant idea to apply when using JavaFX UI and JavaFXPorts.
Any idea for a fix\tweak\workaround would be much appreciated.
E/AndroidRuntime(32212): FATAL EXCEPTION: JavaFX Application Thread
E/AndroidRuntime(32212): java.lang.StackOverflowError
E/AndroidRuntime(32212): at javafx.scene.Node.getTransformedBounds(Node.java:3422)
E/AndroidRuntime(32212): at javafx.scene.Parent.getChildTransformedBounds(Parent.java:1724)
E/AndroidRuntime(32212): at javafx.scene.Parent.recomputeBounds(Parent.java:1516)
E/AndroidRuntime(32212): at javafx.scene.Parent.impl_computeGeomBounds(Parent.java:1380)
E/AndroidRuntime(32212): at javafx.scene.layout.Region.impl_computeGeomBounds(Region.java:3078)
E/AndroidRuntime(32212): at javafx.scene.Node.updateGeomBounds(Node.java:3577)
E/AndroidRuntime(32212): at javafx.scene.Node.getGeomBounds(Node.java:3530)
You can create the java.custom.properties file, and include in it this property:
monocle.stackSize=128000
You can override other system properties as well by including them with their new values.
Put the file at the root of your classpath, e.g. in the folder src/android/resources of your project.
You can find this FAQ here here and all the documentation for JavaFXPorts here.
Check if this solves your exception.
Related
I have a flutter web application (created with flutter build web) and when I run it, I get the following stack trace. Is there a way to convert this stacktrace to the original lines in the dart files? I noticed there is a main.dart.js.map but I'm not sure this is helpful here.
And a related question: can I somehow, for flutter web, control which classes/methods are obfuscated and which aren't?
Thanks in advance,
Marc
Uncaught Exception: ...
at Object.b (http://localhost:8001/main.dart.js:9371:3)
at Object.avm (http://localhost:8001/main.dart.js:4660:9)
at Object.aIt (http://localhost:8001/main.dart.js:13260:3)
at http://localhost:8001/main.dart.js:71570:12
at amf.a (http://localhost:8001/main.dart.js:14192:62)
at amf.$2 (http://localhost:8001/main.dart.js:35515:14)
at alb.$1 (http://localhost:8001/main.dart.js:35509:21)
at UK.n0 (http://localhost:8001/main.dart.js:36349:31)
at ahp.$0 (http://localhost:8001/main.dart.js:35770:11)
at Object.uh (http://localhost:8001/main.dart.js:14324:40)
I'm making an app which scan a QR code and get the version and error correcting level info of it.
How to deal with it.
I tried multiple plugins but i didn't found effective one that can get the version and the error corecting level of the code at the same time.
Please see these links to get you started.
Building Flutter QR Code Generator, Scanner, and Sharing App
QRCode Flutter
There are many other links available. It's always better to try something first then post your problems here.
The version and error correcting level info are what i asked for..
We are using RHQ for monitoring the services, while creating a user we are getting an globally uncaught exception with below details on browser console.
Cannot read property getRecords' of null
com.google.gwt.core.client.JavaScriptException Cannot read property getRecords of null
Cannot read property 'getRecords' of null
More details:
Tested on Chrome, IE 11, and Firefox 43.0.4
RHQ version: 4.13.1, technologies used in this GWT, Smart GWT
Can any one please help on knowing how can we debug this RHQ?
I have little understanding on the GWT and debugging GWT but that is not helping us.
Are there any other ways to debug? Not addressed the bug details still in bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1315257
Thank you.
This error should be harmless, it'll create the user, you can ignore it. I've fixed it in the master, check the PR https://github.com/rhq-project/rhq/pull/258
Making your GWT app to be indexed by Search Engine is very important, but very very little info to tell you Step-By-Step Guidelines of How to make GWT app Crawlable dynamically.
Ok, Here is what I understood but I am not sure 100% I am correct or not. SO please correct me if you can.
To make a Gwt page ex myDomain.com#article;articleID=1 to be indexed by search engine, you need to:
-1st, convert myDomain.com#article;articleID=1 to myDomain.com#!article;articleID=1
-2nd, when Google /Yahoo bot visits that page (myDomain.com#!article;articleID=1), it will convert that page into (myDomain.com?_escaped_fragment_=article&articleID=1) & request that page into your webserver.The Web server then will try to render that page to the Bot.
So if we have a static page of myDomain.com?_escaped_fragment_=article&articleID=1, then the content of that page will be read by the Bot & can be indexed.
But the article is dynamic cos user could enter myDomain.com?_escaped_fragment_=article&articleID=2 or ...article=3... but we can't manually make the static page for each of article.
So the solution is HtmlUnit.
A tool like HtmlUnit will dynamically convert myDomain.com?_escaped_fragment_=article&articleID=2 into a page that the bot can read.
But I don't know step-by-step guidelines of How to set HtmlUnit up?
Is HtmlUnit like a jar file that we can put into lib? what should we do next?
used solution from Patrik, then compile then out int into webapp of Tomcat7 but got this err in the browser
type Exception report
message Filter execution threw an exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66)
com.gwtplatform.dispatch.server.AbstractHttpSessionSecurityCookieFilter.doFilter(AbstractHttpSessionSecurityCookieFilter.java:67)
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
root cause
java.lang.NoClassDefFoundError: org/w3c/css/sac/ErrorHandler
myproject.server.CrawlFilter.doFilter(CrawlFilter.java:101)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66)
com.gwtplatform.dispatch.server.AbstractHttpSessionSecurityCookieFilter.doFilter(AbstractHttpSessionSecurityCookieFilter.java:67)
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
root cause
java.lang.ClassNotFoundException: org.w3c.css.sac.ErrorHandler
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
myproject.server.CrawlFilter.doFilter(CrawlFilter.java:101)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66)
com.gwtplatform.dispatch.server.AbstractHttpSessionSecurityCookieFilter.doFilter(AbstractHttpSessionSecurityCookieFilter.java:67)
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.53 logs.
See this SO working example inspired from this gwt-platform example and this Google documentation among others.
You setup HtmlUnit on the server side like any other library by adding their jar in you lib folder -- as far as I recall, that's all there is to it.
I am using JBoss 7.1, Seam 2.2.2.
When rendering a page I am getting the Facelets debug page with a NullPointerException without any line number indicating where on the page it is occurring. Are there some standard tricks to debug such issues? I can't see any way to put in log statements, etc in this case.
Thanks!
This post may be helpful to you: https://stackoverflow.com/a/5458247/498531. Basically it lets you override a built-in Seam component to print a stacktrace of any exception thrown. It helped me once that I inadvertently had two toString() methods calling each other, and all I was just getting from the logs was a StackOverflowError, with no reference to any line of my code.