Bug 535718 (RHQ-2385) - SCHWERWIEGEND: Target Unreachable, 'baseurl' returned null on 'java.util.LinkedHashMap'
Summary: SCHWERWIEGEND: Target Unreachable, 'baseurl' returned null on 'java.util.Link...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: RHQ-2385
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 1.3pre
Hardware: All
OS: All
high
medium
Target Milestone: ---
: ---
Assignee: Heiko W. Rupp
QA Contact: Sunil Kondkar
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: rhq_triage jon-plugin-dev
TreeView+ depends on / blocked
 
Reported: 2009-08-26 08:45 UTC by Heiko W. Rupp
Modified: 2010-08-12 16:58 UTC (History)
1 user (show)

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
QA8258
Last Closed: 2010-08-12 16:58:57 UTC
Embargoed:


Attachments (Terms of Use)
rhq-2385.patch (4.30 KB, text/plain)
2009-08-26 14:52 UTC, Heiko W. Rupp
no flags Details
DemoServer-plugin-A.jar (5.95 KB, application/java-archive)
2010-05-25 19:34 UTC, Heiko W. Rupp
no flags Details
DemoServer-plugin-B.jar (5.95 KB, application/java-archive)
2010-05-25 19:35 UTC, Heiko W. Rupp
no flags Details
Screenshot of the issue (25.10 KB, image/png)
2010-05-25 19:40 UTC, Heiko W. Rupp
no flags Details
screenshot for message_535718 (78.92 KB, image/png)
2010-06-01 10:37 UTC, Sunil Kondkar
no flags Details

Description Heiko W. Rupp 2009-08-26 08:45:00 UTC
When manually adding a resource whose connection properties have changed since an earlier plugin version, I get

SCHWERWIEGEND: Target Unreachable, 'baseurl' returned null on 'java.util.LinkedHashMap'

in the server log and UI and the new resource can not be added.

We have seen that in the past with the creation in war files in RHQ-1555. Solution there was to put the managed bean into session scope and to correctly clean up etc.

Comment 1 Heiko W. Rupp 2009-08-26 13:33:25 UTC
A patch for this

Comment 2 Heiko W. Rupp 2009-08-26 14:52:13 UTC
Updated version of the patch that also handles the back button correctly.

Comment 3 Red Hat Bugzilla 2009-11-10 21:03:21 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2385
Imported an attachment (id=368784)
This bug is related to RHQ-1555


Comment 4 wes hayutin 2010-02-16 16:58:19 UTC
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

keyword:
new = Tracking + FutureFeature + SubBug

Comment 5 wes hayutin 2010-02-16 17:03:12 UTC
making sure we're not missing any bugs in rhq_triage

Comment 6 Charles Crouch 2010-05-18 03:56:28 UTC
Heiko, can you add reproduction steps to this bug so QA can test and then apply your patch.

Comment 7 Heiko W. Rupp 2010-05-25 19:34:27 UTC
Created attachment 416488 [details]
DemoServer-plugin-A.jar

Comment 8 Heiko W. Rupp 2010-05-25 19:35:36 UTC
Created attachment 416489 [details]
DemoServer-plugin-B.jar

Second version of plugin

Comment 9 Heiko W. Rupp 2010-05-25 19:36:06 UTC
Comment on attachment 416488 [details]
DemoServer-plugin-A.jar

First version of plugin

Comment 10 Heiko W. Rupp 2010-05-25 19:40:03 UTC
How to reproduce:

Deploy first version of attached plugin that has

<plugin-configuration>
  <c:simple-property name="one"  ... />
  <c:simple-property name="two" ... />
</plugin-configuration>

Then go to the platform, try to manual add the resource "DemoServer". 
This shows the two properties. Click on ok. (actually this will result in an error, but this does not matter here).

Then deploy 2nd version of attached plugin that has

<plugin-configuration>
  <c:simple-property name="two"  ... />
  <c:simple-property name="three" ... />
</plugin-configuration>

Again, go to the platform, manually add the resource "DemoServer". This shows the new 2 properties.
Click on ok and the "Target Unreachable, 'three' returned null on 'java.util.LinkedHashMap'" issue will show up.

Comment 11 Heiko W. Rupp 2010-05-25 19:40:33 UTC
Created attachment 416490 [details]
Screenshot of the issue

Comment 12 Heiko W. Rupp 2010-05-25 19:41:30 UTC
setting to ON_QA for verification of the original issue as requested in comment 6

Comment 13 Sunil Kondkar 2010-06-01 10:37:14 UTC
Created attachment 418579 [details]
screenshot for message_535718

Comment 14 Sunil Kondkar 2010-06-01 10:40:26 UTC
Verified on jon build#181 (Revision: 10621)

Deployed the first version of attached plugin and then second. Manually added the resource to platform. Clicking OK button displays the message "Target Unreachable, 'three' returned null on 'java.util.LinkedHashMap'"

Please refer the attached screenshot.

Comment 15 Heiko W. Rupp 2010-06-15 09:25:34 UTC
bea23b1 on release-3.0.0 branch

Comment 16 Sunil Kondkar 2010-06-23 10:07:20 UTC
Verified on JON 2.4 GA_QA build

Deployed the first version of attached plugin and then second. Manually added
the resource to platform. 
Entered values in properties 'Three' and 'Two'. Clicking OK button does not display the error 'SCHWERWIEGEND: Target Unreachable, 'baseurl' returned null on
'java.util.LinkedHashMap' in server log and in UI.

Comment 17 Corey Welton 2010-08-12 16:58:57 UTC
Mass-closure of verified bugs against JON.


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