Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1058394 - java.lang.ClassCastException when configuring JSSE in the CR3 installer - installer misinterprets protocols other than http://
Summary: java.lang.ClassCastException when configuring JSSE in the CR3 installer - ins...
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Installer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: GA
: 6.1.0
Assignee: Thomas Hauser
QA Contact: Len DiMaggio
Depends On:
TreeView+ depends on / blocked
Reported: 2014-01-27 17:30 UTC by Filip Elias
Modified: 2016-02-10 08:52 UTC (History)
3 users (show)

Doc Type: Bug Fix
Doc Text:
Users reported a java.lang.ClassCastException when configuring JSSE using the JBoss Data Virtualization installer. The keystore URL was not being handled correctly. This has been resolved by a code changeso users will no longer encounter this exception.
Clone Of:
DV 6 CR3
Last Closed: 2016-02-10 08:52:36 UTC
Type: Bug

Attachments (Terms of Use)

Description Filip Elias 2014-01-27 17:30:28 UTC
Description of problem:

Installer freezes and throws ClassCastException when configuring JSSE.

Steps to reproduce:
1. Start installer
2. Check Add a security-domain in the Configuration window
3. Check Add authentication element
4. Click next
5. Check Add jsse element
6. Add keystore element
7. Fill the attributes and add file url as a Keystore URL
8. Click next

Installer freezes
Exception is thrown: 
Exception in thread "Thread-9" java.lang.ClassCastException: cannot be cast to
	at com.redhat.installer.util.KeystoreUtils.isValidAccessibleUrl(
	at com.redhat.installer.util.KeystoreUtils.isValidKeystore(
	at com.redhat.installer.validator.SecurityDomainValidator.validateData(
	at com.izforge.izpack.installer.IzPanel.validatePanel(
	at com.izforge.izpack.installer.IzPanel.panelValidated(
	at com.izforge.izpack.installer.InstallerFrame.navigateNext(
	at com.izforge.izpack.installer.InstallerFrame.navigateNext(
	at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.navigate(
	at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.access$100(
	at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$

It will freeze when I add these keystore URLs:

With this keystore URL installer works correctly:

Comment 1 Len DiMaggio 2014-01-27 17:44:24 UTC
Workaround = user can simply enter the file's dir path - not as a file:// URL

Comment 2 Len DiMaggio 2014-01-27 18:12:44 UTC
<thauser> ldimaggi_wfh, confirmed; ftp has a similar issue.

Comment 3 Thomas Hauser 2014-02-19 18:44:40 UTC
This is fixed in later builds.

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