Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1053622

Summary: Installer fails to configure maven repositories when it configures default maven settings.xml
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Filip Elias <felias>
Component: InstallerAssignee: Miles Tjandrawidjaja <mtjandra>
Status: CLOSED CURRENTRELEASE QA Contact: Len DiMaggio <ldimaggi>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, fnguyen, mtjandra, thauser, vhalbert
Target Milestone: CR2   
Target Release: 6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
DV 6 CR2
Last Closed: 2014-03-10 18:36:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Installation log
none
Default maven settings.xml
none
Resulting xml file none

Description Filip Elias 2014-01-15 14:12:26 UTC
Created attachment 850532 [details]
Installation log

Description of problem:

Installer fails to configure maven repositories when it configures default maven settings.xml. 

Default settings.xml doesn't contain activeProfiles element which causes NPE exception during installation.

Steps to reproduce:

1. Start installer 
2. Select "Specify the path to a valid settings.xml file, or...."
3. Select default maven settings.xml (it is in the attachment)
4. Finish the installation

Installation log is in the attachment.

Exception: java.lang.NullPointerException
	at com.redhat.installer.settings.MavenSettingsTransformer.readAndModifySettingsXml(MavenSettingsTransformer.java:152)
	at com.redhat.installer.settings.MavenSettingsTransformer.run(MavenSettingsTransformer.java:83)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.izforge.izpack.installer.ProcessPanelWorker$ExecutableClass.run(ProcessPanelWorker.java:765)
	at com.izforge.izpack.installer.ProcessPanelWorker$ProcessingJob.run(ProcessPanelWorker.java:516)
	at com.izforge.izpack.installer.ProcessPanelWorker.runJob(ProcessPanelWorker.java:462)
	at com.izforge.izpack.installer.ProcessPanelWorker.run(ProcessPanelWorker.java:388)
	at java.lang.Thread.run(Thread.java:724)

Comment 1 Filip Elias 2014-01-15 14:14:26 UTC
Created attachment 850533 [details]
Default maven settings.xml

Comment 2 Miles Tjandrawidjaja 2014-01-15 17:20:04 UTC
Created attachment 850596 [details]
Resulting xml file

Case is now handled properly when activeProfile tags are missing.
See attachement for result.

http://git.app.eng.bos.redhat.com/installer-commons.git/commit/?h=6.1.1.ip&id=6984e2996b860141a0a45874b5309c00638f28d0

Comment 3 belong 2014-01-23 00:19:57 UTC
Assuming this will be fixed before GA - setting requires_doc_text- accordingly.