Re: [wiki2xhtml-users] Problem with generating html Pages without any terminal
Brought to you by:
granjow
From: Simon E. <sim...@gm...> - 2009-08-18 18:01:30
|
Hi Axel, There was a problem in the earlier versions, yes. Can you switch to the current version? If not (as it requires Java 1.6) please tell me the version you're using so that I can fix it there. Simon Birndt, Axel (AutoVision) wrote: > 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) > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > ------------------------------------------------------------------------ > > _______________________________________________ > Wiki2xhtml-users mailing list > Wik...@li... > https://lists.sourceforge.net/lists/listinfo/wiki2xhtml-users |