You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Robert Lazarski (Jira)" <ji...@apache.org> on 2025/06/25 17:57:00 UTC

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

    [ https://issues.apache.org/jira/browse/AXIS2-6095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17986214#comment-17986214 ] 

Robert Lazarski commented on AXIS2-6095:
----------------------------------------

Do you think you could prepare a GitHub PR for a fix? 

We ask for community support for fixes as much as possible - though especially on things like this that we cannot easily test ourselves. 

> 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org