Montag, 14. April 2003
Antclick problems
Hi,
I was able to install antclick on my RH8 server but I can’t get image upload to work. I can upload files and do everything else but when I go to upload an image either from file or another website it will time out. The server prints a large error to the user which is as follows. It seems to be something with the language but I have no clue what.
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:125)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at sun.awt.motif.MToolkit.(MToolkit.java:72)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.Toolkit$2.run(Toolkit.java:712)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at helma.image.ImageGenerator.createImage(ImageGenerator.java:90)
at helma.scripting.fesi.extensions.ImageExtension$GlobalObjectImage.doConstruct(ImageExtension.java:91)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:887)
at FESI.AST.ASTAllocationExpression.jjtAccept(ASTAllocationExpression.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:362)
at FESI.AST.ASTVariableDeclaration.jjtAccept(ASTVariableDeclaration.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:320)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.evaluateFunction(EcmaScriptEvaluateVisitor.java:161)
at FESI.Interpreter.Evaluator.evaluateFunction(Evaluator.java:783)
at FESI.Data.ConstructedFunctionObject.callFunction(ConstructedFunctionObject.java:122)
at FESI.Data.ESObject.doIndirectCall(ESObject.java:530)
at FESI.Data.ESObject.doIndirectCall(ESObject.java:527)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:784)
at FESI.AST.ASTCompositeReference.jjtAccept(ASTCompositeReference.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:379)
at FESI.AST.ASTIfStatement.jjtAccept(ASTIfStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:320)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:385)
at FESI.AST.ASTIfStatement.jjtAccept(ASTIfStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:385)
at FESI.AST.ASTIfStatement.jjtAccept(ASTIfStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:320)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:382)
at FESI.AST.ASTIfStatement.jjtAccept(ASTIfStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:385)
at FESI.AST.ASTIfStatement.jjtAccept(ASTIfStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:320)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.evaluateFunction(EcmaScriptEvaluateVisitor.java:161)
at FESI.Interpreter.Evaluator.evaluateFunction(Evaluator.java:783)
at FESI.Data.ConstructedFunctionObject.callFunction(ConstructedFunctionObject.java:122)
at FESI.Data.ESObject.doIndirectCall(ESObject.java:530)
at FESI.Data.ESObject.doIndirectCall(ESObject.java:527)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:784)
at FESI.AST.ASTCompositeReference.jjtAccept(ASTCompositeReference.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:362)
at FESI.AST.ASTVariableDeclaration.jjtAccept(ASTVariableDeclaration.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:320)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:382)
at FESI.AST.ASTIfStatement.jjtAccept(ASTIfStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:385)
at FESI.AST.ASTIfStatement.jjtAccept(ASTIfStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:339)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:320)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.evaluateFunction(EcmaScriptEvaluateVisitor.java:161)
at FESI.Interpreter.Evaluator.evaluateFunction(Evaluator.java:783)
at FESI.Data.ConstructedFunctionObject.callFunction(ConstructedFunctionObject.java:122)
at FESI.Data.ESObject.doIndirectCall(ESObject.java:530)
at FESI.Data.ESObject.doIndirectCall(ESObject.java:527)
at helma.scripting.fesi.FesiEngine.invoke(FesiEngine.java:508)
at helma.scripting.fesi.PhantomEngine.invoke(PhantomEngine.java:30)
at helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:328)
at java.lang.Thread.run(Thread.java:536)
thanks for any help you can give me.
-Stefan
nex
searching for 'Xvfb' will show you some useful stories, both here and at project.ant.
oh, and thanks for reminding me that i wanted to work on a line breaking function for antville :-)
cyzoonic
I added:
JAVA_OPTIONS="-Djava.awt.headless=true"
to my hop.sh
thanks
-Stefan
martin_
had the same problem to solve. In the antclick.sh skript just uncomment the JAVA_OPTIONS line; it's just there.