Java Web start printing job -


i posted same problem before got no answer. re-posting because think simple problem must have came across recently.

i have javafx application makes use of awt.printerjob print printable information. while on development works fine when sign application , deploy via web start clicking same button print data throws null pointer exception below:

caused by: java.lang.nullpointerexception @ javax.print.printservicelookup.getservicesforcontext(unknown source) @ javax.print.printservicelookup.getlistoflookupservices(unknown source) @ javax.print.printservicelookup.getalllookupservices(unknown source) @ javax.print.printservicelookup.lookupdefaultprintservice(unknown source) @ sun.print.win32printservicelookup.getwin32printlus(unknown source) @ sun.awt.windows.wprinterjob.getprintservice(unknown source) @ sun.print.rasterprinterjob.setprintable(unknown source) @ advancedsearchdetailedresultstableviewcontroller.printtoimage(advancedsearchdetai.. 

i have java swing app deploy same way , using printjob no issues. thought javafx , awt works locally made me think must have webstart accessing printing services. looked @ jnlp api printservices no results.

previous post link https://stackoverflow.com/questions/17403727/java-web-start-printerjob

any ideas or workarounds appreciated.

thanks

updating java 7u21 7u25 caused similar problem in javafx web start app, not know cause of error yet. may permissions issue (see jdk 7u25 , javafx 2.2.25 documentation updates) or maybe bug? test app java 7 update 21!


Comments