Re: Latest Java-openjdk upgrade [SOLVED?]

2015-01-28 Thread Kevin Cummings
On 01/27/2015 12:55 PM, Kevin Cummings wrote:
> On 01/27/2015 10:49 AM, Patrick O'Callaghan wrote:
>> On Tue, 2015-01-27 at 12:09 -0200, Fernando Lozano wrote:
>>> I do heavy Java development and never had issues with OpenJDK on
>>> Fedora.
>>> And I have OpenJDK on RHEL at many production sites. So don't bother
>>> switching to Oracle Java. Instead try unistall and reinstall OpenJDK
>>> Packages because it looks you have either a corrupted file.
>>>
>>
>> Use "rpm --verify" to check for corruption before just blindly removing
>> and reinstalling packages.
> 
> If I upgrade again, and it fails, I will check this.  Thanks.

Well, what do you know, java got bundled into last night's upgrade along
with 1 perl package upgrade.  When I checked, all was functioning
normally.  Go figure.  If something had become corrupted during the
first attempt, I would think that should be a bug in yum (it goes to
great extents to verify everything that gets updated before, during, and
after the update)!  But, this time, all is well, I am running the .75
packages without a hitch.

wow

Thanks for all the suggestions

>> poc

-- 
Kevin J. Cummings
kjch...@verizon.net
cummi...@kjchome.homeip.net
cummi...@kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.linuxcounter.net/)
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Latest Java-openjdk upgrade

2015-01-27 Thread Kevin Cummings
On 01/27/2015 01:02 PM, Fernando Lozano wrote:
> Hi,
> 
>>> Check which java, javac and etc are configured using alternatives and
>>> check you env vars. Make sure you are using commands, jars and libraries
>>> from the same installation.
>> Interesting suggestion.  I did note that I have been having
>> "alternative" warnings during previous updates of java openjdk, but
>> things were working properly.  What other packages might conflict?  How
>> do I check that the alternatives are set correctly?
> I don't remeber exactly which ones, try at least java, javac and
> libjavaplugin.so or something like that. For example, "sudo alternatives
> --config java"

I found my original update messages, and they said:

>   Updating   : 1:java-1.7.0-openjdk-headless-1.7.0.75-2.5.4.2.fc20.x86_64 
>
> 2/78 
> warning: 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/US_export_policy.jar
>  created as 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/US_export_policy.jar.rpmnew
> warning: 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/java.security
>  created as 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/java.security.rpmnew
> warning: 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/local_policy.jar
>  created as 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/local_policy.jar.rpmnew

>   Cleanup: 1:java-1.7.0-openjdk-headless-1.7.0.71-2.5.3.3.fc20.x86_64 
>   
> 61/78 
> warning: 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.3.fc20.x86_64/jre/lib/security/local_policy.jar
>  saved as 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.3.fc20.x86_64/jre/lib/security/local_policy.jar.rpmsave
> warning: 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.3.fc20.x86_64/jre/lib/security/US_export_policy.jar
>  saved as 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.3.fc20.x86_64/jre/lib/security/US_export_policy.jar.rpmsave

But, upon downgrade:

>   Installing : 1:java-1.7.0-openjdk-headless-1.7.0.60-2.4.3.0.fc20.x86_64 
> 
> 1/6 
>   Installing : 1:java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64  
> 
> 2/6 
>   Installing : 1:java-1.7.0-openjdk-devel-1.7.0.60-2.4.3.0.fc20.x86_64
> 
> 3/6 
>   Cleanup: 1:java-1.7.0-openjdk-devel-1.7.0.75-2.5.4.2.fc20.x86_64
> 
> 4/6 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/bin/javac has 
> not been configured as an alternative for javac
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64 has not been 
> configured as an alternative for java_sdk_openjdk
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64 has not been 
> configured as an alternative for java_sdk_1.7.0
>   Cleanup: 1:java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64  
> 
> 5/6 
>   Cleanup: 1:java-1.7.0-openjdk-headless-1.7.0.75-2.5.4.2.fc20.x86_64 
> 
> 6/6 
> warning: 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/local_policy.jar
>  saved as 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/local_policy.jar.rpmsave
> warning: 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/US_export_policy.jar
>  saved as 
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/lib/security/US_export_policy.jar.rpmsave
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre/bin/java has 
> not been configured as an alternative for java
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre has not been 
> configured as an alternative for jre_openjdk
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64/jre has not been 
> configured as an alternative for jre_1.7.0
> /usr/lib/jvm/jre-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64 has not been 
> configured as an alternative for jre_1.7.0_openjdk

I hadn't realized that I went from .71 to .75 to .60 ..

> But also check you env vars. If you have PATH, LD_LIBRARY_PATH and/or
> CLASSPATH changed they'll override alternatives selection.

nothing of interest in those VARs.

> []s, Fernando Lozano

