You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Le Anh Tuan <ze...@gmail.com> on 2011/07/14 09:36:11 UTC

Cannot instantiate the type ADBDataSource

Today I got Eclipse and Axis Code Generator plugin installed. After
generated Java files from WSDL, I got an error both happens in two operation
Java file:

Cannot instantiate the type ADBDataSource    ConcatRequest.java
Cannot instantiate the type ADBDataSource    ConcatResponse.java

These lines appear in both ConcatRequest.java  and ConcatResponse.java:

        org.apache.axiom.om.OMDataSource dataSource = new
org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);

I see that ADBDataSource is abstract class and can not instantiate. Maybe
it's source of the problem.

I'm totally new to Axis and I don't know how to solve this. Please help me.

Re: Cannot instantiate the type ADBDataSource

Posted by Le Anh Tuan <ze...@gmail.com>.
Hi Andreas,
Thank you very much. Following your instruction, I use Code Generator Plugin
1.6 & Axis2 1.6 (not the last version) and it works perfectly.

On Thu, Jul 14, 2011 at 8:46 PM, Andreas Veithen
<an...@gmail.com>wrote:

> That usually occurs because there is a mismatch between the Axis2
> version used at runtime and the Axis2 version used to generate the
> code.
>
> Andreas
>
> On Thu, Jul 14, 2011 at 09:36, Le Anh Tuan <ze...@gmail.com> wrote:
> >
> > Today I got Eclipse and Axis Code Generator plugin installed. After
> > generated Java files from WSDL, I got an error both happens in two
> operation
> > Java file:
> >
> > Cannot instantiate the type ADBDataSource    ConcatRequest.java
> > Cannot instantiate the type ADBDataSource    ConcatResponse.java
> >
> > These lines appear in both ConcatRequest.java  and ConcatResponse.java:
> >
> >         org.apache.axiom.om.OMDataSource dataSource = new
> > org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
> >
> > I see that ADBDataSource is abstract class and can not instantiate. Maybe
> > it's source of the problem.
> >
> > I'm totally new to Axis and I don't know how to solve this. Please help
> me.
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: Cannot instantiate the type ADBDataSource

Posted by Andreas Veithen <an...@gmail.com>.
That usually occurs because there is a mismatch between the Axis2
version used at runtime and the Axis2 version used to generate the
code.

Andreas

On Thu, Jul 14, 2011 at 09:36, Le Anh Tuan <ze...@gmail.com> wrote:
>
> Today I got Eclipse and Axis Code Generator plugin installed. After
> generated Java files from WSDL, I got an error both happens in two operation
> Java file:
>
> Cannot instantiate the type ADBDataSource    ConcatRequest.java
> Cannot instantiate the type ADBDataSource    ConcatResponse.java
>
> These lines appear in both ConcatRequest.java  and ConcatResponse.java:
>
>         org.apache.axiom.om.OMDataSource dataSource = new
> org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
>
> I see that ADBDataSource is abstract class and can not instantiate. Maybe
> it's source of the problem.
>
> I'm totally new to Axis and I don't know how to solve this. Please help me.
>
>
>

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