[wiki2xhtml-users] Problem with generating html Pages without any terminal
Brought to you by:
granjow
From: Birndt, A. (AutoVision) <ext...@vo...> - 2009-08-18 17:03:20
|
Hello, i have a problem to translate wiki2xhtml Files into html-Pages! It isn't possible to generate the html files if i use a script which has no terminal (like calling via cron e.g.) I tried to set "-Djava.awt.headless=true", as you could see in the following logoutput > wasweb: convert_wiki_files.bash WebSphere_Cluster.wiki > Wiki-File: WebSphere_Cluster.wiki > WIKI_NAME: WebSphere_Cluster > WIKI_BILDER_DIR:.WebSphere_Cluster_img > /usr/java/jdk1.6.0_06/jre/bin/java -jar /home/wasweb/bin/wiki2xhtml/wiki2xhtml.jar --lang=de -s "/home/wasweb/bin/wiki2xhtml/style/hd" -m > "/appl/DOC/websysteme/Wiki_Quelltexte/menu.txt" -c "/appl/DOC/websysteme/Wiki_Quelltexte/common.txt" --td "/appl/DOC/websysteme/htdocs/WebSphere/" > "/appl/DOC/websysteme/Wiki_Quelltexte/WebSphere_Cluster.wiki" > Directory already exists: /appl/DOC/websysteme/htdocs/WebSphere/style > Exception in thread "main" java.awt.HeadlessException > at sun.awt.HeadlessToolkit.getScreenSize(HeadlessToolkit.java:261) > at program.GUI.<init>(GUI.java:102) > at program.Globals.getGuiManager(Globals.java:49) > at program.UserInterface.setProgress(UserInterface.java:470) > at program.XHTML.p(XHTML.java:159) > at program.XHTML.wiki2xhtml(XHTML.java:181) > at program.UserInterface.make(UserInterface.java:367) > at program.UserInterface.main(UserInterface.java:141) I found a little point in the "UserInterface.java" file which could be maybe the the root cause for the issue: public static void setProgress(int i) { if (nFiles != 0) { float p = (float) (fileNumber - 1) / nFiles * 100 + (i / nFiles); progress = Math.round(p); try { ---> Globals.getGuiManager().setProgress(progress); ---> Globals.getGuiManager().setTime(Statistics.getInstance().sw.timeOverall.getPassedTime()); } catch (NullPointerException e) {} } } Could you please have a look at this issue? Thanks in advance -- mit freundlichen Grüßen / Kind Regards Axel Birndt WebSphere Application Server Web-Technologies (K-SIO-C/1) |