From: John B. <joh...@so...> - 2010-11-08 11:56:12
|
When I try to generate a web application from an Android application I came across these problems: (I am working on an Ubuntu 10.4 installation) 1) The manual mentions that QOOXDOO_HOME variable needed to be set up, but this did not work and I got another message, saying that I should set up XMLVM_QOOXDOO_PATH. I set up this variable to point to the same folder and this time around that problem was fixed. 2) Although the manual mentions that --qx-main and --qx-app arguments must be specified, it does not specify what these parameters mean or how to determine values to be assigned to them. When you specify no --qx-main parameter, you get the following message: QooxdooOutputProcess: --qx-main= must be of format: <ClassName>.(main|Main) There are no files in an Android project that has a "public static void main(String[] args)" method, so I assume I can pick any class name. 3) I tried using MyClass.Main as --qx-main and all seemed wo work fine - but no generated code, finally I found it in a subfolder of my current folder (/tmp/xmlvm/home/...) in stead of (/home/...). 4) I then copied the files in the "build" folder to the location where I actually wanted it. When I open index.html in a web browser, I simply get an empty screen. 5) I now tried to redo the xmlvm process and got this error: ERROR: QooxdooOutputProcess: Output directory exists, but doesn't seem to be a valid QX project as the following file could not be found: /tmp/xmlvm/home/.../temp_cache/temp_qx_app/generate.py. The funny thing is, I can delete the folder /tmp/xmlvm/home/... completely and I still get the error. Eventually I found that the check was done against the folder I actually wanted as a destination and not the subfolder of the current folder. 6) I got null pointer exceptions a few times in at least 2 different places. The one I can reproduce is when I use the application class name as a --qx-main parameter (e.g. "softco.monitor.Monitor"). Here is the stack trace: Exception in thread "Thread-2" java.lang.NullPointerException at net.sf.saxon.Controller.transformDocument(Controller.java:1776) at net.sf.saxon.Controller.transform(Controller.java:1559) at org.xmlvm.proc.XsltRunner.runXSLT(XsltRunner.java:95) at org.xmlvm.proc.XsltRunner.runXSLT(XsltRunner.java:66) at org.xmlvm.proc.out.JavaScriptOutputProcess.generateJavaScript(JavaScriptOutputProcess.java:141) at org.xmlvm.proc.out.JavaScriptOutputProcess$JavaScriptTranslationThread.run(JavaScriptOutputProcess.java:61) If I add .Main at the end of this main ("softco.monitor.Monitor.Main"), I do not get this exception. According to the manual I should have a read ready to deploy web application when target is qooxdoo, but unfortunately I just get a blank page. Is this statement in the manual in theory (will work if qooxdoo target is fully developed), or am I specifying parameters incorrectly? (I am hoping for the latter). Can someone please clarify what these two parameters in the manual should be? Regards John Bester |