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 Marcin Malinowski <mm...@gmail.com> on 2008/02/25 13:37:28 UTC
[Axis2] Axis2-CORBA IDL parsing problem
Hello,
I'm going to use Axis2 module in order to allow using CORBA via WSDL
interface.
Everything works fine if I have a simple idl interface.
For example:
module session
{
interface Session_I
{
void ping();
void endSession();
};
};
However, if I try to include other module via #include statement, for
example:
#include "tmp.idl"
module session
{
interface Session_I
{
void ping();
void endSession();
};
...
};
I got following error:
java.lang.NullPointerException
at org.apache.axis2.corba.deployer.SchemaGenerator.generateSchema(
SchemaGenerator.java:134)
at org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(
CorbaDeployer.java:433)
at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(
CorbaDeployer.java:269)
at org.apache.axis2.corba.deployer.CorbaDeployer.processService(
CorbaDeployer.java:97)
at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(
CorbaDeployer.java:67)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(
DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(
DeploymentEngine.java:584)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(
WSInfoList.java:141)
at org.apache.axis2.deployment.RepositoryListener.update(
RepositoryListener.java:330)
at org.apache.axis2.deployment.RepositoryListener.checkServices(
RepositoryListener.java:227)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(
DeploymentEngine.java:118)
at org.apache.axis2.deployment.FileSystemConfigurator.loadServices(
FileSystemConfigurator.java:146)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:78)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(ConfigurationContextFactory.java:180)
at org.apache.axis2.transport.SimpleAxis2Server.<init>(
SimpleAxis2Server.java:50)
at org.apache.axis2.transport.SimpleAxis2Server.main(
SimpleAxis2Server.java:101)
Is it a well known bug? Am I do something wrong? I'm using Nightly builds...
Any help will be appreciated.
Thanks.
Best regards,
Marcin
Re: [Axis2] Axis2-CORBA IDL parsing problem
Posted by Marcin Malinowski <mm...@gmail.com>.
Hello Eranga,
Thanks for your reply. Do you know workaround for #pragma prefis ? Thanks.
Best Regards,
Marcin
2008/2/27, Eranga Jayasundera (එරංග) <er...@gmail.com>:
>
> Hello Marcin,
>
> Currently, the CORBA module does not support pre-processor directives.
> Therefore you have to manually include the contents of tmp.idl to the main
> IDL file.
>
> Best Regards,
> Eranga
>
> On Mon, Feb 25, 2008 at 6:07 PM, Marcin Malinowski <
> mmalinowski83@gmail.com> wrote:
>
> > Hello,
> >
> > I'm going to use Axis2 module in order to allow using CORBA via WSDL
> > interface.
> > Everything works fine if I have a simple idl interface.
> >
> > For example:
> >
> > module session
> > {
> > interface Session_I
> > {
> > void ping();
> > void endSession();
> > };
> > };
> >
> > However, if I try to include other module via #include statement, for
> > example:
> >
> > #include "tmp.idl"
> >
> > module session
> > {
> > interface Session_I
> > {
> > void ping();
> > void endSession();
> > };
> > ...
> > };
> >
> > I got following error:
> >
> > java.lang.NullPointerException
> > at org.apache.axis2.corba.deployer.SchemaGenerator.generateSchema(
> > SchemaGenerator.java:134)
> > at
> > org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(
> > CorbaDeployer.java:433)
> > at org.apache.axis2.corba.deployer.CorbaDeployer.populateService
> > (CorbaDeployer.java:269)
> > at org.apache.axis2.corba.deployer.CorbaDeployer.processService(
> > CorbaDeployer.java:97)
> > at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(
> > CorbaDeployer.java:67)
> > at
> > org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(
> > DeploymentFileData.java:136)
> > at org.apache.axis2.deployment.DeploymentEngine.doDeploy(
> > DeploymentEngine.java:584)
> > at org.apache.axis2.deployment.repository.util.WSInfoList.update
> > (WSInfoList.java:141)
> > at org.apache.axis2.deployment.RepositoryListener.update(
> > RepositoryListener.java:330)
> > at org.apache.axis2.deployment.RepositoryListener.checkServices(
> > RepositoryListener.java:227)
> > at org.apache.axis2.deployment.DeploymentEngine.loadServices(
> > DeploymentEngine.java:118)
> > at
> > org.apache.axis2.deployment.FileSystemConfigurator.loadServices(
> > FileSystemConfigurator.java:146)
> > at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> > (ConfigurationContextFactory.java:78)
> > at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> > (ConfigurationContextFactory.java:180)
> > at org.apache.axis2.transport.SimpleAxis2Server.<init>(
> > SimpleAxis2Server.java:50)
> > at org.apache.axis2.transport.SimpleAxis2Server.main(
> > SimpleAxis2Server.java:101)
> >
> > Is it a well known bug? Am I do something wrong? I'm using Nightly
> > builds... Any help will be appreciated.
> > Thanks.
> >
> > Best regards,
> > Marcin
> >
>
>
>
> --
> එරංග ජයසුන්දර෴
> http://www.eranga.info
Re: [Axis2] Axis2-CORBA IDL parsing problem
Posted by "Eranga Jayasundera (එරංග)" <er...@gmail.com>.
Hello Marcin,
Currently, the CORBA module does not support pre-processor directives.
Therefore you have to manually include the contents of tmp.idl to the main
IDL file.
Best Regards,
Eranga
On Mon, Feb 25, 2008 at 6:07 PM, Marcin Malinowski <mm...@gmail.com>
wrote:
> Hello,
>
> I'm going to use Axis2 module in order to allow using CORBA via WSDL
> interface.
> Everything works fine if I have a simple idl interface.
>
> For example:
>
> module session
> {
> interface Session_I
> {
> void ping();
> void endSession();
> };
> };
>
> However, if I try to include other module via #include statement, for
> example:
>
> #include "tmp.idl"
>
> module session
> {
> interface Session_I
> {
> void ping();
> void endSession();
> };
> ...
> };
>
> I got following error:
>
> java.lang.NullPointerException
> at org.apache.axis2.corba.deployer.SchemaGenerator.generateSchema(
> SchemaGenerator.java:134)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processOperations
> (CorbaDeployer.java:433)
> at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(
> CorbaDeployer.java:269)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processService(
> CorbaDeployer.java:97)
> at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(
> CorbaDeployer.java:67)
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(
> DeploymentFileData.java:136)
> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(
> DeploymentEngine.java:584)
> at org.apache.axis2.deployment.repository.util.WSInfoList.update(
> WSInfoList.java:141)
> at org.apache.axis2.deployment.RepositoryListener.update(
> RepositoryListener.java:330)
> at org.apache.axis2.deployment.RepositoryListener.checkServices(
> RepositoryListener.java:227)
> at org.apache.axis2.deployment.DeploymentEngine.loadServices(
> DeploymentEngine.java:118)
> at org.apache.axis2.deployment.FileSystemConfigurator.loadServices
> (FileSystemConfigurator.java:146)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:78)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (ConfigurationContextFactory.java:180)
> at org.apache.axis2.transport.SimpleAxis2Server.<init>(
> SimpleAxis2Server.java:50)
> at org.apache.axis2.transport.SimpleAxis2Server.main(
> SimpleAxis2Server.java:101)
>
> Is it a well known bug? Am I do something wrong? I'm using Nightly
> builds... Any help will be appreciated.
> Thanks.
>
> Best regards,
> Marcin
>
--
එරංග ජයසුන්දර෴
http://www.eranga.info
Re: [Axis2] Axis2-CORBA IDL parsing problem
Posted by Marcin Malinowski <mm...@gmail.com>.
Hello,
Here is an example:
#pragma prefix "my.namespace"
module foo
{
interface Foo_I
{
void bar();
};
};
Thanks in advance.
BR,
Marcin
2008/2/29, Eranga Jayasundera (එරංග) <er...@gmail.com>:
>
> Hello,
>
> Can you please send an example IDL?
>
> - Eranga
>
> On Mon, Feb 25, 2008 at 6:07 PM, Marcin Malinowski <
> mmalinowski83@gmail.com> wrote:
>
> > Hello,
> >
> > I'm going to use Axis2 module in order to allow using CORBA via WSDL
> > interface.
> > Everything works fine if I have a simple idl interface.
> >
> > For example:
> >
> > module session
> > {
> > interface Session_I
> > {
> > void ping();
> > void endSession();
> > };
> > };
> >
> > However, if I try to include other module via #include statement, for
> > example:
> >
> > #include "tmp.idl"
> >
> > module session
> > {
> > interface Session_I
> > {
> > void ping();
> > void endSession();
> > };
> > ...
> > };
> >
> > I got following error:
> >
> > java.lang.NullPointerException
> > at org.apache.axis2.corba.deployer.SchemaGenerator.generateSchema(
> > SchemaGenerator.java:134)
> > at
> > org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(
> > CorbaDeployer.java:433)
> > at org.apache.axis2.corba.deployer.CorbaDeployer.populateService
> > (CorbaDeployer.java:269)
> > at org.apache.axis2.corba.deployer.CorbaDeployer.processService(
> > CorbaDeployer.java:97)
> > at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(
> > CorbaDeployer.java:67)
> > at
> > org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(
> > DeploymentFileData.java:136)
> > at org.apache.axis2.deployment.DeploymentEngine.doDeploy(
> > DeploymentEngine.java:584)
> > at org.apache.axis2.deployment.repository.util.WSInfoList.update
> > (WSInfoList.java:141)
> > at org.apache.axis2.deployment.RepositoryListener.update(
> > RepositoryListener.java:330)
> > at org.apache.axis2.deployment.RepositoryListener.checkServices(
> > RepositoryListener.java:227)
> > at org.apache.axis2.deployment.DeploymentEngine.loadServices(
> > DeploymentEngine.java:118)
> > at
> > org.apache.axis2.deployment.FileSystemConfigurator.loadServices(
> > FileSystemConfigurator.java:146)
> > at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> > (ConfigurationContextFactory.java:78)
> > at
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> > (ConfigurationContextFactory.java:180)
> > at org.apache.axis2.transport.SimpleAxis2Server.<init>(
> > SimpleAxis2Server.java:50)
> > at org.apache.axis2.transport.SimpleAxis2Server.main(
> > SimpleAxis2Server.java:101)
> >
> > Is it a well known bug? Am I do something wrong? I'm using Nightly
> > builds... Any help will be appreciated.
> > Thanks.
> >
> > Best regards,
> > Marcin
> >
>
>
>
> --
> එරංග ජයසුන්දර෴
> http://www.eranga.info
Re: [Axis2] Axis2-CORBA IDL parsing problem
Posted by "Eranga Jayasundera (එරංග)" <er...@gmail.com>.
Hello,
Can you please send an example IDL?
- Eranga
On Mon, Feb 25, 2008 at 6:07 PM, Marcin Malinowski <mm...@gmail.com>
wrote:
> Hello,
>
> I'm going to use Axis2 module in order to allow using CORBA via WSDL
> interface.
> Everything works fine if I have a simple idl interface.
>
> For example:
>
> module session
> {
> interface Session_I
> {
> void ping();
> void endSession();
> };
> };
>
> However, if I try to include other module via #include statement, for
> example:
>
> #include "tmp.idl"
>
> module session
> {
> interface Session_I
> {
> void ping();
> void endSession();
> };
> ...
> };
>
> I got following error:
>
> java.lang.NullPointerException
> at org.apache.axis2.corba.deployer.SchemaGenerator.generateSchema(
> SchemaGenerator.java:134)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processOperations
> (CorbaDeployer.java:433)
> at org.apache.axis2.corba.deployer.CorbaDeployer.populateService(
> CorbaDeployer.java:269)
> at org.apache.axis2.corba.deployer.CorbaDeployer.processService(
> CorbaDeployer.java:97)
> at org.apache.axis2.corba.deployer.CorbaDeployer.deploy(
> CorbaDeployer.java:67)
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(
> DeploymentFileData.java:136)
> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(
> DeploymentEngine.java:584)
> at org.apache.axis2.deployment.repository.util.WSInfoList.update(
> WSInfoList.java:141)
> at org.apache.axis2.deployment.RepositoryListener.update(
> RepositoryListener.java:330)
> at org.apache.axis2.deployment.RepositoryListener.checkServices(
> RepositoryListener.java:227)
> at org.apache.axis2.deployment.DeploymentEngine.loadServices(
> DeploymentEngine.java:118)
> at org.apache.axis2.deployment.FileSystemConfigurator.loadServices
> (FileSystemConfigurator.java:146)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:78)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (ConfigurationContextFactory.java:180)
> at org.apache.axis2.transport.SimpleAxis2Server.<init>(
> SimpleAxis2Server.java:50)
> at org.apache.axis2.transport.SimpleAxis2Server.main(
> SimpleAxis2Server.java:101)
>
> Is it a well known bug? Am I do something wrong? I'm using Nightly
> builds... Any help will be appreciated.
> Thanks.
>
> Best regards,
> Marcin
>
--
එරංග ජයසුන්දර෴
http://www.eranga.info