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 "Landws Grove (JIRA)" <ji...@apache.org> on 2009/06/17 07:40:07 UTC
[jira] Created: (AXIS2-4385) InvalidIDLException: Unsupported IDL
token const
InvalidIDLException: Unsupported IDL token const
------------------------------------------------
Key: AXIS2-4385
URL: https://issues.apache.org/jira/browse/AXIS2-4385
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: corba
Affects Versions: 1.5
Environment: axis2 release 1.5
Reporter: Landws Grove
IDL file is:
//File: DAFDescriptions.idl
#ifndef _DAF_DESCRIPTIONS_IDL_
#define _DAF_DESCRIPTIONS_IDL_
#include "DAFIdentifiers.idl"
#include "TimeBase.idl"
#pragma prefix "omg.org"
module DAFDescriptions
{
typedef DAFIdentifiers::ResourceID ResourceID;
typedef DAFIdentifiers::URI URI;
typedef TimeBase::TimeT DateTime;
struct Complex
{
double real;
double imaginary;
};
typedef string FileExtension;
struct Blob
{
any blob_data;
FileExtension blob_data_type;
};
typedef ResourceID PropertyID;
typedef short SimpleValueType;
const SimpleValueType RESOURCE_TYPE = 1;
const SimpleValueType URI_TYPE = 2;
const SimpleValueType STRING_TYPE = 3;
const SimpleValueType BOOLEAN_TYPE = 4;
const SimpleValueType INT_TYPE = 5;
const SimpleValueType UNSIGNED_TYPE = 6;
const SimpleValueType DOUBLE_TYPE = 7;
const SimpleValueType COMPLEX_TYPE = 8;
const SimpleValueType DATE_TIME_TYPE = 9;
const SimpleValueType ULONG_LONG_TYPE = 10;
const SimpleValueType BLOB_TYPE = 11;
const SimpleValueType PROPERTYID_TYPE = 12;
const SimpleValueType RESOURCES_TYPE = 101;
const SimpleValueType URIS_TYPE = 102;
const SimpleValueType STRINGS_TYPE = 103;
const SimpleValueType BOOLEANS_TYPE = 104;
const SimpleValueType INTS_TYPE = 105;
const SimpleValueType UNSIGNEDS_TYPE = 106;
const SimpleValueType DOUBLES_TYPE = 107;
const SimpleValueType COMPLEXES_TYPE = 108;
const SimpleValueType DATE_TIMES_TYPE = 109;
const SimpleValueType ULONG_LONGS_TYPE = 110;
const SimpleValueType BLOBS_TYPE = 111;
const SimpleValueType PROPERTYIDS_TYPE = 112;
union SimpleValue switch( SimpleValueType )
{
case RESOURCE_TYPE : ResourceID resource_value;
case URI_TYPE : URI uri_value;
case STRING_TYPE : string string_value;
case BOOLEAN_TYPE : boolean boolean_value;
case INT_TYPE : long int_value;
case UNSIGNED_TYPE : unsigned long unsigned_value;
case DOUBLE_TYPE : double double_value;
case COMPLEX_TYPE : Complex complex_value;
case DATE_TIME_TYPE : DateTime date_time_value;
case ULONG_LONG_TYPE : unsigned long long ulong_long_value;
case BLOB_TYPE : Blob blob_value;
case PROPERTYID_TYPE : PropertyID propertyid_value;
case RESOURCES_TYPE : sequence<ResourceID> resource_values;
case URIS_TYPE : sequence<URI> uri_values;
case STRINGS_TYPE : sequence<string> string_values;
case BOOLEANS_TYPE : sequence<boolean> boolean_values;
case INTS_TYPE : sequence<long> int_values;
case UNSIGNEDS_TYPE : sequence<unsigned long> unsigned_values;
case DOUBLES_TYPE : sequence<double> double_values;
case COMPLEXES_TYPE : sequence<Complex> complex_values;
case DATE_TIMES_TYPE: sequence<DateTime> date_time_values;
case ULONG_LONGS_TYPE : sequence<unsigned long long> ulong_long_values;
case PROPERTYIDS_TYPE : sequence<PropertyID> propertyid_values;
};
struct PropertyValue
{
PropertyID property;
SimpleValue value;
};
typedef sequence<PropertyValue> PropertyValueSequence;
struct ResourceDescription
{
ResourceID id;
PropertyValueSequence values;
};
typedef sequence<ResourceDescription> ResourceDescriptionSequence;
interface ResourceDescriptionIterator
{
unsigned long max_left();
boolean next_n(in unsigned long n,out ResourceDescriptionSequence descriptions );
void destroy();
};
};
#endif // _DAF_DESCRIPTIONS_IDL_
Exception throws:
org.apache.axis2.deployment.DeploymentException: Unsupported IDL token const
at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:329)
at org.apache.axis2.corba.deployer.CorbaDeployer.processService(CorbaDeployer.java:128)
at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(CorbaDeployer.java:97)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:663)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:338)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:667)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at net.jite.uib.console.WebServer.start(WebServer.java:32)
at net.jite.uib.boot.Bootstrap$1.run(Bootstrap.java:121)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.axis2.corba.exceptions.IDLProcessorException: Unsupported IDL token const
at org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:52)
at org.apache.axis2.corba.receivers.CorbaUtil.getIDL(CorbaUtil.java:185)
at org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(CorbaDeployer.java:439)
at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:300)
... 32 more
Caused by: org.apache.axis2.corba.exceptions.InvalidIDLException: Unsupported IDL token const
at org.apache.axis2.corba.idl.parser.IDLVisitor.visit(IDLVisitor.java:116)
at org.apache.axis2.corba.idl.parser.IDLVisitor.visit(IDLVisitor.java:80)
at org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:49)
... 35 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (AXIS2-4385) InvalidIDLException: Unsupported IDL
token const
Posted by "Landws Grove (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Landws Grove reopened AXIS2-4385:
---------------------------------
i downloaded the last release 1.5.1 and try this problem again, i got the same response like
"Unsupported IDL token"
so, i track the step on runtime, i find the IDLVisitor class which packaged "org.apache.axis2.corba.idl.parser" crash when
default: {
throw new InvalidIDLException("Unsupported IDL token " + node);
}
begin with line 116 within "visit" method
could you/team have little time to try try my idl what is post in issue content ? thank you very much
regard, thankds again
> InvalidIDLException: Unsupported IDL token const
> ------------------------------------------------
>
> Key: AXIS2-4385
> URL: https://issues.apache.org/jira/browse/AXIS2-4385
> Project: Axis2
> Issue Type: Bug
> Components: corba
> Affects Versions: 1.5
> Environment: axis2 release 1.5
> Reporter: Landws Grove
> Assignee: Eranga Jayasundera
> Fix For: 1.6
>
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> IDL file is:
> //File: DAFDescriptions.idl
> #ifndef _DAF_DESCRIPTIONS_IDL_
> #define _DAF_DESCRIPTIONS_IDL_
> #include "DAFIdentifiers.idl"
> #include "TimeBase.idl"
> #pragma prefix "omg.org"
> module DAFDescriptions
> {
> typedef DAFIdentifiers::ResourceID ResourceID;
> typedef DAFIdentifiers::URI URI;
> typedef TimeBase::TimeT DateTime;
> struct Complex
> {
> double real;
> double imaginary;
> };
> typedef string FileExtension;
> struct Blob
> {
> any blob_data;
> FileExtension blob_data_type;
> };
> typedef ResourceID PropertyID;
> typedef short SimpleValueType;
> const SimpleValueType RESOURCE_TYPE = 1;
> const SimpleValueType URI_TYPE = 2;
> const SimpleValueType STRING_TYPE = 3;
> const SimpleValueType BOOLEAN_TYPE = 4;
> const SimpleValueType INT_TYPE = 5;
> const SimpleValueType UNSIGNED_TYPE = 6;
> const SimpleValueType DOUBLE_TYPE = 7;
> const SimpleValueType COMPLEX_TYPE = 8;
> const SimpleValueType DATE_TIME_TYPE = 9;
> const SimpleValueType ULONG_LONG_TYPE = 10;
> const SimpleValueType BLOB_TYPE = 11;
> const SimpleValueType PROPERTYID_TYPE = 12;
> const SimpleValueType RESOURCES_TYPE = 101;
> const SimpleValueType URIS_TYPE = 102;
> const SimpleValueType STRINGS_TYPE = 103;
> const SimpleValueType BOOLEANS_TYPE = 104;
> const SimpleValueType INTS_TYPE = 105;
> const SimpleValueType UNSIGNEDS_TYPE = 106;
> const SimpleValueType DOUBLES_TYPE = 107;
> const SimpleValueType COMPLEXES_TYPE = 108;
> const SimpleValueType DATE_TIMES_TYPE = 109;
> const SimpleValueType ULONG_LONGS_TYPE = 110;
> const SimpleValueType BLOBS_TYPE = 111;
> const SimpleValueType PROPERTYIDS_TYPE = 112;
> union SimpleValue switch( SimpleValueType )
> {
> case RESOURCE_TYPE : ResourceID resource_value;
> case URI_TYPE : URI uri_value;
> case STRING_TYPE : string string_value;
> case BOOLEAN_TYPE : boolean boolean_value;
> case INT_TYPE : long int_value;
> case UNSIGNED_TYPE : unsigned long unsigned_value;
> case DOUBLE_TYPE : double double_value;
> case COMPLEX_TYPE : Complex complex_value;
> case DATE_TIME_TYPE : DateTime date_time_value;
> case ULONG_LONG_TYPE : unsigned long long ulong_long_value;
> case BLOB_TYPE : Blob blob_value;
> case PROPERTYID_TYPE : PropertyID propertyid_value;
> case RESOURCES_TYPE : sequence<ResourceID> resource_values;
> case URIS_TYPE : sequence<URI> uri_values;
> case STRINGS_TYPE : sequence<string> string_values;
> case BOOLEANS_TYPE : sequence<boolean> boolean_values;
> case INTS_TYPE : sequence<long> int_values;
> case UNSIGNEDS_TYPE : sequence<unsigned long> unsigned_values;
> case DOUBLES_TYPE : sequence<double> double_values;
> case COMPLEXES_TYPE : sequence<Complex> complex_values;
> case DATE_TIMES_TYPE: sequence<DateTime> date_time_values;
> case ULONG_LONGS_TYPE : sequence<unsigned long long> ulong_long_values;
> case PROPERTYIDS_TYPE : sequence<PropertyID> propertyid_values;
> };
> struct PropertyValue
> {
> PropertyID property;
> SimpleValue value;
> };
> typedef sequence<PropertyValue> PropertyValueSequence;
> struct ResourceDescription
> {
> ResourceID id;
> PropertyValueSequence values;
> };
> typedef sequence<ResourceDescription> ResourceDescriptionSequence;
> interface ResourceDescriptionIterator
> {
> unsigned long max_left();
> boolean next_n(in unsigned long n,out ResourceDescriptionSequence descriptions );
> void destroy();
> };
> };
> #endif // _DAF_DESCRIPTIONS_IDL_
> Exception throws:
> org.apache.axis2.deployment.DeploymentException: Unsupported IDL token const
> at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:329)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processService(CorbaDeployer.java:128)
> at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(CorbaDeployer.java:97)
> at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:663)
> at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:338)
> at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
> at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
> at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
> at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)
> at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:667)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
> at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:222)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at net.jite.uib.console.WebServer.start(WebServer.java:32)
> at net.jite.uib.boot.Bootstrap$1.run(Bootstrap.java:121)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.corba.exceptions.IDLProcessorException: Unsupported IDL token const
> at org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:52)
> at org.apache.axis2.corba.receivers.CorbaUtil.getIDL(CorbaUtil.java:185)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(CorbaDeployer.java:439)
> at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:300)
> ... 32 more
> Caused by: org.apache.axis2.corba.exceptions.InvalidIDLException: Unsupported IDL token const
> at org.apache.axis2.corba.idl.parser.IDLVisitor.visit(IDLVisitor.java:116)
> at org.apache.axis2.corba.idl.parser.IDLVisitor.visit(IDLVisitor.java:80)
> at org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:49)
> ... 35 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (AXIS2-4385) InvalidIDLException: Unsupported IDL
token const
Posted by "Eranga Jayasundera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eranga Jayasundera reassigned AXIS2-4385:
-----------------------------------------
Assignee: Eranga Jayasundera
> InvalidIDLException: Unsupported IDL token const
> ------------------------------------------------
>
> Key: AXIS2-4385
> URL: https://issues.apache.org/jira/browse/AXIS2-4385
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: corba
> Affects Versions: 1.5
> Environment: axis2 release 1.5
> Reporter: Landws Grove
> Assignee: Eranga Jayasundera
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> IDL file is:
> //File: DAFDescriptions.idl
> #ifndef _DAF_DESCRIPTIONS_IDL_
> #define _DAF_DESCRIPTIONS_IDL_
> #include "DAFIdentifiers.idl"
> #include "TimeBase.idl"
> #pragma prefix "omg.org"
> module DAFDescriptions
> {
> typedef DAFIdentifiers::ResourceID ResourceID;
> typedef DAFIdentifiers::URI URI;
> typedef TimeBase::TimeT DateTime;
> struct Complex
> {
> double real;
> double imaginary;
> };
> typedef string FileExtension;
> struct Blob
> {
> any blob_data;
> FileExtension blob_data_type;
> };
> typedef ResourceID PropertyID;
> typedef short SimpleValueType;
> const SimpleValueType RESOURCE_TYPE = 1;
> const SimpleValueType URI_TYPE = 2;
> const SimpleValueType STRING_TYPE = 3;
> const SimpleValueType BOOLEAN_TYPE = 4;
> const SimpleValueType INT_TYPE = 5;
> const SimpleValueType UNSIGNED_TYPE = 6;
> const SimpleValueType DOUBLE_TYPE = 7;
> const SimpleValueType COMPLEX_TYPE = 8;
> const SimpleValueType DATE_TIME_TYPE = 9;
> const SimpleValueType ULONG_LONG_TYPE = 10;
> const SimpleValueType BLOB_TYPE = 11;
> const SimpleValueType PROPERTYID_TYPE = 12;
> const SimpleValueType RESOURCES_TYPE = 101;
> const SimpleValueType URIS_TYPE = 102;
> const SimpleValueType STRINGS_TYPE = 103;
> const SimpleValueType BOOLEANS_TYPE = 104;
> const SimpleValueType INTS_TYPE = 105;
> const SimpleValueType UNSIGNEDS_TYPE = 106;
> const SimpleValueType DOUBLES_TYPE = 107;
> const SimpleValueType COMPLEXES_TYPE = 108;
> const SimpleValueType DATE_TIMES_TYPE = 109;
> const SimpleValueType ULONG_LONGS_TYPE = 110;
> const SimpleValueType BLOBS_TYPE = 111;
> const SimpleValueType PROPERTYIDS_TYPE = 112;
> union SimpleValue switch( SimpleValueType )
> {
> case RESOURCE_TYPE : ResourceID resource_value;
> case URI_TYPE : URI uri_value;
> case STRING_TYPE : string string_value;
> case BOOLEAN_TYPE : boolean boolean_value;
> case INT_TYPE : long int_value;
> case UNSIGNED_TYPE : unsigned long unsigned_value;
> case DOUBLE_TYPE : double double_value;
> case COMPLEX_TYPE : Complex complex_value;
> case DATE_TIME_TYPE : DateTime date_time_value;
> case ULONG_LONG_TYPE : unsigned long long ulong_long_value;
> case BLOB_TYPE : Blob blob_value;
> case PROPERTYID_TYPE : PropertyID propertyid_value;
> case RESOURCES_TYPE : sequence<ResourceID> resource_values;
> case URIS_TYPE : sequence<URI> uri_values;
> case STRINGS_TYPE : sequence<string> string_values;
> case BOOLEANS_TYPE : sequence<boolean> boolean_values;
> case INTS_TYPE : sequence<long> int_values;
> case UNSIGNEDS_TYPE : sequence<unsigned long> unsigned_values;
> case DOUBLES_TYPE : sequence<double> double_values;
> case COMPLEXES_TYPE : sequence<Complex> complex_values;
> case DATE_TIMES_TYPE: sequence<DateTime> date_time_values;
> case ULONG_LONGS_TYPE : sequence<unsigned long long> ulong_long_values;
> case PROPERTYIDS_TYPE : sequence<PropertyID> propertyid_values;
> };
> struct PropertyValue
> {
> PropertyID property;
> SimpleValue value;
> };
> typedef sequence<PropertyValue> PropertyValueSequence;
> struct ResourceDescription
> {
> ResourceID id;
> PropertyValueSequence values;
> };
> typedef sequence<ResourceDescription> ResourceDescriptionSequence;
> interface ResourceDescriptionIterator
> {
> unsigned long max_left();
> boolean next_n(in unsigned long n,out ResourceDescriptionSequence descriptions );
> void destroy();
> };
> };
> #endif // _DAF_DESCRIPTIONS_IDL_
> Exception throws:
> org.apache.axis2.deployment.DeploymentException: Unsupported IDL token const
> at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:329)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processService(CorbaDeployer.java:128)
> at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(CorbaDeployer.java:97)
> at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:663)
> at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:338)
> at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
> at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
> at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
> at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)
> at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:667)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
> at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:222)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at net.jite.uib.console.WebServer.start(WebServer.java:32)
> at net.jite.uib.boot.Bootstrap$1.run(Bootstrap.java:121)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.corba.exceptions.IDLProcessorException: Unsupported IDL token const
> at org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:52)
> at org.apache.axis2.corba.receivers.CorbaUtil.getIDL(CorbaUtil.java:185)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(CorbaDeployer.java:439)
> at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:300)
> ... 32 more
> Caused by: org.apache.axis2.corba.exceptions.InvalidIDLException: Unsupported IDL token const
> at org.apache.axis2.corba.idl.parser.IDLVisitor.visit(IDLVisitor.java:116)
> at org.apache.axis2.corba.idl.parser.IDLVisitor.visit(IDLVisitor.java:80)
> at org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:49)
> ... 35 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AXIS2-4385) InvalidIDLException: Unsupported IDL
token const
Posted by "Eranga Jayasundera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eranga Jayasundera resolved AXIS2-4385.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.6
Fixed. Now CORBA module supports constants as specified in the CORBA 3.1 spec.
example:
const long C1 = -1;
const long C2 = C1 + 10;
> InvalidIDLException: Unsupported IDL token const
> ------------------------------------------------
>
> Key: AXIS2-4385
> URL: https://issues.apache.org/jira/browse/AXIS2-4385
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: corba
> Affects Versions: 1.5
> Environment: axis2 release 1.5
> Reporter: Landws Grove
> Assignee: Eranga Jayasundera
> Fix For: 1.6
>
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> IDL file is:
> //File: DAFDescriptions.idl
> #ifndef _DAF_DESCRIPTIONS_IDL_
> #define _DAF_DESCRIPTIONS_IDL_
> #include "DAFIdentifiers.idl"
> #include "TimeBase.idl"
> #pragma prefix "omg.org"
> module DAFDescriptions
> {
> typedef DAFIdentifiers::ResourceID ResourceID;
> typedef DAFIdentifiers::URI URI;
> typedef TimeBase::TimeT DateTime;
> struct Complex
> {
> double real;
> double imaginary;
> };
> typedef string FileExtension;
> struct Blob
> {
> any blob_data;
> FileExtension blob_data_type;
> };
> typedef ResourceID PropertyID;
> typedef short SimpleValueType;
> const SimpleValueType RESOURCE_TYPE = 1;
> const SimpleValueType URI_TYPE = 2;
> const SimpleValueType STRING_TYPE = 3;
> const SimpleValueType BOOLEAN_TYPE = 4;
> const SimpleValueType INT_TYPE = 5;
> const SimpleValueType UNSIGNED_TYPE = 6;
> const SimpleValueType DOUBLE_TYPE = 7;
> const SimpleValueType COMPLEX_TYPE = 8;
> const SimpleValueType DATE_TIME_TYPE = 9;
> const SimpleValueType ULONG_LONG_TYPE = 10;
> const SimpleValueType BLOB_TYPE = 11;
> const SimpleValueType PROPERTYID_TYPE = 12;
> const SimpleValueType RESOURCES_TYPE = 101;
> const SimpleValueType URIS_TYPE = 102;
> const SimpleValueType STRINGS_TYPE = 103;
> const SimpleValueType BOOLEANS_TYPE = 104;
> const SimpleValueType INTS_TYPE = 105;
> const SimpleValueType UNSIGNEDS_TYPE = 106;
> const SimpleValueType DOUBLES_TYPE = 107;
> const SimpleValueType COMPLEXES_TYPE = 108;
> const SimpleValueType DATE_TIMES_TYPE = 109;
> const SimpleValueType ULONG_LONGS_TYPE = 110;
> const SimpleValueType BLOBS_TYPE = 111;
> const SimpleValueType PROPERTYIDS_TYPE = 112;
> union SimpleValue switch( SimpleValueType )
> {
> case RESOURCE_TYPE : ResourceID resource_value;
> case URI_TYPE : URI uri_value;
> case STRING_TYPE : string string_value;
> case BOOLEAN_TYPE : boolean boolean_value;
> case INT_TYPE : long int_value;
> case UNSIGNED_TYPE : unsigned long unsigned_value;
> case DOUBLE_TYPE : double double_value;
> case COMPLEX_TYPE : Complex complex_value;
> case DATE_TIME_TYPE : DateTime date_time_value;
> case ULONG_LONG_TYPE : unsigned long long ulong_long_value;
> case BLOB_TYPE : Blob blob_value;
> case PROPERTYID_TYPE : PropertyID propertyid_value;
> case RESOURCES_TYPE : sequence<ResourceID> resource_values;
> case URIS_TYPE : sequence<URI> uri_values;
> case STRINGS_TYPE : sequence<string> string_values;
> case BOOLEANS_TYPE : sequence<boolean> boolean_values;
> case INTS_TYPE : sequence<long> int_values;
> case UNSIGNEDS_TYPE : sequence<unsigned long> unsigned_values;
> case DOUBLES_TYPE : sequence<double> double_values;
> case COMPLEXES_TYPE : sequence<Complex> complex_values;
> case DATE_TIMES_TYPE: sequence<DateTime> date_time_values;
> case ULONG_LONGS_TYPE : sequence<unsigned long long> ulong_long_values;
> case PROPERTYIDS_TYPE : sequence<PropertyID> propertyid_values;
> };
> struct PropertyValue
> {
> PropertyID property;
> SimpleValue value;
> };
> typedef sequence<PropertyValue> PropertyValueSequence;
> struct ResourceDescription
> {
> ResourceID id;
> PropertyValueSequence values;
> };
> typedef sequence<ResourceDescription> ResourceDescriptionSequence;
> interface ResourceDescriptionIterator
> {
> unsigned long max_left();
> boolean next_n(in unsigned long n,out ResourceDescriptionSequence descriptions );
> void destroy();
> };
> };
> #endif // _DAF_DESCRIPTIONS_IDL_
> Exception throws:
> org.apache.axis2.deployment.DeploymentException: Unsupported IDL token const
> at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:329)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processService(CorbaDeployer.java:128)
> at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(CorbaDeployer.java:97)
> at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:663)
> at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:338)
> at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
> at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
> at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
> at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)
> at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:667)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
> at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:222)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at net.jite.uib.console.WebServer.start(WebServer.java:32)
> at net.jite.uib.boot.Bootstrap$1.run(Bootstrap.java:121)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.corba.exceptions.IDLProcessorException: Unsupported IDL token const
> at org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:52)
> at org.apache.axis2.corba.receivers.CorbaUtil.getIDL(CorbaUtil.java:185)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(CorbaDeployer.java:439)
> at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:300)
> ... 32 more
> Caused by: org.apache.axis2.corba.exceptions.InvalidIDLException: Unsupported IDL token const
> at org.apache.axis2.corba.idl.parser.IDLVisitor.visit(IDLVisitor.java:116)
> at org.apache.axis2.corba.idl.parser.IDLVisitor.visit(IDLVisitor.java:80)
> at org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:49)
> ... 35 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.