Error in Lab Management License page after changing port for JBOSS

If you get the following error in the Lab Management License page after changing port for JBOSS from default 8080 on the ALM machine to port 80:

"The requested item cannot be found. It has been deleted from the system. Refresh the previous page to view updated information."

And if this error occurs in the “Performance Server General Settings page” as well: (Tools –> Performance Server General Settings)

This issue is due to the port change for the JBOSS on ALM server. The error log from the PC server shows the following : (<PC>\\ orchidtmp\orchidtmp\LTLogger\w3wp\log.txt)

2012-03-07 23:50:12,944 [5084] [6] ERROR HP.PC.Rest.RestProxy – An exception occurred on the REST server:PCRemoteException output START

Message:

Could not locate an entityNot Found

StatusCode:

NotFound

Stacktrace:

Printing data members start:

[client_requiest_info]:The requested uri was: http://<ALM_Server>:8080/qcbin/rest/domains/DEFAULT/projects/LAB_PROJECT/labtasks/1004,the method was: GET,the content type was: application/xml

Printing data members end:

PCRemoteException output END

[Context: 7130b975-60a0-4dea-9e8e-a43cfa2592ba] [FullContext: QCServer:http://<ALM_Server&gt;:8080/qcbin/ UserName:_pc_system_ Domain:DEFAULT Project:LAB_PROJECT]

2012-03-07 23:50:12,960 [5084] [6] ERROR HP.PC.ServiceModel.Errors.ErrorHandler – PCRemoteException output START

Message:

Could not locate an entityNot Found

StatusCode:

NotFound

Stacktrace:

at HP.PC.Rest.RestProxy.ExecuteRequest(String httpMethod, String body, HttpWebRequest request)

at HP.PC.Rest.ResourceProxy`1.GetResource(String httpMethod, String body, HttpWebRequest request)

at HP.PC.Rest.ResourceProxy`1.GetResource(HttpWebRequest request)

at HP.PC.Rest.ResourceProxy`1.GetResource(Int32 id)

at HP.PC.BL.QC.Api.EntityBL`2.Get(Int32 id)

at HP.PC.TaskManagement.TaskManager.PerformOperation(Int32 opCode, Object listParams)

at HP.PC.TaskManagement.TaskManager.Operate(Int32 opCode)

at HP.PC.TaskManagement.Services.TaskManagementService.Operate(Int32 opCode)

at SyncInvokeOperate(Object , Object[] , Object[] )

at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

at HP.PC.ServiceModel.Interceptors.OperationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Printing data members start:

[client_requiest_info]:The requested uri was: http://<ALM_Server>:8080/qcbin/rest/domains/DEFAULT/projects/LAB_PROJECT/labtasks/1004,the method was: GET,the content type was: application/xml

Printing data members end:

PCRemoteException output END

[Context: 7130b975-60a0-4dea-9e8e-a43cfa2592ba] [FullContext: QCServer:http://<ALM_Server&gt;:8080/qcbin/ UserName:_pc_system_ Domain:DEFAULT Project:LAB_PROJECT]

The reason for this error to occur is because the database still has the incorrect URL for external and internal URL.

As seen in the error, the Server is requesting the xml file of the license page from the following URL:

The requested url was:

http://<ALM_Server>:8080/qcbin/rest/domains/DEFAULT/projects/LAB_PROJECT/labtasks/1004

the method was: GET, the content type was: application/xml

However instead of 8080, the port used is 80. Therefore the URL should be changed to

http://<ALM_Server>/qcbin/rest/domains/DEFAULT/projects/LAB_PROJECT/labtasks/1004

To change the configuration for the QC server URL for ALM/PC,

Go to Site Administration – Lab Management

Click on the LAB_PROJECT on the left plane.

Click on LAB_PC_SETTINGS.

The two settings for “QC_INTERNAL_URL” and “QC_EXTERNAL_URL” should point to the correct URL

http://<ALM_Server>/qcbin/

However, they were http://<ALM_Server>:8080/qcbin/ and this is not correct.

To change these two settings, we need to do it directly in the database for ALM – SQL Server or Oracle.

Therefore login the DB server and Open SQL server Management Studio, and find the DB named “default_lab_project_db0” and run the SQL below (where ALM Server is pwcapp23)

UPDATE [default_lab_project_db0].[td].[LAB_PC_SETTINGS]

SET [PC_SET_VALUE] = ‘http://pwcapp23/qcbin/

WHERE [PC_SET_ID]=1005

GO

UPDATE [default_lab_project_db0].[td].[LAB_PC_SETTINGS]

SET [PC_SET_VALUE] = ‘http://pwcapp23/qcbin/

WHERE [PC_SET_ID]=1006

GO

Alternatively, right click on the table TD.LAB_PC_SETTINGS in “default_lab_project_db” and select the option to “Edit the first 200 rows”. Change the values for the external and internal URLs.

After the database change, check in the Site Administration – Lab Management to see if the setting are changed, and then restart the ALM service to make the change take effect.

Now you should be able to see the License Page and the Performance Server General Settings Page.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s