My Oracle Support Banner

OSB Not Recognize Difference Between Dash(-) And Underscore(_) (Doc ID 2690604.1)

Last updated on MAY 15, 2023

Applies to:

Oracle Service Bus - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.4.0 version, OSB Core Functionality

When attempting to deploy an OSB project that contains an HTTP REST adapter with 2 parameters (template and query) for fields :
 party_number(query)
 party-number(template),
the following error occurs.

ERROR
-----------------------
[11:08:03 AM] ---- Deployment started. ----
[11:08:03 AM] Target platform is Standard Java EE.
[11:08:15 AM] Deployment cancelled.
[11:08:15 AM] ---- Deployment incomplete ----.
[11:08:15 AM] Compile failed: /_OSB_REST_Resource_5297899404071614906.java:26: error: variable party_number is already defined in method Parties_Get(String,String,AsyncResponse)
  public void Parties_Get(@PathParam("party-number") String party_number, @QueryParam("party_number") String party_number, @Suspended AsyncResponse _osb_async_resp) throws Exception {
  ^
1 error

[11:08:15 AM] Activation of publish session failed for:ServiceBusApplicationReview

Compile failed: /_OSB_REST_Resource_5297899404071614906.java:26: error: variable party_number is already defined in method Parties_Get(String,String,AsyncResponse)
  public void Parties_Get(@PathParam("party-number") String party_number, @QueryParam("party_number") String party_number, @Suspended AsyncResponse _osb_async_resp) throws Exception {
  ^
1 error
[11:08:15 AM] Compile failed: /_OSB_REST_Resource_5297899404071614906.java:26: error: variable party_number is already defined in method Parties_Get(String,String,AsyncResponse)
  public void Parties_Get(@PathParam("party-number") String party_number, @QueryParam("party_number") String party_number, @Suspended AsyncResponse _osb_async_resp) throws Exception {
  ^
1 error


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. In jDeveloper create a simple project that contains an HTTP REST adapter with 2 parameters (template and query) for fields :
 party_number(query)
 party-number(template),
2. Deploy the project
3. The issue occurs

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot complete Systems Integration Testing (SIT)

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.