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

Unsupported class file major version 29281 #575

Closed
joachimhs opened this issue Sep 9, 2022 · 5 comments
Closed

Unsupported class file major version 29281 #575

joachimhs opened this issue Sep 9, 2022 · 5 comments

Comments

@joachimhs
Copy link
Collaborator

Hello,

I am getting the following when I am trying to start my Java Application via the command line. I have built the app on JDK 16, and I am starting it on JDK 16. Using the Brace 2.2.2 download from GitHub. I am running this in an Apple Silicon Mac.

What version of Java do I need to use?

@joachimhs
Copy link
Collaborator Author

Hm. It seems that when I run BTrace with -javaagent, and use the scriptdir command, it picks up any file in that directory. Not only .class files. So the file .DS_Store (that gets automatically generated on Macs for each folder), is picked up and attempted to load into the Java application.

@jbachorik
Copy link
Collaborator

This is very strange - there is definitely no version 29281 of the java class format.

Can you provide the exact steps to reproduce, please?

@joachimhs
Copy link
Collaborator Author

Hello,

Looking at this, it seems that BTrace attempts to pick up any file in the scriptdir directory, so when it tries to pick up this ".DS_Store" file, it throws that exception.

Skjermbilde 2022-09-10 kl  07 57 56

I think there ought to be a filter that filters out anything not ending with .class when loading script files from a directory.

@joachimhs
Copy link
Collaborator Author

Created PR: #580

@github-actions
Copy link

Stale issue message

@jbachorik jbachorik added this to the 2.2.3 milestone Nov 10, 2022
@jbachorik jbachorik modified the milestones: 2.2.3, 2.3.0 Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants