aspose file tools*
The moose likes Servlets and the fly likes java.lang.UnsatisfiedLinkError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.lang.UnsatisfiedLinkError" Watch "java.lang.UnsatisfiedLinkError" New topic
Author

java.lang.UnsatisfiedLinkError

c thesky
Greenhorn

Joined: Jul 05, 2011
Posts: 1
Hi,

I had developed a system which run well at localhost but once run at server, the following error will appear:

Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\awt.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Unknown Source)
at java.awt.Toolkit.<clinit>(Unknown Source)
at java.awt.Font.<clinit>(Unknown Source)
at net.sf.jasperreports.engine.fonts.SimpleFontFace.< init>(SimpleFontFace.java:69)
at net.sf.jasperreports.engine.fonts.SimpleFontFamily .createFontFace(SimpleFontFamily.java:316)
at net.sf.jasperreports.engine.fonts.SimpleFontFamily .setNormal(SimpleFontFamily.java:85)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionHelper.parseFontFamily(SimpleFontExtensionHelpe r.java:233)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionHelper.parseFontFamilies(SimpleFontExtensionHel per.java:204)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionHelper.loadFontFamilies(SimpleFontExtensionHelp er.java:173)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionHelper.loadFontFamilies(SimpleFontExtensionHelp er.java:142)
at net.sf.jasperreports.engine.fonts.SimpleFontExtens ionsRegistryFactory.createRegistry(SimpleFontExten sionsRegistryFactory.java:63)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.instantiateRegistry(DefaultExtensionsRegis try.java:238)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.loadRegistries(DefaultExtensionsRegistry.j ava:213)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.loadRegistries(DefaultExtensionsRegistry.j ava:162)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.getRegistries(DefaultExtensionsRegistry.ja va:132)
at net.sf.jasperreports.extensions.DefaultExtensionsR egistry.getExtensions(DefaultExtensionsRegistry.ja va:104)
at net.sf.jasperreports.engine.util.JRStyledTextParse r.<clinit>(JRStyledTextParser.java:76)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<ini t>(JRBaseFiller.java:181)
at net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:76)
at net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:86)
at net.sf.jasperreports.engine.fill.JRVerticalFiller. <init>(JRVerticalFiller.java:56)
at net.sf.jasperreports.engine.fill.JRFiller.createFi ller(JRFiller.java:142)
at net.sf.jasperreports.engine.fill.JRFiller.fillRepo rt(JRFiller.java:78)
at net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:624)
at net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:540)

Besides, when I click for a button to generate a PDF form report, it occurs an error. When run at localhost, the PDF form report can be generated well but once run at server, the following error will appear:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:181)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:76)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:86)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:56)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:78)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:540)


I try research and solve it but the errors still appear. Anyone know what is the reason of the problems or have any solution about these errors? Really appreciate for any suggestions. Thanks.
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

UnsatisfiedLinkError is caused when any DLL (in this case the awt.dll) that is required by a Java/JEE application could not be found and hence could not be loaded for use within the application.

NoClassDefFoundError is caused when a required Class file is missing from the Classpath.


S.D. MADHAN
Not many get the right opportunity !
 
Consider Paul's rocket mass heater.
 
subject: java.lang.UnsatisfiedLinkError