-- 
Kevin J. Cummings
kjch...@verizon.net
cummi...@kjchome.homeip.net
cummi...@kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.linuxcounter.net/

Re: Latest Java-openjdk upgrade

2015-01-27 Thread Fernando Lozano
Hi,

> > Check which java, javac and etc are configured using alternatives and
> > check you env vars. Make sure you are using commands, jars and libraries
> > from the same installation.
> Interesting suggestion.  I did note that I have been having
> "alternative" warnings during previous updates of java openjdk, but
> things were working properly.  What other packages might conflict?  How
> do I check that the alternatives are set correctly?
I don't remeber exactly which ones, try at least java, javac and
libjavaplugin.so or something like that. For example, "sudo alternatives
--config java"

But also check you env vars. If you have PATH, LD_LIBRARY_PATH and/or
CLASSPATH changed they'll override alternatives selection.


[]s, Fernando Lozano

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Latest Java-openjdk upgrade

2015-01-27 Thread Kevin Cummings
On 01/27/2015 10:49 AM, Patrick O'Callaghan wrote:
> On Tue, 2015-01-27 at 12:09 -0200, Fernando Lozano wrote:
>> I do heavy Java development and never had issues with OpenJDK on
>> Fedora.
>> And I have OpenJDK on RHEL at many production sites. So don't bother
>> switching to Oracle Java. Instead try unistall and reinstall OpenJDK
>> Packages because it looks you have either a corrupted file.
>>
> 
> Use "rpm --verify" to check for corruption before just blindly removing
> and reinstalling packages.

If I upgrade again, and it fails, I will check this.  Thanks.

> poc

-- 
Kevin J. Cummings
kjch...@verizon.net
cummi...@kjchome.homeip.net
cummi...@kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.linuxcounter.net/)
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Latest Java-openjdk upgrade

2015-01-27 Thread Kevin Cummings
On 01/27/2015 09:09 AM, Fernando Lozano wrote:
> Hi,
> 
> I do heavy Java development and never had issues with OpenJDK on Fedora.
> And I have OpenJDK on RHEL at many production sites. So don't bother
> switching to Oracle Java. Instead try unistall and reinstall OpenJDK
> Packages because it looks you have either a corrupted file.
> 
> Other option is you have other Java installations besides the
> Fedora-provided OpenJDK and you PATH or CLASSPATH have entries for
> different installations. This happen a lot when you have both GCJ and
> OpenJDK or Oracle Java and OpenJDK. Maybe you left your browser install
> Java (from Oracle) instead of configuring the Fedora-provided Java plugin.
> 
> Check which java, javac and etc are configured using alternatives and
> check you env vars. Make sure you are using commands, jars and libraries
> from the same installation.

Interesting suggestion.  I did note that I have been having
"alternative" warnings during previous updates of java openjdk, but
things were working properly.  What other packages might conflict?  How
do I check that the alternatives are set correctly?

> []s, Fernando Lozano

-- 
Kevin J. Cummings
kjch...@verizon.net
cummi...@kjchome.homeip.net
cummi...@kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.linuxcounter.net/)
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Latest Java-openjdk upgrade

2015-01-27 Thread Kevin Cummings
On 01/27/2015 03:36 AM, Angelo Moreschini wrote:
> 
> Here a link that explains the */java.lang.ClassFormatError/*:
> http://craftingjava.blogspot.co.il/2012/07/reason-for-javalangclassformaterror.html
> 
> 
> "*/this error would be thrown when the java virtual machine attempts to
> read a class file and founds that the class file has been altered in
> such a way that it loses its integrity./*"
> 
> Here they are trying to say that */"if a class file has been modified in
> a complicated way  then this error would be thrown." /*
> 
> There may be two possible ways a class file can get corrupted as far i know.
> 
> 1.May be the compiler have some unresolved bugs in it.
> 2.The programmer may intentionally change the class file for some reasons.
> --
> 
> In your case this error does not seem to depend on your code.

Correct.  I was assuming that something was wrong at the system level.
Verified by the fact that after downgrading, everything started working
again.  Sounds like a bug to me.  I was wondering if anyone else saw the
same thing?

> So, I can suggest you to useOracle JDK instead OpenJDK,this because I
> had some problems using NetBeans and then I got that suggestion, that
> helped me.

!?!?!?!?

Note the solution I'm looking for.  If this is a bug in the openjdk
packages, I want to help then figure it out and fix it.

> Angelo

-- 
Kevin J. Cummings
kjch...@verizon.net
cummi...@kjchome.homeip.net
cummi...@kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.linuxcounter.net/)
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Latest Java-openjdk upgrade

2015-01-27 Thread Patrick O'Callaghan
On Tue, 2015-01-27 at 12:09 -0200, Fernando Lozano wrote:
> I do heavy Java development and never had issues with OpenJDK on
> Fedora.
> And I have OpenJDK on RHEL at many production sites. So don't bother
> switching to Oracle Java. Instead try unistall and reinstall OpenJDK
> Packages because it looks you have either a corrupted file.
> 

