# pdf\_output error in Servoy 6 Server log

**URL:** <https://forum.servoy.com/t/pdf-output-error-in-servoy-6-server-log/14792>\
**Category:** Classic Servoy\
**Created:** [October 3, 2011, 11:32am UTC](https://forum.servoy.com/t/pdf-output-error-in-servoy-6-server-log/14792 "2011-10-03T11:32:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgs](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@tgs](https://forum.servoy.com/u/tgs)\
**Post date:** [October 3, 2011, 11:32am UTC](https://forum.servoy.com/t/pdf-output-error-in-servoy-6-server-log/14792/1 "2011-10-03T11:32:38Z")

</div>

Hi,

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)

How can I fix this?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [October 3, 2011, 12:26pm UTC](https://forum.servoy.com/t/pdf-output-error-in-servoy-6-server-log/14792/2 "2011-10-03T12:26:40Z")

</div>

you mean a webclient?  
Because that is a log from the server, and you are trying to make a webclient there not a smart client

You could play with “-Djava.awt.headless=true " in your servoy\_server.sh file maybe in your case you should say “”-Djava.awt.headless=false”

---

<div class="post-metadata">

**Author:** ![tgs](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@tgs](https://forum.servoy.com/u/tgs)\
**Post date:** [October 3, 2011, 12:59pm UTC](https://forum.servoy.com/t/pdf-output-error-in-servoy-6-server-log/14792/3 "2011-10-03T12:59:11Z")

</div>

Hi Johan,

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?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [October 3, 2011, 1:16pm UTC](https://forum.servoy.com/t/pdf-output-error-in-servoy-6-server-log/14792/4 "2011-10-03T13:16:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tgs](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@tgs](https://forum.servoy.com/u/tgs)\
**Post date:** [October 6, 2011, 8:01am UTC](https://forum.servoy.com/t/pdf-output-error-in-servoy-6-server-log/14792/5 "2011-10-06T08:01:37Z")

</div>

Hi Johan,

setting the “-Djava.awt.headless” to false is not a real solution because this produce other issues, posted in this topic: [http://forum.servoy.com/viewtopic.php?f=5&t=17017&p=91965#p91965](http://forum.servoy.com/viewtopic.php?f=5&t=17017&p=91965#p91965)

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.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [October 6, 2011, 8:21am UTC](https://forum.servoy.com/t/pdf-output-error-in-servoy-6-server-log/14792/6 "2011-10-06T08:21:52Z")

</div>

please make a case for this pointing to this forum post  
So that we can make the pdf\_output plugin less dependend on the swing filechooser

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [October 7, 2011, 9:03am UTC](https://forum.servoy.com/t/pdf-output-error-in-servoy-6-server-log/14792/7 "2011-10-07T09:03:08Z")

</div>

> tgs:  
> Hi,
> 
> 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)
> 
> How can I fix this?

Will be fixed in Servoy 6.0.2 .
