java.lang.NoSuchMethodError

Hello -

I’m running Lucee 4.5.2.018 on AWS Elastic Beanstalk. When using the 64bit
Amazon Linux 2015.03 v2.0.1 running Tomcat 8 Java 8 environment, everything
works fine. But, when utilizing the most recent version, 64bit Amazon Linux
2015.09 v2.0.4 running Tomcat 8 Java 8 - I receive the following error:

java.lang.NoSuchMethodError
org.apache.http.entity.StringEntity.(Ljava/lang/String;Lorg/apache/http/entity/ContentType;)V

It appears that cfhttp calls (twilio, etc.) are causing the error.

This doesn’t appear to be related to Lucee versions, per se, since it also
occurs on the previous Lucee stable version. I know there have been some
challenges with cfhttp lately, so I’m not sure if this is also related.

Any thoughts?

Thanks.

I ran into this error when I was trying to get a workaround for this issue:

https://luceeserver.atlassian.net/browse/LDEV-429

The solution was to replace all three http related jars with the ones I reference in the comments.> On Nov 9, 2015, at 8:17 PM, David Repas <@David_Repas> wrote:

Hello -

I’m running Lucee 4.5.2.018 on AWS Elastic Beanstalk. When using the 64bit Amazon Linux 2015.03 v2.0.1 running Tomcat 8 Java 8 environment, everything works fine. But, when utilizing the most recent version, 64bit Amazon Linux 2015.09 v2.0.4 running Tomcat 8 Java 8 - I receive the following error:

java.lang.NoSuchMethodError
org.apache.http.entity.StringEntity.(Ljava/lang/String;Lorg/apache/http/entity/ContentType;)V

It appears that cfhttp calls (twilio, etc.) are causing the error.

This doesn’t appear to be related to Lucee versions, per se, since it also occurs on the previous Lucee stable version. I know there have been some challenges with cfhttp lately, so I’m not sure if this is also related.

Any thoughts?

Thanks.


Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/bac36f59-f8c2-4b5b-88fc-f246f9ee3a64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks for the suggestions.

Unfortunately, that didn’t seem to help. After a bunch of trial and error,
I did find something that appeared to fix the issue. There’s a related post
by Micha about possibly just removing those jars if they are already loaded
in the system.

https://groups.google.com/forum/#!msg/lucee/tdT8wBFrMuQ/fagv0AIfgVEJ

So, I removed all 3 of them, but that didn’t work - received some sort of
mime error. Then I tried leaving “apache-commons-httpmime.jar”, but removed
the other 2.

And surprise, that works.

I’m not sure why the “Amazon Linux 2015.09 v2.0.4 running Tomcat 8 Java 8”
environment has the problem, but “Amazon Linux 2015.03 v2.0.1 running
Tomcat 8 Java 8” does not.

Anyway, hopefully this will help someone down the road.

David

Hi David,

If you upgraded from 4.5.1.xxx you need to perform the “optional step” in
the release notes:

http://lucee.org/blog/lucee-4-5-2-stable-release.html

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.orgOn 10 November 2015 at 13:15, Sean Daniels <@Sean_Daniels> wrote:

I ran into this error when I was trying to get a workaround for this issue:

[LDEV-429] - Lucee

The solution was to replace all three http related jars with the ones I
reference in the comments.

On Nov 9, 2015, at 8:17 PM, David Repas <@David_Repas> wrote:

Hello -

I’m running Lucee 4.5.2.018 on AWS Elastic Beanstalk. When using the
64bit Amazon Linux 2015.03 v2.0.1 running Tomcat 8 Java 8 environment,
everything works fine. But, when utilizing the most recent version, 64bit
Amazon Linux 2015.09 v2.0.4 running Tomcat 8 Java 8 - I receive the
following error:

java.lang.NoSuchMethodError

org.apache.http.entity.StringEntity.(Ljava/lang/String;Lorg/apache/http/entity/ContentType;)V

It appears that cfhttp calls (twilio, etc.) are causing the error.

This doesn’t appear to be related to Lucee versions, per se, since it
also occurs on the previous Lucee stable version. I know there have been
some challenges with cfhttp lately, so I’m not sure if this is also related.

Any thoughts?

Thanks.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/bac36f59-f8c2-4b5b-88fc-f246f9ee3a64%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/8C2F1467-0268-4181-A1A2-6F92963DC779%40gmail.com
.
For more options, visit https://groups.google.com/d/optout.