Jump to content
Changes to the Jaspersoft community edition download ×

javax.print.PrintServiceLookup error


ktrinad

Recommended Posts

By: Nikola Lazarevic - nikolal

javax.print.PrintServiceLookup error

2004-11-10 08:04

We are using WebSphere 5.1.1 with Jasper and 0.6.1 Jasper Reports. I am trying to reuse applet demo provided in the source code.

I managed to start and applet but when I try to print report I get following exception:

sun.misc.ServiceConfigurationError: javax.print.PrintServiceLookup: http://mup-test2/nikola/PrimarniIdWeb/applets/META-INF/services/javax.print.PrintServiceLookup:1: Illegal configuration-file syntax

 

at sun.misc.Service.fail(Service.java:129)

 

at sun.misc.Service.fail(Service.java:135)

 

at sun.misc.Service.parseLine(Service.java:157)

 

at sun.misc.Service.parse(Service.java:206)

 

at sun.misc.Service.access$100(Service.java:111)

 

at sun.misc.Service$LazyIterator.hasNext(Service.java:257)

 

at javax.print.PrintServiceLookup$1.run(PrintServiceLookup.java:326)

 

at java.security.AccessController.doPrivileged(Native Method)

 

at javax.print.PrintServiceLookup.getAllLookupServices(PrintServiceLookup.java:320)

 

at javax.print.PrintServiceLookup.lookupDefaultPrintService(PrintServiceLookup.java:162)

 

at sun.print.RasterPrinterJob.lookupDefaultPrintService(RasterPrinterJob.java:320)

 

at sun.awt.windows.WPrinterJob.getPrintService(WPrinterJob.java:396)

 

at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:997)

 

at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:979)

 

at net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:223)

 

at net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:131)

 

at net.sf.jasperreports.engine.JasperPrintManager.printPages(JasperPrintManager.java:392)

 

at net.sf.jasperreports.engine.JasperPrintManager.printReport(JasperPrintManager.java:283)

 

at PrinterApplet$3.run(PrinterApplet.java:225)

 

at java.lang.Thread.run(Thread.java:536)

 

 

Anyone with an idea why is Jasper looking on the server for Print service?

 

 

By: Nikola Lazarevic - nikolal

RE: javax.print.PrintServiceLookup error

2004-11-10 08:21

If I try to view the report from the applet I get following exception:

java.lang.ClassFormatError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4/01 Transitional//EN"> (Bad magic number)

 

at java.lang.ClassLoader.defineClass0(Native Method)

 

at java.lang.ClassLoader.defineClass(ClassLoader.java:502)

 

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

 

at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:156)

 

at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:168)

 

at java.lang.ClassLoader.loadClass(ClassLoader.java:299)

 

at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:122)

 

at java.lang.ClassLoader.loadClass(ClassLoader.java:255)

 

at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:93)

 

at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:172)

 

at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:93)

 

at net.sf.jasperreports.engine.util.JRStyledTextParser.<init>(JRStyledTextParser.java:145)

 

at net.sf.jasperreports.engine.export.JRGraphics2DExporter.<init>(JRGraphics2DExporter.java:152)

 

at net.sf.jasperreports.engine.print.JRPrinterAWT.printPageToImage(JRPrinterAWT.java:290)

 

at net.sf.jasperreports.engine.print.JRPrinterAWT.printPageToImage(JRPrinterAWT.java:149)

 

at net.sf.jasperreports.engine.JasperPrintManager.printPageToImage(JasperPrintManager.java:440)

 

at net.sf.jasperreports.view.JRViewer.refreshPage(JRViewer.java:1340)

 

at net.sf.jasperreports.view.JRViewer.setZoomRatio(JRViewer.java:1509)

 

at net.sf.jasperreports.view.JRViewer.cmbZoomActionPerformed(JRViewer.java:1179)

 

at net.sf.jasperreports.view.JRViewer.access$1400(JRViewer.java:125)

 

at net.sf.jasperreports.view.JRViewer$15.actionPerformed(JRViewer.java:614)

 

at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1196)

 

at javax.swing.JComboBox.setSelectedItem(JComboBox.java:561)

 

at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)

 

at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:206)

 

at JRViewerPlus.<init>(JRViewerPlus.java:98)

 

at ViewerFrame.<init>(ViewerFrame.java:104)

 

at PrinterApplet.btnViewActionPerformed(PrinterApplet.java:174)

 

at PrinterApplet.access$100(PrinterApplet.java:85)

 

at PrinterApplet$2.actionPerformed(PrinterApplet.java:152)

 

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)

 

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)

 

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)

 

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)

 

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)

 

at java.awt.Component.processMouseEvent(Component.java:5134)

 

at java.awt.Component.processEvent(Component.java:4931)

 

at java.awt.Container.processEvent(Container.java:1566)

 

at java.awt.Component.dispatchEventImpl(Component.java:3639)

 

at java.awt.Container.dispatchEventImpl(Container.java:1623)

 

at java.awt.Component.dispatchEvent(Component.java:3480)

 

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)

 

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)

 

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)

 

at java.awt.Container.dispatchEventImpl(Container.java:1609)

 

at java.awt.Component.dispatchEvent(Component.java:3480)

 

at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)

 

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)

 

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

 

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)

 

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)

 

at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...