[bug] unsupported class file major version on MAC

Custom indicators, trading strategies, data export and recording and more...
zcsoka
Posts: 310
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 29 times

[bug] unsupported class file major version on MAC

Post by zcsoka » Thu May 07, 2020 5:04 pm

Greetings,

I have downloaded the latest MAC version (7.1.1 mac-113) and tried to add my developed indicators. When I chose the jar file and the indicator, Bookmap has reported Unsupported class file major version 57. I got surprised, since I had no Java 13 installed. I have checked my classfiles with javap and they report major version 52, so on the indicator side everything seems to be working fine. I have also checked couple of classes in the unpacked Bookmap.jar and the major version seems also to be 52. Is it possible that you have packaged some class files which were compiled with JDK 13? 
Please find the thrown exception below. Based on the exception, do you have an idea where the problem might be?

Many thanks in advance,

Zoltan

20200507 15:11:53.618(UTC) WARN: Failed to enumerate entry points
velox.bookmap.bV: java.lang.IllegalArgumentException: Unsupported class file major version 57
    at velox.bookmap.br.a(SourceFile:266)
    at velox.bookmap.br.a(SourceFile:222)
    at velox.bookmap.br.a(SourceFile:602)
    at velox.bookmap.br.a(SourceFile:569)
    at velox.bookmap.Fj.a(SourceFile:591)
    at velox.bookmap.Fj.f(SourceFile:487)
    at velox.bookmap.Fj.a(SourceFile:427)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
    at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.desktop/java.awt.Component.processEvent(Unknown Source)
    at java.desktop/java.awt.Container.processEvent(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
    at velox.bookmap.Pz.dispatchEvent(SourceFile:70)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 57
    at org.objectweb.asm.ClassReader.<init>(ClassReader.java:176)
    at org.objectweb.asm.ClassReader.<init>(ClassReader.java:158)
    at org.objectweb.asm.ClassReader.<init>(ClassReader.java:146)
    at velox.bookmap.uW.a(SourceFile:117)
    at velox.bookmap.uW.findClass(SourceFile:88)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Unknown Source)
    at velox.bookmap.br.a(SourceFile:264)
    ... 43 more
 

serhii
Posts: 39
Joined: Fri Jul 13, 2018 1:07 pm
Been thanked: 18 times

Re: [bug] unsupported class file major version on MAC

Post by serhii » Fri May 08, 2020 8:29 am

Hi, could you send us your file so we can try to reproduce the issue?

zcsoka
Posts: 310
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 29 times

Re: [bug] unsupported class file major version on MAC

Post by zcsoka » Fri May 08, 2020 9:18 am

It is in the Bookmap store, the Zoli indicator.

zcsoka
Posts: 310
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 29 times

Re: [bug] unsupported class file major version on MAC

Post by zcsoka » Fri May 08, 2020 10:56 am

FYI, on Windows it works fine on 7.1.0 b36

Svyatoslav
Site Admin
Posts: 282
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: [bug] unsupported class file major version on MAC

Post by Svyatoslav » Fri May 08, 2020 12:26 pm

Hi zcsoka. Right. We actually did update JRE bundled with mac version to version 14 due to notarization requirements (it's problematic to notarize JRE 8). But we didn't expect that to have any significant effect on addons. We'll check it shortly.

zcsoka
Posts: 310
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 29 times

Re: [bug] unsupported class file major version on MAC

Post by zcsoka » Fri May 08, 2020 2:17 pm

Java 14? Then it is strange, because it is complaining about major version 57, which is Java 13. 

serhii
Posts: 39
Joined: Fri Jul 13, 2018 1:07 pm
Been thanked: 18 times

Re: [bug] unsupported class file major version on MAC

Post by serhii » Mon May 25, 2020 11:25 am

Hi again. I can't find a way to download your jar file. Could you send it to me in private message? Or send your email in private message.

Oh, seems i found the topic with your jar https://www.bookmap.com/forum/viewtopic ... 2466#p2466 is it the one?

serhii
Posts: 39
Joined: Fri Jul 13, 2018 1:07 pm
Been thanked: 18 times

Re: [bug] unsupported class file major version on MAC

Post by serhii » Mon May 25, 2020 11:47 am

I can't reproduce the issue.

Downloaded z0li-1.1.jar from first post here https://www.bookmap.com/forum/viewtopic ... 2466#p2466

Can you still reproduce it?

serhii
Posts: 39
Joined: Fri Jul 13, 2018 1:07 pm
Been thanked: 18 times

Re: [bug] unsupported class file major version on MAC

Post by serhii » Mon May 25, 2020 12:04 pm

Dowloaded z0li-indicator.jar here https://marketplace.bookmap.com/vendors/z0li-store/
Still can't reproduce

Can you reproduce on any of your jars? I'm trying on mac-115 build though

zcsoka
Posts: 310
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 29 times

Re: [bug] unsupported class file major version on MAC

Post by zcsoka » Mon May 25, 2020 4:06 pm

I have upgraded the Bookmap for Mac, since then I cannot reproduce the issue, the problem is solved.

 

Post Reply