AW: AxisFault during ServiceStub (Axis2 1.3 and ADB)

2008-05-06 Thread Weck, Andreas
Hi,

i solved the problem after a long debugging session. 

The code generator generates from ...

  

  

  

  

... this setter:

public void setMerkmal_type0(boolean param) {
if (java.lang.String.valueOf(param).matches("[1]")) {
this.localMerkmal_type0 = param;
} else {
throw new java.lang.RuntimeException();
}
}


But matches("[1]") can't be true for a boolean.

Reagrads,
Andreas


-Ursprüngliche Nachricht-
Von: Weck, Andreas [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 6. Mai 2008 08:04
An: axis-user@ws.apache.org
Betreff: AW: AxisFault during ServiceStub (Axis2 1.3 and ADB)

With the debugger i can see that it is a RuntimeException.

Andreas

-Ursprüngliche Nachricht-
Von: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Mai 2008 07:08
An: axis-user@ws.apache.org
Betreff: Re: AxisFault during ServiceStub (Axis2 1.3 and ADB)

Weck, Andreas wrote:
> Hallo,
>
> i generated a service client with Axis2 1.3 and ADB. 
>
> My problem is that i get a AxisFault during i call my servicestub:
>   
What is the exception you are getting.?

- Deepal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AxisFault during ServiceStub (Axis2 1.3 and ADB)

2008-05-05 Thread Weck, Andreas
With the debugger i can see that it is a RuntimeException.

Andreas

-Ursprüngliche Nachricht-
Von: Deepal jayasinghe [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 6. Mai 2008 07:08
An: axis-user@ws.apache.org
Betreff: Re: AxisFault during ServiceStub (Axis2 1.3 and ADB)

Weck, Andreas wrote:
> Hallo,
>
> i generated a service client with Axis2 1.3 and ADB. 
>
> My problem is that i get a AxisFault during i call my servicestub:
>   
What is the exception you are getting.?

- Deepal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AxisFault during ServiceStub (Axis2 1.3 and ADB)

2008-05-05 Thread Weck, Andreas
That's my one of my problem e.getMessage() returns "null".

Andreas

-Ursprüngliche Nachricht-
Von: Deepal jayasinghe [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 6. Mai 2008 07:08
An: axis-user@ws.apache.org
Betreff: Re: AxisFault during ServiceStub (Axis2 1.3 and ADB)

Weck, Andreas wrote:
> Hallo,
>
> i generated a service client with Axis2 1.3 and ADB. 
>
> My problem is that i get a AxisFault during i call my servicestub:
>   
What is the exception you are getting.?

- Deepal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AxisFault during ServiceStub (Axis2 1.3 and ADB)

2008-05-05 Thread Weck, Andreas
Hallo,

i generated a service client with Axis2 1.3 and ADB. 

My problem is that i get a AxisFault during i call my servicestub:
Try{
ABCStub stub = new de.my.path.webservice.ABCServiceStub("URL");
stub.ABC(requestobject);
}catch(AxisFault e){
e.getMessage(); // returns "null"
}

If i switch to DEBUG-Level to the Logger, i will get this:

-
...
...
...
2008-05-05 13:43:01,265 DEBUG [main] org.apache.axis2.engine.Phase:
[MessageContext: logID=urn:uuid:F43201C38F7AAAB7521209987781273]
Invoking flowComplete() in Phase "Transport"
2008-05-05 13:43:01,265 DEBUG [main] org.apache.axis2.engine.Phase:
[MessageContext: logID=urn:uuid:F43201C38F7AAAB7521209987781273]
Invoking flowComplete() for Handler 'SOAPActionBasedDispatcher' in Phase
'Transport'
2008-05-05 13:43:01,265 DEBUG [main] org.apache.axis2.engine.Phase:
[MessageContext: logID=urn:uuid:F43201C38F7AAAB7521209987781273]
Invoking flowComplete() for Handler 'RequestURIBasedDispatcher' in Phase
'Transport'
2008-05-05 13:43:01,281 DEBUG [main]
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: Build the
OMElelment myAntwortBy the StaxSOAPModelBuilder
2008-05-05 13:43:01,375 DEBUG [main] httpclient.wire.content: << "..
here some XML"
2008-05-05 13:43:01,578 ERROR [main] de.mypackage.Communication:
AxisFault:null

-
So i can read nothing out of this.

Where or how can i catch a the error message? 
If i turn on my network sniffer, i can see that my client get a XML from
the Service. Ist posssible to make a validation from this XML against
the WSDL with AXIS?

Regards,
Andreas 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with xs:pattern and IsBasicLatin

2008-03-27 Thread Weck, Andreas
Hallo,
 
i have the following type-definition in a webservice:


  



  



 
This generates me a class ( with wsdl2java) with the method:
public void setVerantwortlichePerson_type0(java.lang.String param) {
if
(java.lang.String.valueOf(param).matches("[\\p{IsBasicLatin}\\p{IsLatin-
1Supplement}]+")) {
this.localVerantwortlichePerson_type0 = param;
} else {
throw new java.lang.RuntimeException();
}
}
 
and if i run my appliction and call the method
setVerantwortlichePerson_type0("Andreas") i get the following Exception:
Exception in thread "main" java.util.regex.PatternSyntaxException:
Unknown character property name {BasicLatin} near index 16 
[\p{IsBasicLatin}\p{IsLatin-1Supplement}]+
  ^
So what is here wrong? Can somebody help me???
Regards,
Andreas

 


after code generation -> local cannot resolved

2008-03-18 Thread Weck, Andreas
Hallo,
 
after i generated java code with the Axis2 Code Generator Wizard i got
two classes ending with _type0 and _type1 who needs a variable named
"local". "local" will be used in the methods getPullParser() and
serialize(), but i seems that it is never decleared, so that i got the
error "local cannot resolved".

Has anybody a solution or a hint?

Regards,
Andreas




 
/**
  * databinding method to get an XML representation of this object
  *
  */
public javax.xml.stream.XMLStreamReader
getPullParser(javax.xml.namespace.QName qName)
throws org.apache.axis2.databinding.ADBException{

//We can safely assume an element has only one type associated with
it
return new
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(MY_QNAM
E,
new java.lang.Object[]{
 
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReader.ELEMENT_TEX
T,
 
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local)
},null);
}


public void serialize(final javax.xml.namespace.QName parentQName,final
org.apache.axiom.om.OMFactory factory,
 
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter
xmlWriter)
throws javax.xml.stream.XMLStreamException,
org.apache.axis2.databinding.ADBException{


  //We can safely assume an element has only one type associated with it
  java.lang.String namespace = "";
  java.lang.String localName = "";

  if (! namespace.equals("")) {
java.lang.String prefix = xmlWriter.getPrefix(namespace);
 
if (prefix == null) {
  prefix = generatePrefix(namespace);

  xmlWriter.writeStartElement(prefix, localName, namespace);
  xmlWriter.writeNamespace(prefix, namespace);
  xmlWriter.setPrefix(prefix, namespace);

  } else {
xmlWriter.writeStartElement(namespace, localName);
  }

   } else {
 xmlWriter.writeStartElement(localName);
   }

   if (local==null){
  throw new org.apache.axis2.databinding.ADBException("Value cannot
be null !!");
   }else{
 
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUt
il.convertToString(local));
   }

xmlWriter.writeEndElement();
}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Eclipse, wsdl2java and huge warnings

2008-01-18 Thread Weck, Andreas
I have one wsdl file which references three xsd files. The eclipse wizard 
generates me three java files EvbCallbackHandler.java, EvbStub.java and 
Hinweis.java. In the file EvbStub.java are round about 40 classes where 10 give 
me warnings.

For Example there is a class 'BriefkastenAbruf':
   public static class BriefkastenAbruf implements 
org.apache.axis2.databinding.ADBBean{ ...}
who have a subclass:
   public static class Factory{}
in this class there is the Method:
  public static BriefkastenAbruf parse(javax.xml.stream.XMLStreamReader 
reader) throws java.lang.Exception{
BriefkastenAbruf object = new BriefkastenAbruf();
int event;
java.lang.String nillableValue = null;
java.lang.String prefix ="";
java.lang.String namespaceuri ="";
...
  }
Eclipse show me the following warnings:
- The local variable event is never read
- The local variable nillableValue is never read
- The local variable prefix is never read
- The local variable namespaceuri is never read

the part in the xsd:
  

  

  
  

  

  

Andreas



 

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 18. Januar 2008 10:31
An: axis-user@ws.apache.org
Betreff: RE: Eclipse, wsdl2java and huge warnings

This is strange i don't get warnings.
I only use ADB not XMLBeans.

QName is the Qualifiedname , so the full name of the NameSpace including 
operation or schema,

In which class do you encounter this warnings? 

dirk

-----Original Message-
From: Weck, Andreas [mailto:[EMAIL PROTECTED]
Sent: vrijdag 18 januari 2008 9:39
To: axis-user@ws.apache.org
Subject: AW: Eclipse, wsdl2java and huge warnings

I tried the Axis2_CodeGen_wizard_1.3.0, but if have still the same warnings: 

if i use ADB:
- The local variable event is never read
- The local variable handledAttributes is never read
- The local variable namespaceuri is never read
- The local variable nillableValue is never read
- The local variable prefix is never read
- The method writeAttribute(String, String, String, String, XMLStreamWriter) 
from the type [TYPE] is never used locally
- The method writeQName(QName, XMLStreamWriter) from the type [TYPE] is never 
used locally

BTW: What is QName?

if i use XMLBeans:
- The local variable [VARNAME] is never read
- The serializable class [NAME] does not declare a static final 
serialVersionUID field of type long
- The method [NAME] from the type [TYP] is never used locally

Regards,
Andreas

-Ursprüngliche Nachricht-

Maybe , you can use the Eclipse plugin
Axis2_CodeGen_wizard_1.3.0

It does the same. I am using it. It works fine.
You can use it ones and then build an ant-script to Regenerate.

This works without warnings.

Regards

Dirk

 

-Original Message-

Hi all,

i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After that 
i've used the wsdl2java command-line tool to create the client classes.

wsdl2java -uri service.wsdl -u

Than i made a new java project in eclipse, with the options (compiler 
compliance level 1.4) and imported all the generated java files into it.
Now it have approximately 500 warnings!!! Mostley like "The local variable 
[VARNAME] is never read" (in can see the first 100 only)

Does anyone have any suggestions around suppressing/fixing these warnings?

Regards,
Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any computer.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact th

AW: Eclipse, wsdl2java and huge warnings

2008-01-18 Thread Weck, Andreas
I tried the Axis2_CodeGen_wizard_1.3.0, but if have still the same warnings: 

if i use ADB:
- The local variable event is never read
- The local variable handledAttributes is never read
- The local variable namespaceuri is never read
- The local variable nillableValue is never read
- The local variable prefix is never read
- The method writeAttribute(String, String, String, String, XMLStreamWriter) 
from the type [TYPE] is never used locally
- The method writeQName(QName, XMLStreamWriter) from the type [TYPE] is never 
used locally

BTW: What is QName?

if i use XMLBeans:
- The local variable [VARNAME] is never read
- The serializable class [NAME] does not declare a static final 
serialVersionUID field of type long
- The method [NAME] from the type [TYP] is never used locally

Regards,
Andreas

-Ursprüngliche Nachricht-

Maybe , you can use the Eclipse plugin
Axis2_CodeGen_wizard_1.3.0

It does the same. I am using it. It works fine.
You can use it ones and then build an ant-script to Regenerate.

This works without warnings.

Regards

Dirk

 

-Original Message-

Hi all,

i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After that 
i've used the wsdl2java command-line tool to create the client classes.

wsdl2java -uri service.wsdl -u

Than i made a new java project in eclipse, with the options (compiler 
compliance level 1.4) and imported all the generated java files into it.
Now it have approximately 500 warnings!!! Mostley like "The local variable 
[VARNAME] is never read" (in can see the first 100 only)

Does anyone have any suggestions around suppressing/fixing these warnings?

Regards,
Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any computer.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Eclipse, wsdl2java and huge warnings

2008-01-17 Thread Weck, Andreas
I tried the Annotations and got the following Error:

Syntax error, annotations are only available if source level is 5.0 but
i develop in 1.4.

Regards,
Andreas

>Thank you for the information!
>
>so i can assume that i will haven't any problem, if i ignore all the
warnings?
>
>And how can i change the generation templates?
>
>Regards,
>Andreas
>
>
>
>Weck, Andreas ha scritto:
> Hi all,
> 
> i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After

> that i've used the wsdl2java command-line tool to create the client 
> classes.
> 
> wsdl2java -uri service.wsdl -u
> 
> Than i made a new java project in eclipse, with the options (compiler 
> compliance level 1.4) and imported all the generated java files into
it.
> Now it have approximately 500 warnings!!! Mostley like "The local 
> variable [VARNAME] is never read" (in can see the first 100 only)
> 
> Does anyone have any suggestions around suppressing/fixing these 
> warnings?
> 
> Regards,
> Andreas

You can add @SuppressWarnings("unused") and/or
@SupressWarnings("unchecked") (or, for short, @SuppressWarnings("all"))
before the declaration of each generated class. Unfortunately, this has
to be done by hand, otherwise you have to change the generation
templates to automatically add those annotations.

--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Eclipse, wsdl2java and huge warnings

2008-01-17 Thread Weck, Andreas
Thank you for the information!

so i can assume that i will haven't any problem, if i ignore all the warnings?

And how can i change the generation templates?

Regards,
Andreas


-Ursprüngliche Nachricht-
Von: Mauro Molinari [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 17. Januar 2008 14:15
An: axis-user@ws.apache.org
Betreff: Re: Eclipse, wsdl2java and huge warnings

Weck, Andreas ha scritto:
> Hi all,
> 
> i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After 
> that i've used the wsdl2java command-line tool to create the client 
> classes.
> 
> wsdl2java -uri service.wsdl -u
> 
> Than i made a new java project in eclipse, with the options (compiler 
> compliance level 1.4) and imported all the generated java files into it.
> Now it have approximately 500 warnings!!! Mostley like "The local 
> variable [VARNAME] is never read" (in can see the first 100 only)
> 
> Does anyone have any suggestions around suppressing/fixing these 
> warnings?
> 
> Regards,
> Andreas

You can add @SuppressWarnings("unused") and/or
@SupressWarnings("unchecked") (or, for short, @SuppressWarnings("all")) before 
the declaration of each generated class. Unfortunately, this has to be done by 
hand, otherwise you have to change the generation templates to automatically 
add those annotations.

-- 
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Eclipse, wsdl2java and huge warnings

2008-01-17 Thread Weck, Andreas
Hi all,

i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After
that i've used the wsdl2java command-line tool to create the client
classes.

wsdl2java -uri service.wsdl -u

Than i made a new java project in eclipse, with the options (compiler
compliance level 1.4) and imported all the generated java files into it.
Now it have approximately 500 warnings!!! Mostley like "The local
variable [VARNAME] is never read" (in can see the first 100 only)

Does anyone have any suggestions around suppressing/fixing these
warnings?

Regards,
Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]