java.lang.VerifyError: Expecting a stackmap frame at branch target 29 - java

Exception Details:
Location:
com/sonicsw/mf/comm/jms/ConnectorClient.setRequestTimeout(J)V #3: ifnonnull
Reason:
Expected stackmap frame at this location.
at com.sonicsw.jndi.mfcontext.MFContext.<init>(MFContext.java:101)
at com.sonicsw.jndi.mfcontext.MFContextFac
Can anyone resolve this issue? Googled it for over a week and tried every possible alternatives . Used -XX:-UseSplitVerifier . It is also not working . With noverify option it works fine. Java version is 1.7.0_51 . Working fine with 7.6 sonic libraries . We recently upgraded those libraries from 7.6 to 2015 and after that moment we are getting this error.

Even I also faced the same challenge when migrate my application from 1.6 to 1.7.
After huge struggle, we found a fix for this issue.
Approach 1: Either you can use -XX:-UseSplitVerifier argument will resolve this issue and you don't need to worry about to upgrade the library files.
Approach 2: I have followed the below steps to overcome the issue.
Step 1: Identify and keep a list of external libraries consumed by your application.
Step 2: Once you identify the list, keep removing one by one external library files and plug in upgraded version library files which will help you to isolate the library which might causing the issue.
In my case: j2ee.jar and openjpa-1.2.2 jar files created an issue and then I have upgraded these libraries which had resolved the migration issues.
Hence, It is bit of slow and painful process to figure out which library causing the issue and arrest it.
I hope, this information might be useful because it is based out of my real time experience.

Related

Using JavaFX13 with Java 13/8 and have JNI error?

Error: A JNI error has occurred, please check your installation and try again.
Eclipse states: test has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 52.0.
I had the problem referenced at this question: "Could not find or load main class" while trying to use JavaFX in Eclipse When using JDK13 and JavaFX13. All solutions pointed to downgrading to Java 8.
I installed Java 8, updated the build path, and it built fine. But now I get the error I am using Eclipse 2019-06 (4.12.0), JavaFX13, and JDK 1.8.0_231.
I researched the answer but the two questions that come didn't help. One was for an IntellJ solution and the other had a package I am unfamiliar with, and the error had to do with that package.
I simply don't know how to correct the build path or dependencies to fix this issue. It appears I need a lower version of the JVM, but cannot seem to locate it. Am I right, or can you please help?
Well, I have dropped back to JDK 8 and the built in JavaFX. Despite my best efforts, I cannot get JDK13 and JavaFX 13 to work without receiving the error "Could not find or load main class" (see link in post). Since there is no solution to that problem yet that works for me, I can bypass my error on this request all together and just use much older packages.

#Transactional not an annotation

I am trying to rebuild a grails application using ggts 3.4.0 with groovy 2.1.8, grails 2.3.3 and java 1.7.
In the services files I'm getting these error messages:
Groovy.class grails.transaction.Transactional is not an annotation in #grails.transaction.Transactional
I believe that one of the components listed above is causing this problem. Can someone suggest which particular one and the required version I need?
Incidentally, I've successfully built this in the past with different versions of the various components but I'm not sure what they were. I do have backups - so if you can suggest where can I find details of these builds that would help.
I would welcome any suggestions?
-mike

Unable to install jdk-8u101-windows-x64 in system

After uninstalled the java in my computer, i have downloaded latest version jdk-8u101-windows-x64.exe and tried to install it. but unfortunately at end of installation i got the error code as,
Error message which i got during installation
I have followed the steps as described in the java help site. but nothing gives me the solution. Because of this i cant even launch the Eclipse to code.
From Oracle site,
This is a known issue.
Error 1603: Java Update did not complete.
WORKAROUND This is a known issue, and we are still investigating the
root cause. Meanwhile you can try the following to install Java.
Workarounds:
Option 1: Restart your system and uninstall old versions
Option 2: Disable Java content through the Java Control Panel
You can follow more detailed steps from this official link.
Follow the link, it is an issue with Java it is under investigation
https://www.java.com/en/download/help/error_1603.xml

Upgrading JasperReports 1.3.1 to JasperReports 4.6

I am upgrading my JasperReports version as mentioned in the title.
I don't know much about the JasperReports version upgrade. Which all things I have to change to make it work. I have latest .jar files of everything. But when I print my .PDF report it gives me this error.
error:could not open file because its damaged or not supported.
In eclipse it shows this exception
java.lang.NoSuchFieldError: PRINTSCALING at
net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExpor‌​ter.java:532) at
net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java‌​:396) at
net.sf.jasperreports.engine.JasperExportManager.exportToPdf(JasperExportManager.‌​java:212) at
net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(JasperExportMa‌​nager.java:536) at
com.sibisoft.northstar.util.JasperReportGenerator.getPdfByteArray(JasperReportGe‌​nerator.java:679)
Please help me.
The issue is not with JasperReports but with the version of the iText library you are using. You need to download version 2.1.7 to work with that version of JasperReports. You can get it from here.
I happened to know this one off the top of my head, as I ran into it in the past, but as a helpful note in the future, this is the process I used to figure it out originally.
Since JasperReports is open source, the code can be found online easily. So I google:
site:grepcode.com
net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream
To find the code online. (GrepCode basically provides a cool site to look through many open source projects source code.)
At the top of the GrepCode page they have the version of the project, so make sure it is pointing to which ever version you are using.
Then find the method or line number in the error message.
From here it is just like debugging local code. You can see what the offending class is, and what package it belongs to. In this case it points to the itext libray as the culprit.
Hope that helps you out in the future, and happy reporting.

Upgraded to Cassandra 1.1.0 and could not find CassandraStorage()

This issue seems to have been resolved in the latest Cassandra 1.1.2 but I shall leave it here for those still on 1.1.0...
I have just upgraded to Cassandra 1.1.0, compiling it from source, and now I cannot find the CassandraStorage() class anywhere, and the contrib directory has disappeared!
May I know where I could find it? This class is important and utmost essential to the operation of Pig and Hadoop via Cassandra.
Also, executing the pig_cassandra from the examples directory produced the error that the CassandraStorage() could not be found. Is there a way around this?
Thanks!
org.apache.cassandra.hadoop.pig.CassandraStorage

Categories

Resources