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.