Skip to content
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

Exception Thrown when calling Date.ToString() #21

Open
jasells opened this issue Jul 7, 2022 · 1 comment
Open

Exception Thrown when calling Date.ToString() #21

jasells opened this issue Jul 7, 2022 · 1 comment

Comments

@jasells
Copy link

jasells commented Jul 7, 2022

It seems like the System class static initializer has not been called to init the internal static member "props"?

"The type initializer for 'java.lang.Props' threw an exception."
inner exception:
"FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager"

Here's the stack trace:

   at java.lang.System.get_props()
   at java.lang.System.getProperty(String str)
   at sun.security.action.GetPropertyAction.run()
   at sun.security.action.GetPropertyAction.<bridge>run()
   at java.security.AccessController.doPrivileged(Object , AccessControlContext , CallerID )
   at java.security.AccessController.doPrivileged(PrivilegedAction pa, CallerID )
   at java.util.TimeZone.setDefaultZone()
   at java.util.TimeZone.getDefaultRef()
   at java.util.Date.normalize()
   at java.util.Date.toString()
   at Java.Net.Demo.JavaTimeStamp.TimeStamp()
   at Program.<Main>$(String[] args) in C:\source\repos\Java.Net.Demo\ConsoleApp1\ConsoleApp1\Program.cs:line 4
@jasells
Copy link
Author

jasells commented Jul 7, 2022

Ok,

I dug a little deeper, resolved that initial error, but I am getting other file not found exceptions, all related to mission .Net dependencies or otherwise .Net side. My little test app is .Net 6 cli, so I think this is the main issue, since this tool compiles against a much older version of .Net.

For anyone else, this issue may help:

#16

There is a link to another fork there that looks to be working on upgrading the .Net version. I am going to try that one, it should get me past my immediate issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant