Bug 1211709 - Errors during installation and config when openjdk is NOT default in an environment.
Summary: Errors during installation and config when openjdk is NOT default in an envir...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-reports
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Yedidyah Bar David
QA Contact: Gonza
URL:
Whiteboard:
Depends On:
Blocks: 1213784
TreeView+ depends on / blocked
 
Reported: 2015-04-14 16:13 UTC by Anitha Udgiri
Modified: 2019-05-20 11:45 UTC (History)
13 users (show)

Fixed In Version: rhevm-reports-3.6.0-5.el6ev.noarch.rpm
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1213784 (view as bug list)
Environment:
Last Closed: 2016-03-09 21:18:46 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:
ylavi: Triaged+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0425 0 normal SHIPPED_LIVE rhevm-reports bug fix and enhancement update 2016-03-10 01:21:14 UTC
oVirt gerrit 40070 0 master MERGED packaging: setup: Prepend $JAVA_HOME/bin to path Never
oVirt gerrit 40075 0 ovirt-engine-reports-3.5 MERGED packaging: setup: Prepend $JAVA_HOME/bin to path Never

Description Anitha Udgiri 2015-04-14 16:13:46 UTC
Description of problem:
 Users get an unfriendly user error when an environment where RHEV is being installed has any other jdk set as default other than openjdk.
This does not give any idea on why the failures occur during install.

Raising this BZ for a good solution to this : either provide a proper error for user to get back and change the default or any way where RHEV can use the version required blocking the 'other' jdk altogether.

Comment 1 Yedidyah Bar David 2015-04-15 05:35:44 UTC
This bug refers to jasperreports. The engine already uses the correct jdk if available.

Comment 2 Shirly Radco 2015-04-16 09:35:22 UTC
Please provide steps to reproduce this issue,
attach the logs and error message you encounter.

Comment 5 Yedidyah Bar David 2015-04-21 07:38:28 UTC
Now reproduced by setting default java to be 1.5 using 'update-alternatives --config java'. engine-setup fails with:

2015-04-21 09:11:32 DEBUG otopi.plugins.ovirt_engine_setup.ovirt_engine_reports.jasper.deploy plugin.execute:866 execute-output: ('./js-import.sh', '--input-dir', '/tmp/tmpO82zKz/ovirt-reports', '--update') stderr:
Exception in thread "main" java.lang.NoSuchMethodError: method java.util.regex.Pattern.quote with signature (Ljava.lang.String;)Ljava.lang.String; was not found.
   at org.springframework.util.AntPathStringMatcher.quote(AntPathStringMatcher.java:95)
   at org.springframework.util.AntPathStringMatcher.createPattern(AntPathStringMatcher.java:87)
   at org.springframework.util.AntPathStringMatcher.<init>(AntPathStringMatcher.java:54)
   at org.springframework.util.AntPathMatcher.matchStrings(AntPathMatcher.java:219)
   at org.springframework.util.AntPathMatcher.doMatch(AntPathMatcher.java:105)
   at org.springframework.util.AntPathMatcher.match(AntPathMatcher.java:68)
   at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:635)
   at org.springframework.core.io.support.PathMatchingResourcePatternResolver.retrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597)
   at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindMatchingFileSystemResources(PathMatchingResourcePatternResolver.java:552)
   at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources(PathMatchingResourcePatternResolver.java:535)
   at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:347)
   at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:279)
   at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1245)
   at org.springframework.context.support.GenericApplicationContext.getResources(GenericApplicationContext.java:226)
   at com.jaspersoft.jasperserver.export.BaseExportImportCommand.createSpringContext(BaseExportImportCommand.java:121)
   at com.jaspersoft.jasperserver.export.BaseExportImportCommand.process(BaseExportImportCommand.java:82)
   at com.jaspersoft.jasperserver.export.ImportCommand.main(ImportCommand.java:43)

Workaround: run 'update-alternatives --config java' and choose openjdk 1.7.

Anitha: Do we want this in 3.5.z too? It affects also 3.4 - if this is the first such failure, it's probably not that common.

Comment 10 Gonza 2015-06-04 14:27:13 UTC
Verified with:
ovirt-engine-reports-3.6.0-0.0.master.20150507091743.20150507091525.git8a4d6f4.el6.noarch

# java -version
java version "1.5.0"

Execution of setup completed successfully.

Comment 12 errata-xmlrpc 2016-03-09 21:18:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0425.html


Note You need to log in before you can comment on or make changes to this bug.