picryott created FELIX-6806:
-------------------------------
Summary: null "dataFile" while initializing framework with a
Windows 10 linked folder
Key: FELIX-6806
URL: https://issues.apache.org/jira/browse/FELIX-6806
Project: Felix
Issue Type: Bug
Components: Framework
Affects Versions: framework-7.0.5
Environment: Windows 10, Oracle JDK 25
Reporter: picryott
When trying to call init on a fixghidra.Fixit.felixFramework instance I get an
Exception:
Exception in thread "main" java.lang.NullPointerException: Cannot invoke
"java.io.File.isFile()" because "dataFile" is null
at org.apache.felix.framework.Felix.handleJavaVersionChange(Felix.java:1012)
at org.apache.felix.framework.Felix.init(Felix.java:810)
at org.apache.felix.framework.Felix.init(Felix.java:648)
This happens when I set the property "Constants.FRAMEWORK_STORAGE" to a folder
whose path contains a Windows 10 link.
For example, I set the value to :
{color:#000000}"C:/Users/pierre/AppData/Roaming/ghidra/ghidra_12.1_DEV/osgi/felixcache"{color}
{color:#000000}where{color}{color:#000000}{color:#000000}"C:/Users/pierre{color}"
is a link to "H:\users\pierre"{color}
{color:#000000}And I get the exception.{color}
{color:#000000}I tried with another folder without any link in the path and I
didn't get the exception.{color}
{color:#000000}I tried to investigate more but I don't know maven enough and
could not build a fully functional org.apache.felix.framework-7.0.5.jar.{color}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)