java.lang.UnsatisfiedLinkError: sun.font.CFontManager.loadNativeDirFonts(Ljava/lang/String;)V

Jenkins JIRA | Henri Gomez | 4 years ago
  1. 0

    While trying Jenkins with Java 8 b59, I get following errors in catalina.out : {code} Oct 05, 2012 9:22:44 AM org.kohsuke.stapler.jelly.AdjunctTag doTag WARNING: AdjunctManager is not installed for this application. Skipping <adjunct> tags java.lang.Exception at org.kohsuke.stapler.jelly.AdjunctTag.doTag(AdjunctTag.java:74) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53) at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:107) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488) at org.kohsuke.stapler.Stapler.service(Stapler.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) {code} Connecting to Jenkins via browser and get this error also : {code} AWT n'est pas configuré correctement sur ce serveur. Peut-être devez-vous lancer votre conteneur avec "-Djava.awt.headless=true"? java.lang.UnsatisfiedLinkError: sun.font.CFontManager.loadNativeDirFonts(Ljava/lang/String;)V at sun.font.CFontManager.loadNativeDirFonts(Native Method) at sun.font.CFontManager.registerFontsInDir(CFontManager.java:252) at sun.font.SunFontManager$2.run(SunFontManager.java:424) at java.security.AccessController.doPrivileged(Native Method) at sun.font.SunFontManager.<init>(SunFontManager.java:375) at sun.font.CFontManager.<init>(CFontManager.java:43) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:395) at java.lang.Class.newInstance0(Class.java:369) at java.lang.Class.newInstance(Class.java:321) at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83) at java.security.AccessController.doPrivileged(Native Method) at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74) at java.awt.Font.getFont2D(Font.java:491) at java.awt.Font.getFamily(Font.java:1188) at java.awt.Font.getFamily_NoClientCode(Font.java:1162) at java.awt.Font.getFamily(Font.java:1154) at java.awt.Font.toString(Font.java:1651) at hudson.util.ChartUtil.<clinit>(ChartUtil.java:229) at hudson.WebAppMain.contextInitialized(WebAppMain.java:172) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:650) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1582) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {code} Jenkins is started from Apache Tomcat 7.0.30 with command line : {code} /Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/henri/Documents/jenkins/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms256m -Xmx768m -DJENKINS_HOME=/Users/henri/Documents/jenkins/data -XX:HeapDumpPath=/Users/henri/Documents/jenkins/logs -verbose:gc -Xloggc:/Users/henri/Documents/jenkins/logs/catalina.vgc -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintHeapAtGC -XX:-HeapDumpOnOutOfMemoryError -Dhudson.model.Hudson.logStartupPerformance=true -Duser.language=en -Dcom.sun.management.jmxremote.port=48102 -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.awt.headless=true -Djava.endorsed.dirs=/Users/henri/Documents/jenkins/endorsed -classpath /Users/henri/Documents/jenkins/bin/bootstrap.jar:/Users/henri/Documents/jenkins/bin/tomcat-juli.jar -Dcatalina.base=/Users/henri/Documents/jenkins -Dcatalina.home=/Users/henri/Documents/jenkins -Djava.io.tmpdir=/Users/henri/Documents/jenkins/temp org.apache.catalina.startup.Bootstrap start {code}

    Jenkins JIRA | 4 years ago | Henri Gomez
    java.lang.UnsatisfiedLinkError: sun.font.CFontManager.loadNativeDirFonts(Ljava/lang/String;)V
  2. 0

    While trying Jenkins with Java 8 b59, I get following errors in catalina.out : {code} Oct 05, 2012 9:22:44 AM org.kohsuke.stapler.jelly.AdjunctTag doTag WARNING: AdjunctManager is not installed for this application. Skipping <adjunct> tags java.lang.Exception at org.kohsuke.stapler.jelly.AdjunctTag.doTag(AdjunctTag.java:74) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53) at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:107) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488) at org.kohsuke.stapler.Stapler.service(Stapler.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) {code} Connecting to Jenkins via browser and get this error also : {code} AWT n'est pas configuré correctement sur ce serveur. Peut-être devez-vous lancer votre conteneur avec "-Djava.awt.headless=true"? java.lang.UnsatisfiedLinkError: sun.font.CFontManager.loadNativeDirFonts(Ljava/lang/String;)V at sun.font.CFontManager.loadNativeDirFonts(Native Method) at sun.font.CFontManager.registerFontsInDir(CFontManager.java:252) at sun.font.SunFontManager$2.run(SunFontManager.java:424) at java.security.AccessController.doPrivileged(Native Method) at sun.font.SunFontManager.<init>(SunFontManager.java:375) at sun.font.CFontManager.<init>(CFontManager.java:43) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:395) at java.lang.Class.newInstance0(Class.java:369) at java.lang.Class.newInstance(Class.java:321) at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83) at java.security.AccessController.doPrivileged(Native Method) at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74) at java.awt.Font.getFont2D(Font.java:491) at java.awt.Font.getFamily(Font.java:1188) at java.awt.Font.getFamily_NoClientCode(Font.java:1162) at java.awt.Font.getFamily(Font.java:1154) at java.awt.Font.toString(Font.java:1651) at hudson.util.ChartUtil.<clinit>(ChartUtil.java:229) at hudson.WebAppMain.contextInitialized(WebAppMain.java:172) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:650) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1582) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {code} Jenkins is started from Apache Tomcat 7.0.30 with command line : {code} /Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/henri/Documents/jenkins/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms256m -Xmx768m -DJENKINS_HOME=/Users/henri/Documents/jenkins/data -XX:HeapDumpPath=/Users/henri/Documents/jenkins/logs -verbose:gc -Xloggc:/Users/henri/Documents/jenkins/logs/catalina.vgc -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintHeapAtGC -XX:-HeapDumpOnOutOfMemoryError -Dhudson.model.Hudson.logStartupPerformance=true -Duser.language=en -Dcom.sun.management.jmxremote.port=48102 -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.awt.headless=true -Djava.endorsed.dirs=/Users/henri/Documents/jenkins/endorsed -classpath /Users/henri/Documents/jenkins/bin/bootstrap.jar:/Users/henri/Documents/jenkins/bin/tomcat-juli.jar -Dcatalina.base=/Users/henri/Documents/jenkins -Dcatalina.home=/Users/henri/Documents/jenkins -Djava.io.tmpdir=/Users/henri/Documents/jenkins/temp org.apache.catalina.startup.Bootstrap start {code}

    Jenkins JIRA | 4 years ago | Henri Gomez
    java.lang.UnsatisfiedLinkError: sun.font.CFontManager.loadNativeDirFonts(Ljava/lang/String;)V
  3. 0

    fix jenkins startup

    GitHub | 3 months ago | bdangit
    java.lang.UnsatisfiedLinkError: /hab/pkgs/core/jdk8/8u102/20160810135345/jre/lib/amd64/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JNI without source code (UnsatisfiedLinkError)

    Stack Overflow | 2 years ago | Gep
    java.lang.UnsatisfiedLinkError: MyWrapper.functionOne(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V
  6. 0

    java.lang.UnsatisfiedLinkError using native interface

    Stack Overflow | 3 years ago | BackSlash
    java.lang.UnsatisfiedLinkError: NativeSystem.println(Ljava/lang/String;)V

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsatisfiedLinkError

      sun.font.CFontManager.loadNativeDirFonts(Ljava/lang/String;)V

      at sun.font.CFontManager.loadNativeDirFonts()
    2. Java RT
      Font.toString
      1. sun.font.CFontManager.loadNativeDirFonts(Native Method)
      2. sun.font.CFontManager.registerFontsInDir(CFontManager.java:252)
      3. sun.font.SunFontManager$2.run(SunFontManager.java:424)
      4. java.security.AccessController.doPrivileged(Native Method)
      5. sun.font.SunFontManager.<init>(SunFontManager.java:375)
      6. sun.font.CFontManager.<init>(CFontManager.java:43)
      7. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      8. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      9. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      10. java.lang.reflect.Constructor.newInstance(Constructor.java:395)
      11. java.lang.Class.newInstance0(Class.java:369)
      12. java.lang.Class.newInstance(Class.java:321)
      13. sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
      14. java.security.AccessController.doPrivileged(Native Method)
      15. sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
      16. java.awt.Font.getFont2D(Font.java:491)
      17. java.awt.Font.getFamily(Font.java:1188)
      18. java.awt.Font.getFamily_NoClientCode(Font.java:1162)
      19. java.awt.Font.getFamily(Font.java:1154)
      20. java.awt.Font.toString(Font.java:1651)
      20 frames
    3. Hudson
      WebAppMain.contextInitialized
      1. hudson.util.ChartUtil.<clinit>(ChartUtil.java:229)
      2. hudson.WebAppMain.contextInitialized(WebAppMain.java:172)
      2 frames
    4. Glassfish Core
      HostConfig$DeployDescriptor.run
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
      7. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:650)
      8. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1582)
      8 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      5. java.lang.Thread.run(Thread.java:722)
      5 frames