Use "rpm --verify" to check for corruption before just blindly removing
and reinstalling packages.

poc

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Latest Java-openjdk upgrade

2015-01-27 Thread Fernando Lozano
Hi,

I do heavy Java development and never had issues with OpenJDK on Fedora.
And I have OpenJDK on RHEL at many production sites. So don't bother
switching to Oracle Java. Instead try unistall and reinstall OpenJDK
Packages because it looks you have either a corrupted file.

Other option is you have other Java installations besides the
Fedora-provided OpenJDK and you PATH or CLASSPATH have entries for
different installations. This happen a lot when you have both GCJ and
OpenJDK or Oracle Java and OpenJDK. Maybe you left your browser install
Java (from Oracle) instead of configuring the Fedora-provided Java plugin.

Check which java, javac and etc are configured using alternatives and
check you env vars. Make sure you are using commands, jars and libraries
from the same installation.


[]s, Fernando Lozano

>
> Here a link that explains the */java.lang.ClassFormatError/*:
> http://craftingjava.blogspot.co.il/2012/07/reason-for-javalangclassformaterror.html
>
> 
> "*/this error would be thrown when the java virtual machine attempts
> to read a class file and founds that the class file has been altered
> in such a way that it loses its integrity./*"
>
> Here they are trying to say that */"if a class file has been modified
> in a complicated way  then this error would be thrown." /*
>
> There may be two possible ways a class file can get corrupted as far i
> know.
>
> 1.May be the compiler have some unresolved bugs in it.
> 2.The programmer may intentionally change the class file for some reasons.
> --
>
> In your case this error does not seem to depend on your code.
>
> So, I can suggest you to useOracle JDK instead OpenJDK,this because I
> had some problems using NetBeans and then I got that suggestion, that
> helped me.
>
>
> Angelo
>
> On Tue, Jan 27, 2015 at 1:35 AM, Kevin Cummings
> mailto:cummi...@kjchome.homeip.net>> wrote:
>
> I updated to java-1.7.0-openjdk.x86_64 1:1.7.0.75-2.5.4.2.fc20 today
> (along with the java-1.7.0-openjdk-headless and
> java-1.7.0-openjdk-devel
> packages).  After the upgrade, nothing java related would run. 
> (not the
> compiler, not the jar command, and I couldn't run any pre-built
> .jars.)
>  The error was:
>
> > Error occurred during initialization of VM
> > java/lang/ClassFormatError: Unknown constant tag 99 in class
> file java/lang/Class
>
> Downgrading back to java-1.7.0-openjdk.x86_64
> 1:1.7.0.60-2.4.3.0.fc20 et
> al fixed the problem.
>
> --
> Kevin J. Cummings
> kjch...@verizon.net 
> cummi...@kjchome.homeip.net 
> cummi...@kjc386.framingham.ma.us
> 
> Registered Linux User #1232 (http://www.linuxcounter.net/)
> --
> users mailing list
> users@lists.fedoraproject.org 
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>
>
>
>

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Latest Java-openjdk upgrade

2015-01-27 Thread Angelo Moreschini
Here a link that explains the *java.lang.ClassFormatError*:
http://craftingjava.blogspot.co.il/2012/07/reason-for-javalangclassformaterror.html


"*this error would be thrown when the java virtual machine attempts to read
a class file and founds that the class file has been altered in such a way
that it loses its integrity.*"

Here they are trying to say that *"if a class file has been modified in a
complicated way  then this error would be thrown." *

 There may be two possible ways a class file can get corrupted as far i
know.

 1.May be the compiler have some unresolved bugs in it.
2.The programmer may intentionally change the class file for some reasons.
--

In your case this error does not seem to depend on your code.

So, I can suggest you to use Oracle JDK instead OpenJDK, this because I had
some problems using NetBeans and then I got that suggestion, that helped me.


Angelo

On Tue, Jan 27, 2015 at 1:35 AM, Kevin Cummings  wrote:

> I updated to java-1.7.0-openjdk.x86_64 1:1.7.0.75-2.5.4.2.fc20 today
> (along with the java-1.7.0-openjdk-headless and java-1.7.0-openjdk-devel
> packages).  After the upgrade, nothing java related would run.  (not the
> compiler, not the jar command, and I couldn't run any pre-built .jars.)
>  The error was:
>
> > Error occurred during initialization of VM
> > java/lang/ClassFormatError: Unknown constant tag 99 in class file
> java/lang/Class
>
> Downgrading back to java-1.7.0-openjdk.x86_64 1:1.7.0.60-2.4.3.0.fc20 et
> al fixed the problem.
>
> --
> Kevin J. Cummings
> kjch...@verizon.net
> cummi...@kjchome.homeip.net
> cummi...@kjc386.framingham.ma.us
> Registered Linux User #1232 (http://www.linuxcounter.net/)
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org