[jira] [Commented] (AXIS2-6095) Axis2's IDL parser (Corba Module) gives fault on valid comment

Brănaci Șerban-Mihai (Jira) <[email protected]> Fri, 8 May 2026 12:25:00 +0000 (UTC)
Newsgroups gmane.text.xml.axis.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/AXIS2-6095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18079463#comment-18079463 ] 

Brănaci Șerban-Mihai commented on AXIS2-6095:
---------------------------------------------

Hello again, and sorry for the lack of action on my part on this issue.

Thank you for the heads-up. We are indeed actively using the CORBA module in our project (Mitel OpenScape4000) and do not have any immediate plans to migrate away from it.

I will for sure keep interacting with the Axis2 project whenever needed.

Thank you very much for all your support!

> Axis2's IDL parser (Corba Module) gives fault on valid comment
> --------------------------------------------------------------
>
>                 Key: AXIS2-6095
>                 URL: https://issues.apache.org/jira/browse/AXIS2-6095
>             Project: Axis2
>          Issue Type: Bug
>          Components: corba
>            Reporter: Brănaci Șerban-Mihai
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> Axis2's IDL parser (Corba Module) gives fault on valid comment
> In our IDLs we have some comments with the following syntax:
> {code:java}
> /**
>  * some
>  * comment
>  * here
> **/{code}
> Of course, this is valid comment syntax, however it triggers parser errors:
> {code:java}
> ERROR [2025-06-06 16:04:17,494] [org.apache.axis2.corba.deployer.CorbaDeployer] - Error while deploying null
> org.apache.axis2.deployment.DeploymentException: unexpected char: '/'
>         at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:328) ~[axis2-corba-2.0.0.jar:2.0.0]
>         at org.apache.axis2.corba.deployer.CorbaDeployer.processService(CorbaDeployer.java:129) ~[axis2-corba-2.0.0.jar:2.0.0]
>         at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(CorbaDeployer.java:97) [axis2-corba-2.0.0.jar:2.0.0]
>         at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:148) [axis2-kernel-2.0.0.jar:2.0.0]
>  <cut some lines here>
> Caused by: org.apache.axis2.corba.exceptions.IDLProcessorException: unexpected char: '/'
>         at org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:52) ~[axis2-corba-2.0.0.jar:2.0.0]
>         at org.apache.axis2.corba.receivers.CorbaUtil.getIDL(CorbaUtil.java:157) ~[axis2-corba-2.0.0.jar:2.0.0]
>         at org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(CorbaDeployer.java:438) ~[axis2-corba-2.0.0.jar:2.0.0]
>         at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:299) ~[axis2-corba-2.0.0.jar:2.0.0]
>         ... 56 more
> Caused by: antlr.TokenStreamRecognitionException: unexpected char: '/'
>         at org.apache.axis2.corba.idl.parser.IDLLexer.nextToken(IDLLexer.java:366) ~[axis2-corba-2.0.0.jar:2.0.0]
>         at antlr.TokenBuffer.fill(TokenBuffer.java:69) ~[antlr-2.7.7.jar:?]
>         at antlr.TokenBuffer.LA(TokenBuffer.java:80) ~[antlr-2.7.7.jar:?]
>         at antlr.LLkParser.LA(LLkParser.java:52) ~[antlr-2.7.7.jar:?]
>         at org.apache.axis2.corba.idl.parser.IDLParser.definition_list(IDLParser.java:909) ~[axis2-corba-2.0.0.jar:2.0.0]{code}
> After some analyzing, it seems that the parser does not accept multiple star symbols *"\*"* before the comment-terminating sequence *"\*/"* - so *"\*/"* is valid, but *"\*\*/"* is not.
> Note: We are using Axis2' Corba module to migrate our Corba services away from using Java Applets and towards web services. Even if this is not the intended use of Axis2, it seems to be the best open-source option for this type of migration.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)