-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got repeated datainputStream directory name. #27
Comments
The identifiers are generated using the You get two identical identifiers, if the second argument - a IIRC, the SIH relates to the location of the Java object in JVM memory space, and it is set automatically by the JVM. I cannot provide any "location hints" in advance, or move the Java object to a different location afterwards. |
What's your JVM vendor/version? Again, IIRC, SIHs are often semi-deterministic, meaning that if you play out the same sequence of events (on a newly created JVM), you are likely to get the same SIHs for your Java objects. My guess is that you were generating these JAR files using JPMML-Transpiler command-line application in two consecutive but independent sessions - hence the JVM is placing the Try to change something about your JVM configuration between these two sessions. For example, change the size of the JVM memory, so that Java objects would get to deposited to a different memory location. |
All things considered, there's not enough information for me here, in order to suggest a definite workaround/fix. I don't see this kind of resource identifier collision as a major bug. In fact, I'd consider it more like a feature, meaning that it's possible to get reproducible JAR builds! |
The alternative to SIHs would be random number generation. Feel free to implement this code change locally. Perhaps there could be a configuration option for choosing the identifier style. |
I got two different regressor model, using pmml-transpiler transfer to .jar format. And import in the project as two jar file.
The error message is
2 files found with path 'com/zhenzhe/javacv/PMML$1266265220.data'.
Adding a packagingOptions block may help, please refer to
https://developer.android.com/reference/tools/gradle-api/8.2/com/android/build/api/dsl/ResourcesPackagingOptions
for more information. It is the transpiler generate two same data directory.Do you have any idea why they are the same
The text was updated successfully, but these errors were encountered: