when I open the Smart Client from the Servoy 6 Application Server I get the pdf_output error:
2011-10-03 12:59:33,621 ERROR [RMI TCP Connection(12)-xxx.xxx.xxx.238] com.servoy.j2db.util.Debug - Error ocured initializing plugin: pdf_output
java.awt.HeadlessException
at java.awt.dnd.DropTarget.(DropTarget.java:79)
at java.awt.dnd.DropTarget.(DropTarget.java:125)
at com.apple.laf.AquaFileChooserUI.installListeners(AquaFileChooserUI.java:165)
at com.apple.laf.AquaFileChooserUI.installUI(AquaFileChooserUI.java:122)
at javax.swing.JComponent.setUI(JComponent.java:662)
at javax.swing.JFileChooser.updateUI(JFileChooser.java:1798)
at javax.swing.JFileChooser.setup(JFileChooser.java:360)
at javax.swing.JFileChooser.(JFileChooser.java:333)
at javax.swing.JFileChooser.(JFileChooser.java:286)
at com.servoy.extensions.plugins.pdf_output.PDFPrintService.(Unknown Source)
at com.servoy.extensions.plugins.pdf_output.PDFPlugin.initialize(Unknown Source)
at com.servoy.j2db.smart.plugins.PluginManager.initClientPluginsEx(PluginManager.java:382)
at com.servoy.j2db.smart.plugins.PluginManager.initClientPlugins(PluginManager.java:248)
at com.servoy.j2db.server.headlessclient.SessionClient.createPluginManager(SessionClient.java:553)
at com.servoy.j2db.ClientState.applicationServerInit(ClientState.java:310)
at com.servoy.j2db.server.headlessclient.SessionClient.(SessionClient.java:202)
at com.servoy.j2db.server.headlessclient.SessionClient.(SessionClient.java:156)
at com.servoy.j2db.server.main.Zd.(Zd.java:2)
at com.servoy.j2db.server.main.Zo.run(Zo.java:11)
at com.servoy.j2db.server.main.Zk.login(Zk.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
I definitely have started a smart client and got the error in the servoy-admin.
Anyway, I have set the “-Djava.awt.headless” to false, shut down the app server and started it by Terminal. By now no error is logged when I start a smart client.
But what is if I need a headless client for this solution?
that setting has nothing to do with our headless client
But the error you shown here, again had nothing to do with a smart client setartup
you where starting up there another kind of client on the server, maybe this can also be a batch client.
I set the “-Djava.awt.headless” back to true and now there is this ‘Error ocured initializing plugin: pdf_output’ back in the server log on every start of a Smart Client.
when I open the Smart Client from the Servoy 6 Application Server I get the pdf_output error:
2011-10-03 12:59:33,621 ERROR [RMI TCP Connection(12)-xxx.xxx.xxx.238] com.servoy.j2db.util.Debug - Error ocured initializing plugin: pdf_output
java.awt.HeadlessException
at java.awt.dnd.DropTarget.(DropTarget.java:79)
at java.awt.dnd.DropTarget.(DropTarget.java:125)
at com.apple.laf.AquaFileChooserUI.installListeners(AquaFileChooserUI.java:165)
at com.apple.laf.AquaFileChooserUI.installUI(AquaFileChooserUI.java:122)
at javax.swing.JComponent.setUI(JComponent.java:662)
at javax.swing.JFileChooser.updateUI(JFileChooser.java:1798)
at javax.swing.JFileChooser.setup(JFileChooser.java:360)
at javax.swing.JFileChooser.(JFileChooser.java:333)
at javax.swing.JFileChooser.(JFileChooser.java:286)
at com.servoy.extensions.plugins.pdf_output.PDFPrintService.(Unknown Source)
at com.servoy.extensions.plugins.pdf_output.PDFPlugin.initialize(Unknown Source)
at com.servoy.j2db.smart.plugins.PluginManager.initClientPluginsEx(PluginManager.java:382)
at com.servoy.j2db.smart.plugins.PluginManager.initClientPlugins(PluginManager.java:248)
at com.servoy.j2db.server.headlessclient.SessionClient.createPluginManager(SessionClient.java:553)
at com.servoy.j2db.ClientState.applicationServerInit(ClientState.java:310)
at com.servoy.j2db.server.headlessclient.SessionClient.(SessionClient.java:202)
at com.servoy.j2db.server.headlessclient.SessionClient.(SessionClient.java:156)
at com.servoy.j2db.server.main.Zd.(Zd.java:2)
at com.servoy.j2db.server.main.Zo.run(Zo.java:11)
at com.servoy.j2db.server.main.Zk.login(Zk.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)