Time |
S |
Nick |
Message |
04:32 |
|
|
mr_lou joined ##friendlyjava |
04:44 |
|
|
mr_lou joined ##friendlyjava |
11:49 |
|
|
philbot joined ##friendlyjava |
11:49 |
|
|
Topic for ##friendlyjava is now Be friendly :) This channel is publicly logged at http://irclog.greptilian.com/friendlyjava/today ⚫ Please use a pastebin for pasting code |
11:52 |
|
|
pdurbin joined ##friendlyjava |
13:18 |
|
|
kirua joined ##friendlyjava |
14:18 |
|
|
aditsu_ joined ##friendlyjava |
14:19 |
|
aditsu_ |
I just had a really weird NoSuchMethodError problem that happened only in production |
14:20 |
|
aditsu_ |
code looked perfectly fine and worked on my laptop :p |
14:26 |
|
aditsu_ |
after a few minutes of panic and googling, I figured it out: that method basically moved to a superclass, but a jar was compiled expecting it to be in the derived class |
14:31 |
|
pdurbin |
Different versions of Java on your laptop vs. production? |
14:42 |
|
aditsu_ |
no, or at least not relevant |
14:43 |
|
aditsu_ |
I think this is the exact problem: https://github.com/jhy/jsoup/issues/714 |
14:45 |
|
aditsu_ |
solution is to simply recompile the code with the new version of the library |
14:50 |
|
pdurbin |
aditsu: "relatively low impact" or panic and googling? :) |
15:13 |
|
|
kirua joined ##friendlyjava |
15:22 |
|
|
aditsu_ joined ##friendlyjava |
15:23 |
|
aditsu_ |
pdurbin: I'm not the one who said "relatively low impact", I guess the author estimated that the problem affects a relatively small number of people and can be fixed easily |
15:25 |
|
aditsu_ |
here's a more detailed analysis of a similar problem: http://codefhtagn.blogspot.com/2010/11/java-binary-compatibility-more-than.html |
16:10 |
|
|
kirua joined ##friendlyjava |
16:18 |
|
|
mr_lou joined ##friendlyjava |
18:49 |
|
|
kirua joined ##friendlyjava |
18:57 |
|
kirua |
hi |
19:04 |
|
kirua |
i have some issue, i'm trying to migrate my app from weblogic 10 to weblgic 12, it used to be built in jdk6 now, i build it with jdk8, everything happen smoothly but when i try to deploy the .ear package, i get the following error : https://pastebin.com/QHZtJYRK it says class not found, but then why the build doesnt fail ? |
19:09 |
|
aditsu |
kirua: I don't know about weblogic, but it seems that you're having a runtime error |
19:09 |
|
kirua |
how did you notice that ? |
19:10 |
|
aditsu |
well, first of all, there's a stack trace :p |
19:10 |
|
kirua |
indee |
19:10 |
|
kirua |
indeed |
19:10 |
|
kirua |
i cant even deploy te application |
19:11 |
|
aditsu |
"weblogic.application.compiler" seems to suggest that it's trying to compile something at that point, but I have no idea what it is |
19:30 |
|
pdurbin |
aditsu: I guess I'm a little confused. Are you saying you started seeing NoSuchMethodError after you dropped an updated jar file into your app without recompiling your app? |
19:34 |
|
aditsu |
pdurbin: I dropped 2 updated jars and updated the main app code too; the issue was that one of the jars was compiled against an older version of the other jar (but locally I wasn't using that jar) |
19:37 |
|
pdurbin |
Ok, so how do you prevent this from happening in the future? |
19:40 |
|
aditsu |
well, there are several things that can be done.. I can try to be aware every time I update a library, that I may need to rebuild other things that use it... but more effectively, I guess I should test the full built project before updating the production server (I guess they call that "staging") |
19:41 |
|
aditsu |
and finally, if the problem somehow comes up again, I should be able to recognize it more easily now :p |
19:45 |
|
pdurbin |
Ok. We use Jsoup too. Was the second library that uses Jsoup one of your own libraries? Or was it some open source library on Maven Central that I may have heard of? |
19:46 |
|
aditsu |
it was my own, but when googling I found some people who encountered the same problem when using... I think vaadin |
19:46 |
|
pdurbin |
ok |
21:08 |
|
|
kirua joined ##friendlyjava |