{"action":"created","issue":{"url":"https://api.github.com/repos/AdoptOpenJDK/openjdk-build/issues/682","repository_url":"https://api.github.com/repos/AdoptOpenJDK/openjdk-build","labels_url":"https://api.github.com/repos/AdoptOpenJDK/openjdk-build/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/AdoptOpenJDK/openjdk-build/issues/682/comments","events_url":"https://api.github.com/repos/AdoptOpenJDK/openjdk-build/issues/682/events","html_url":"https://github.com/AdoptOpenJDK/openjdk-build/issues/682","id":372878262,"node_id":"MDU6SXNzdWUzNzI4NzgyNjI=","number":682,"title":"There was no fonts in Linux version","user":{"login":"karianna","id":180840,"node_id":"MDQ6VXNlcjE4MDg0MA==","avatar_url":"https://avatars0.githubusercontent.com/u/180840?v=4","gravatar_id":"","url":"https://api.github.com/users/karianna","html_url":"https://github.com/karianna","followers_url":"https://api.github.com/users/karianna/followers","following_url":"https://api.github.com/users/karianna/following{/other_user}","gists_url":"https://api.github.com/users/karianna/gists{/gist_id}","starred_url":"https://api.github.com/users/karianna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karianna/subscriptions","organizations_url":"https://api.github.com/users/karianna/orgs","repos_url":"https://api.github.com/users/karianna/repos","events_url":"https://api.github.com/users/karianna/events{/privacy}","received_events_url":"https://api.github.com/users/karianna/received_events","type":"User","site_admin":false},"labels":[{"id":562902936,"node_id":"MDU6TGFiZWw1NjI5MDI5MzY=","url":"https://api.github.com/repos/AdoptOpenJDK/openjdk-build/labels/bug","name":"bug","color":"ee0701","default":true},{"id":1104644329,"node_id":"MDU6TGFiZWwxMTA0NjQ0MzI5","url":"https://api.github.com/repos/AdoptOpenJDK/openjdk-build/labels/compatibility","name":"compatibility","color":"111111","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-23T08:43:45Z","updated_at":"2018-11-19T17:56:09Z","closed_at":null,"author_association":"MEMBER","body":"_From @JamesMung on October 23, 2018 3:54_\n\nJDK Version ; jdk8u181-b13\r\n\r\nWhen I use jasper print PDF in Windows is fine, but for Linux found the error as follow:\r\n```java\r\nCaused by: net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: Problem reading font data.\r\n        at net.sf.jasperreports.engine.fonts.SimpleFontFace.<init>(SimpleFontFace.java:108)\r\n        at net.sf.jasperreports.engine.fonts.SimpleFontFace.<init>(SimpleFontFace.java:128)\r\n        at net.sf.jasperreports.engine.fonts.SimpleFontFace.getInstance(SimpleFontFace.java:67)\r\n        at net.sf.jasperreports.engine.fonts.SimpleFontFamily.setNormal(SimpleFontFamily.java:99)\r\n        at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:261)\r\n        at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:232)\r\n        at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:193)\r\n        at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:162)\r\n        at net.sf.jasperreports.engine.fonts.FontExtensionsRegistry.getExtensions(FontExtensionsRegistry.java:56)\r\n        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:110)\r\n        at net.sf.jasperreports.engine.util.JRStyledTextParser.<clinit>(JRStyledTextParser.java:83)\r\n        ... 73 more\r\nCaused by: java.io.IOException: Problem reading font data.\r\n        at java.awt.Font.createFont0(Font.java:1000)\r\n        at java.awt.Font.createFont(Font.java:877)\r\n        at net.sf.jasperreports.engine.fonts.SimpleFontFace.<init>(SimpleFontFace.java:100)\r\n        ... 83 more\r\n```\r\n\r\nCan you help for solve this problem in current version ? And please fix it in future version.\n\n_Copied from original issue: AdoptOpenJDK/openjdk8-releases#16_"},"comment":{"url":"https://api.github.com/repos/AdoptOpenJDK/openjdk-build/issues/comments/439984357","html_url":"https://github.com/AdoptOpenJDK/openjdk-build/issues/682#issuecomment-439984357","issue_url":"https://api.github.com/repos/AdoptOpenJDK/openjdk-build/issues/682","id":439984357,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTk4NDM1Nw==","user":{"login":"jarnbjo","id":18016120,"node_id":"MDQ6VXNlcjE4MDE2MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/18016120?v=4","gravatar_id":"","url":"https://api.github.com/users/jarnbjo","html_url":"https://github.com/jarnbjo","followers_url":"https://api.github.com/users/jarnbjo/followers","following_url":"https://api.github.com/users/jarnbjo/following{/other_user}","gists_url":"https://api.github.com/users/jarnbjo/gists{/gist_id}","starred_url":"https://api.github.com/users/jarnbjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarnbjo/subscriptions","organizations_url":"https://api.github.com/users/jarnbjo/orgs","repos_url":"https://api.github.com/users/jarnbjo/repos","events_url":"https://api.github.com/users/jarnbjo/events{/privacy}","received_events_url":"https://api.github.com/users/jarnbjo/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T17:56:09Z","updated_at":"2018-11-19T17:56:09Z","author_association":"NONE","body":"Initially commented on issue 693, but also relevant here:\r\n\r\nThe NullPointerException in FontConfiguration.java:1264 is caused by a missing font configuration file, which is not included with the Linux version of AdoptOpenJDK. It is important to notice that the direct cause of the exception is a missing _configuration_ file and not that actual font files are missing.\r\n\r\nWhen the AWT font subsystem is initialized, it will look for a font configuration file in $JAVA_HOME/lib following a naming scheme and priority as described here: https://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html\r\n\r\nEven if no fonts are provided by the JDK and use of OS provided fonts is not intented or configured, a minimal configuration is required by the AWT font subsystem to initialize without throwing exceptions. Providing a **fontconfiguration.properties** file in **$JAVA_HOME/lib** with the following two lines will at least, to start with, mitigate the problem with the NullPointerException:\r\n\r\n```\r\nversion=1\r\nsequence.allfonts=default\r\n```\r\n\r\nSince _we_ are only using fonts bundled with our application, this is a feasible workaround in our situation. It allows the font subsystem to initialize and we can later without issues load our own fonts from the classpath. I am not sure what happens and YMMV if you try to run an application, which relies on the JDK to provide actual fonts, either as bundled with the JDK or as provided by the operating system."}}
{"actor":{"display_login":"jarnbjo"}}