RE : Cannot start axis2_http_server.exe from command line

2009-03-11 Thread Lefrancois, Carl
Hello Raymond,  what you have is not a windows system error.  It is
probably an access violation somewhere in the server code.  

Start with the log file and see what is the last step that works, then
in your debugger put a breakpoint at that step and go forward until it
crashes.  Like Supun suggested, it may be a missing or bad configuration
that causes the crash.  HTH

Carl


-Message d'origine-
De : Raymond Zhou [mailto:raywang...@yahoo.com] 
Envoyé : mardi, mars 10, 2009 18:02
À : axis-c-...@ws.apache.org
Cc : axis-c-user@ws.apache.org
Objet : Cannot start axis2_http_server.exe from command line


Hi All, 

I have been using axis2/c for a while in my web service client
component. I has been successful. I built the axis2/c libraries (version
1.5) by myself, and I am working in windows XP platform. When building
the libraries, I enabled openSSL, and use guththila XML parser. 

Now encounter a very strange problem when I try to start
axis2_http_server.exe. Seems like I am getting a windows system error,
here is the error message from the pop up windows when I start
axis2_http_server.exe from command line:

===
 axis2_http_server.exe has encountered a problem and needs to close. We
are sorry for the inconvenience.
  If you were in the middle of something, the information you were
working on might be lost.
 Please tell Microsoft about this problem.
 .
===

Strange thing is, if I use the downloaded binary version of axis2/c, I
was able to start the axis2_http_server.exe without problem.

Any clue what might be going on?
Thanks!
Ray
  _  

Ce message est confidentiel, à l'usage exclusif du destinataire
ci-dessus et son contenu ne représente en aucun cas un engagement de la
part de AXA, sauf en cas de stipulation expresse et par écrit de la part
de AXA. Toute publication, utilisation ou diffusion, même partielle,
doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce
message, merci d'en avertir immédiatement l'expéditeur.

This e-mail message is confidential, for the exclusive use of the
addressee and its contents shall not constitute a commitment by AXA,
except as otherwise specifically provided in writing by AXA. Any
unauthorized disclosure, use or dissemination, either whole or partial,
is prohibited. If you are not the intended recipient of the message,
please notify the sender immediately.


Re: RE : Cannot start axis2_http_server.exe from command line

2009-03-11 Thread Raymond Zhou
OK, thanks first. 
What I found is that I got the following access violation:
 
First-chance exception at 0x0002 in axis2_http_server.exe: 0xC005: 
Access violation reading location 0x0002.
Unhandled exception at 0x0002 in axis2_http_server.exe: 0xC005: Access 
violation reading location 0x0002.
 
It occurs right at the beginning of the following line in http_server_main.c:
 
  while ((c = AXIS2_GETOPT(argc, argv, :p:r:ht:l:s:f:)) != -1)
 
I stepped into AXIS2_GETOPT, and I noticed that access violation occurs at the 
following line
 if (optind = __argc || *(pos = __argv[optind]) != '-')
 the symbals  __argc and __argv are not found because
Memory could not be displayed for the expression


--- On Wed, 3/11/09, Lefrancois, Carl carl.lefranc...@axa-canada.com wrote:


From: Lefrancois, Carl carl.lefranc...@axa-canada.com
Subject: RE : Cannot start axis2_http_server.exe from command line
To: Apache AXIS C User List axis-c-user@ws.apache.org
Date: Wednesday, March 11, 2009, 2:14 PM


Hello Raymond,  what you have is not a windows system error.  It is
probably an access violation somewhere in the server code.  

Start with the log file and see what is the last step that works, then
in your debugger put a breakpoint at that step and go forward until it
crashes.  Like Supun suggested, it may be a missing or bad configuration
that causes the crash.  HTH

Carl


-Message d'origine-
De : Raymond Zhou [mailto:raywang...@yahoo.com] 
Envoyé : mardi, mars 10, 2009 18:02
À : axis-c-...@ws.apache.org
Cc : axis-c-user@ws.apache.org
Objet : Cannot start axis2_http_server.exe from command line


Hi All, 

I have been using axis2/c for a while in my web service client
component. I has been successful. I built the axis2/c libraries (version
1.5) by myself, and I am working in windows XP platform. When building
the libraries, I enabled openSSL, and use guththila XML parser. 

Now encounter a very strange problem when I try to start
axis2_http_server.exe. Seems like I am getting a windows system error,
here is the error message from the pop up windows when I start
axis2_http_server.exe from command line:

===
axis2_http_server.exe has encountered a problem and needs to close. We
are sorry for the inconvenience.
  If you were in the middle of something, the information you were
working on might be lost.
Please tell Microsoft about this problem.
..
===

Strange thing is, if I use the downloaded binary version of axis2/c, I
was able to start the axis2_http_server.exe without problem.

Any clue what might be going on?
Thanks!
Ray
  _  

Ce message est confidentiel, à l'usage exclusif du destinataire
ci-dessus et son contenu ne représente en aucun cas un engagement de la
part de AXA, sauf en cas de stipulation expresse et par écrit de la part
de AXA. Toute publication, utilisation ou diffusion, même partielle,
doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce
message, merci d'en avertir immédiatement l'expéditeur.

This e-mail message is confidential, for the exclusive use of the
addressee and its contents shall not constitute a commitment by AXA,
except as otherwise specifically provided in writing by AXA. Any
unauthorized disclosure, use or dissemination, either whole or partial,
is prohibited. If you are not the intended recipient of the message,
please notify the sender immediately.



  

Re: RE : Cannot start axis2_http_server.exe from command line

2009-03-11 Thread Raymond Zhou
Sorry I accidentally hit the send button before I finish my message. Here it is 
again:
 
What I found is that I got the following access violation:
 
First-chance exception at 0x0002 in axis2_http_server.exe: 0xC005: 
Access violation reading location 0x0002.
Unhandled exception at 0x0002 in axis2_http_server.exe: 0xC005: Access 
violation reading location 0x0002.
 
It occurs right at the beginning of the following line in http_server_main.c:
 
  while ((c = AXIS2_GETOPT(argc, argv, :p:r:ht:l:s:f:)) != -1)
 
I stepped into AXIS2_GETOPT, and I noticed that access violation occurs at the 
following line
 if (optind = __argc || *(pos = __argv[optind]) != '-')
 
I also noticed I am unable to view the symbales __argc and __argv in memory 
window 
because Memory could not be displayed for the expression. I was able to see 
argc and argv when I stopped in http_server_main.c before the 
call  AXIS2_GETOPT(..).
 
Does this seem to be a problem in compilation? I can reproduce the problem in 
both debug version and release version. I am working on windows XP platform, 
and my compiler is Microsoft .NET visual c++ 2003. My colleage also saw the 
same problem in UNIX/Linux platforms.

Thanks!
Way
--- On Wed, 3/11/09, Lefrancois, Carl carl.lefranc...@axa-canada.com wrote:


From: Lefrancois, Carl carl.lefranc...@axa-canada.com
Subject: RE : Cannot start axis2_http_server.exe from command line
To: Apache AXIS C User List axis-c-user@ws.apache.org
Date: Wednesday, March 11, 2009, 2:14 PM


Hello Raymond,  what you have is not a windows system error.  It is
probably an access violation somewhere in the server code.  

Start with the log file and see what is the last step that works, then
in your debugger put a breakpoint at that step and go forward until it
crashes.  Like Supun suggested, it may be a missing or bad configuration
that causes the crash.  HTH

Carl


-Message d'origine-
De : Raymond Zhou [mailto:raywang...@yahoo.com] 
Envoyé : mardi, mars 10, 2009 18:02
À : axis-c-...@ws.apache.org
Cc : axis-c-user@ws.apache.org
Objet : Cannot start axis2_http_server.exe from command line


Hi All, 

I have been using axis2/c for a while in my web service client
component. I has been successful. I built the axis2/c libraries (version
1.5) by myself, and I am working in windows XP platform. When building
the libraries, I enabled openSSL, and use guththila XML parser. 

Now encounter a very strange problem when I try to start
axis2_http_server.exe. Seems like I am getting a windows system error,
here is the error message from the pop up windows when I start
axis2_http_server.exe from command line:

===
axis2_http_server.exe has encountered a problem and needs to close. We
are sorry for the inconvenience.
  If you were in the middle of something, the information you were
working on might be lost.
Please tell Microsoft about this problem.
..
===

Strange thing is, if I use the downloaded binary version of axis2/c, I
was able to start the axis2_http_server.exe without problem.

Any clue what might be going on?
Thanks!
Ray
  _  

Ce message est confidentiel, à l'usage exclusif du destinataire
ci-dessus et son contenu ne représente en aucun cas un engagement de la
part de AXA, sauf en cas de stipulation expresse et par écrit de la part
de AXA. Toute publication, utilisation ou diffusion, même partielle,
doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce
message, merci d'en avertir immédiatement l'expéditeur.

This e-mail message is confidential, for the exclusive use of the
addressee and its contents shall not constitute a commitment by AXA,
except as otherwise specifically provided in writing by AXA. Any
unauthorized disclosure, use or dissemination, either whole or partial,
is prohibited. If you are not the intended recipient of the message,
please notify the sender immediately.



  

Re: RE : Cannot start axis2_http_server.exe from command line

2009-03-11 Thread Raymond Zhou

Some extra info,
 
When I compile the axis2/c code, I saw the following warning:
 
http_server_main.c
...\..\src\core\transport\http\server\simple_axis2_server\http_server_main.c(119)
 : warning C4047: 'function' : 'int *(__cdecl *)()' differs in levels of 
indirection from 'int'
...\..\src\core\transport\http\server\simple_axis2_server\http_server_main.c(119)
 : warning C4047: 'function' : 'char *const **(__cdecl *)()  ' differs in 
levels of indirection from 'char ** '

Line 119 in file http_server_main.c is actually the following line that gives 
me the access violation:
    while ((c = AXIS2_GETOPT(argc, argv, :p:r:ht:l:s:f:)) != -1)
Thanks!
Ray
--- On Wed, 3/11/09, Raymond Zhou raywang...@yahoo.com wrote:


From: Raymond Zhou raywang...@yahoo.com
Subject: Re: RE : Cannot start axis2_http_server.exe from command line
To: Apache AXIS C User List axis-c-user@ws.apache.org
Date: Wednesday, March 11, 2009, 5:44 PM







Sorry I accidentally hit the send button before I finish my message. Here it is 
again:
 
What I found is that I got the following access violation:
 
First-chance exception at 0x0002 in axis2_http_server.exe: 0xC005: 
Access violation reading location 0x0002.
Unhandled exception at 0x0002 in axis2_http_server.exe: 0xC005: Access 
violation reading location 0x0002.
 
It occurs right at the beginning of the following line in http_server_main.c:
 
  while ((c = AXIS2_GETOPT(argc, argv, :p:r:ht:l:s:f:)) != -1)
 
I stepped into AXIS2_GETOPT, and I noticed that access violation occurs at the 
following line
 if (optind = __argc || *(pos = __argv[optind]) != '-')
 
I also noticed I am unable to view the symbales __argc and __argv in memory 
window 
because Memory could not be displayed for the expression. I was able to see 
argc and argv when I stopped in http_server_main.c before the 
call  AXIS2_GETOPT(..).
 
Does this seem to be a problem in compilation? I can reproduce the problem in 
both debug version and release version. I am working on windows XP platform, 
and my compiler is Microsoft .NET visual c++ 2003. My colleage also saw the 
same problem in UNIX/Linux platforms.

Thanks!
Way
--- On Wed, 3/11/09, Lefrancois, Carl carl.lefranc...@axa-canada.com wrote:


From: Lefrancois, Carl carl.lefranc...@axa-canada.com
Subject: RE : Cannot start axis2_http_server.exe from command line
To: Apache AXIS C User List axis-c-user@ws.apache.org
Date: Wednesday, March 11, 2009, 2:14 PM


Hello Raymond,  what you have is not a windows system error.  It is
probably an access violation somewhere in the server code.  

Start with the log file and see what is the last step that works, then
in your debugger put a breakpoint at that step and go forward until it
crashes.  Like Supun suggested, it may be a missing or bad configuration
that causes the crash.  HTH

Carl


-Message d'origine-
De : Raymond Zhou [mailto:raywang...@yahoo.com] 
Envoyé : mardi, mars 10, 2009 18:02
À : axis-c-...@ws.apache.org
Cc : axis-c-user@ws.apache.org
Objet : Cannot start axis2_http_server.exe from command line


Hi All, 

I have been using axis2/c for a while in my web service client
component. I has been successful. I built the axis2/c libraries (version
1.5) by myself, and I am working in windows XP platform. When building
the libraries, I enabled openSSL, and use guththila XML parser. 

Now encounter a very strange problem when I try to start
axis2_http_server.exe. Seems like I am getting a windows system error,
here is the error message from the pop up windows when I start
axis2_http_server.exe from command line:

===
axis2_http_server.exe has encountered a problem and needs to close. We
are sorry for the inconvenience.
  If you were in the middle of something, the information you were
working on might be lost.
Please tell Microsoft about this problem.
..
===

Strange thing is, if I use the downloaded binary version of axis2/c, I
was able to start the axis2_http_server.exe without problem.

Any clue what might be going on?
Thanks!
Ray
  _  

Ce message est confidentiel, à l'usage exclusif du destinataire
ci-dessus et son contenu ne représente en aucun cas un engagement de la
part de AXA, sauf en cas de stipulation expresse et par écrit de la part
de AXA. Toute publication, utilisation ou diffusion, même partielle,
doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce
message, merci d'en avertir immédiatement l'expéditeur.

This e-mail message is confidential, for the exclusive use of the
addressee and its contents shall not constitute a commitment by AXA,
except as otherwise specifically provided in writing by AXA. Any
unauthorized disclosure, use or dissemination, either whole or partial,
is prohibited. If you are not the intended recipient of the message,
please notify the sender immediately.




  

downloaded axis2/c 1.4 cannot load rampart/c module when start axis2_http_serve

2009-03-11 Thread Raymond Zhou
Hi All,
 
I downloaded axis2/c 1.4 binary build and rampart/c 1.2 binary build, and I 
followed steps to do the configurations, I am having trouble starting 
axis2_http_server.exe when I engaged rampart/c. If I don't engage rampart/c, I 
have no problem at all, I can start the http server, and ran the client 
examples. But when I engaged the rampart/c, I got the following error and 
axis2_http_server.exe won't start:
 
==
[Wed Mar 11 17:02:14 2009] [debug] ..\..\src\core\deployment\dep_engine.c(1306) 
axis2_dep_engine_load_module_dll: DLL path is : 
..//modules/rampart/mod_rampart.dll
[Wed Mar 11 17:02:14 2009] [error] ..\..\util\src\class_loader.c(161) dlerror 
reason: Something went wrong loading the DLL. If you happen to see this 
message, please note that getting the exact error form Windows is a TODO. And 
if possible please help fix it. :)
[Wed Mar 11 17:02:14 2009] [error] ..\..\src\core\deployment\dep_engine.c(1424) 
Loading module description rampart failed
[Wed Mar 11 17:02:14 2009] [error] ..\..\src\core\deployment\dep_engine.c(1588) 
Adding new module rampart to the deployment engine failed
[Wed Mar 11 17:02:14 2009] [error] 
..\..\src\core\deployment\repos_listener..c(136) Repository listener 
initialization failed
[Wed Mar 11 17:02:14 2009] [error] ..\..\src\core\deployment\dep_engine.c(788) 
dep_engine repos listener creation failed, folder name is ../
[Wed Mar 11 17:02:14 2009] [error] ..\..\src\core\deployment\conf_init.c(64) 
Loading deployment engine failed for repository ../.
[Wed Mar 11 17:02:14 2009] [error] 
..\..\src\core\transport\http\receiver\http_receiver.c(127) unable to create 
private configuration contextfor repo path ../
[Wed Mar 11 17:02:14 2009] [error] 
..\..\src\core\transport\http\server\simple_axis2_server\http_server_main.c(215)
 Server creation failed: Error code: 34 :: Repository listener initialization 
failed
==
 
To engage rampart/c, I did the following:
(1) Added module ref=rampart/ to axis2.xml
(2) add follwoing phase under phaseOrder type=outflowphaseOrder 
type=outflow
!-- Other Phases--
phase name=Security/
   /phaseOrder

(3) Copied rampart/c 1.2 module to axis2/c modules.
(4) Copied samples\server\sec_echo to %AXIS2C_HOME%\services 
 
Has anyone been successful using rampart/c? I am trying to use rampart/c in a 
web service client componet which I am successfully using axis2/c 1.5.
 
Thanks much in advance!
Ray


  

Re: RE : Cannot start axis2_http_server.exe from command line

2009-03-11 Thread Raymond Zhou
OK, this seems to be a known problem with axis2/c built in .NET Visual C++ 
2003, and seems that it won't be fixed. See 
https://issues.apache.org/jira/browse/AXIS2C-922.
 
I've tried the suggestions in the bug report and it still doesn't work. 
 
Thanks!
   

--- On Wed, 3/11/09, Raymond Zhou raywang...@yahoo.com wrote:


From: Raymond Zhou raywang...@yahoo.com
Subject: Re: RE : Cannot start axis2_http_server.exe from command line
To: Apache AXIS C User List axis-c-user@ws.apache.org
Date: Wednesday, March 11, 2009, 5:56 PM







Some extra info,
 
When I compile the axis2/c code, I saw the following warning:
 
http_server_main.c
...\..\src\core\transport\http\server\simple_axis2_server\http_server_main.c(119)
 : warning C4047: 'function' : 'int *(__cdecl *)()' differs in levels of 
indirection from 'int'
...\..\src\core\transport\http\server\simple_axis2_server\http_server_main.c(119)
 : warning C4047: 'function' : 'char *const **(__cdecl *)()  ' differs in 
levels of indirection from 'char ** '

Line 119 in file http_server_main.c is actually the following line that gives 
me the access violation:
    while ((c = AXIS2_GETOPT(argc, argv, :p:r:ht:l:s:f:)) != -1)
Thanks!
Ray
--- On Wed, 3/11/09, Raymond Zhou raywang...@yahoo.com wrote:


From: Raymond Zhou raywang...@yahoo.com
Subject: Re: RE : Cannot start axis2_http_server.exe from command line
To: Apache AXIS C User List axis-c-user@ws.apache.org
Date: Wednesday, March 11, 2009, 5:44 PM







Sorry I accidentally hit the send button before I finish my message. Here it is 
again:
 
What I found is that I got the following access violation:
 
First-chance exception at 0x0002 in axis2_http_server.exe: 0xC005: 
Access violation reading location 0x0002.
Unhandled exception at 0x0002 in axis2_http_server.exe: 0xC005: Access 
violation reading location 0x0002.
 
It occurs right at the beginning of the following line in http_server_main.c:
 
  while ((c = AXIS2_GETOPT(argc, argv, :p:r:ht:l:s:f:)) != -1)
 
I stepped into AXIS2_GETOPT, and I noticed that access violation occurs at the 
following line
 if (optind = __argc || *(pos = __argv[optind]) != '-')
 
I also noticed I am unable to view the symbales __argc and __argv in memory 
window 
because Memory could not be displayed for the expression. I was able to see 
argc and argv when I stopped in http_server_main.c before the 
call  AXIS2_GETOPT(..).
 
Does this seem to be a problem in compilation? I can reproduce the problem in 
both debug version and release version. I am working on windows XP platform, 
and my compiler is Microsoft .NET visual c++ 2003. My colleage also saw the 
same problem in UNIX/Linux platforms.

Thanks!
Way
--- On Wed, 3/11/09, Lefrancois, Carl carl.lefranc...@axa-canada.com wrote:


From: Lefrancois, Carl carl.lefranc...@axa-canada.com
Subject: RE : Cannot start axis2_http_server.exe from command line
To: Apache AXIS C User List axis-c-user@ws.apache.org
Date: Wednesday, March 11, 2009, 2:14 PM


Hello Raymond,  what you have is not a windows system error.  It is
probably an access violation somewhere in the server code.  

Start with the log file and see what is the last step that works, then
in your debugger put a breakpoint at that step and go forward until it
crashes.  Like Supun suggested, it may be a missing or bad configuration
that causes the crash.  HTH

Carl


-Message d'origine-
De : Raymond Zhou [mailto:raywang...@yahoo.com] 
Envoyé : mardi, mars 10, 2009 18:02
À : axis-c-...@ws.apache.org
Cc : axis-c-user@ws.apache.org
Objet : Cannot start axis2_http_server.exe from command line


Hi All, 

I have been using axis2/c for a while in my web service client
component. I has been successful. I built the axis2/c libraries (version
1.5) by myself, and I am working in windows XP platform. When building
the libraries, I enabled openSSL, and use guththila XML parser. 

Now encounter a very strange problem when I try to start
axis2_http_server.exe. Seems like I am getting a windows system error,
here is the error message from the pop up windows when I start
axis2_http_server.exe from command line:

===
axis2_http_server.exe has encountered a problem and needs to close. We
are sorry for the inconvenience.
  If you were in the middle of something, the information you were
working on might be lost.
Please tell Microsoft about this problem.
..
===

Strange thing is, if I use the downloaded binary version of axis2/c, I
was able to start the axis2_http_server.exe without problem.

Any clue what might be going on?
Thanks!
Ray
  _  

Ce message est confidentiel, à l'usage exclusif du destinataire
ci-dessus et son contenu ne représente en aucun cas un engagement de la
part de AXA, sauf en cas de stipulation expresse et par écrit de la part
de AXA. Toute publication, utilisation ou diffusion, même partielle,
doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce
message, merci d'en avertir immédiatement l'expéditeur.

This 

Re: Java2WSDL and abstract classes

2009-03-11 Thread Dennis Sosnoski

Hi Alex,

You'll probably have a much easier time of it if you use Jibx2Wsdl 
(included in the current 1.2.1 release of JiBX) rather than Java2WSDL. 
Jibx2Wsdl has a number of nice features, including Java 5 typed 
collection and enum support, automatic JavaDoc extraction to WSDL and 
schema documentation, and extensive customizations support. To include 
extra classes in your data model (such as the subclasses in your 
example), you just need to specify the extra classes on the command line 
using an '-x' argument flag. See the /examples/jibx2wsdl/example3 code 
and build for an example doing just this, using an interface rather than 
an abstract class.


Using Jibx2Wsdl in no way commits you to using JiBX for your services 
(though it's easy to do so, since you get JiBX bindings out of Jibx2Wsdl 
as well as the WSDL and schema).


See the Jibx2Wsdl documentation on the JiBX site (still somewhat 
limited, unfortunately) for details: 
http://jibx.sourceforge.net/fromcode/jibx2wsdl.html


 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Alexander Rosemann wrote:

Hi,

I know, this has been asked before, though I couldn't find an answer 
to it.


I'm busy fiddling around with the Java2WSDL ant task shipped with 
Axis2.  The tool works fine until I try to generate the WSDL from an 
abstract class.


Having an abstract class called Animal and a subclass Dog, it creates 
the schema for the Animal but misses out on the Dog type.


I presume I just can't see what parameter has to be set to get this 
going.


Any pointers that lead to a resolution of my issue are much appreciated.

Thanks,
Alex



OMElement cast exception

2009-03-11 Thread Arjan Broer
Hi,

For a webservice project i'm using the axis2 framework (1.4.1) with a
pojo service. That service takes a complex object as input and should
return a other complex object after some calculations.

The input object looks like this.

Order (Serializable)
  ArrayListPlacement placements

Placement (Serializable)
  Date publishdate

But when i send this object and try to loop through the array list i get
an ClassCast exception:
Exception in thread main org.apache.axis2.AxisFault:
org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to
mypackage.model.Placement

I realy have no idea how this can occur as i am using generics
everywhere. Any hints for me??

Regards,
  Arjan


org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

2009-03-11 Thread Appasamy Thirugnana
Hi,

Can any one tell how to get rid of this

org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

Thanks,
Appasamy


RE: org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

2009-03-11 Thread Appasamy Thirugnana
This is occuring at client side.I here attached the trace

org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space
 at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
 at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
 at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
 at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
 at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)


Sent: Wednesday, March 11, 2009 16:35
To: axis-user@ws.apache.org
Subject: org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

Hi,

Can any one tell how to get rid of this

org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space

Thanks,
Appasamy


Re: WSDL attachment example

2009-03-11 Thread Nan Null
Thanks to Amila, he responded to my previous same question, but I
missed it.  This example is just what I need.
Thank you very much!

http://amilachinthaka.blogspot.com/2009/01/using-mtom-with-axis2.html


On Wed, Mar 11, 2009 at 12:49 AM, Nan Null null@gmail.com wrote:
 I am developing a WSDL for a web service.  However, I don't know what
 is the standard way of having an attachment or two in web service
 calls (with other data).  The problem is that I saw some example, but
 in the WSDL, there is no mention of the attachment.  I also use the
 Axis2 example of attachment, and then view the WSDL, again, there is
 no mention of the attachment.  In the client and server code, the
 attachment is there (manually added into the code).
 After the WSDL is created, it will be sent to another unit for
 development.  Therefore, if I need 1 or more attachment in an
 operation, I need a way to specify it exactly (as input, output or
 both).

 Please point me to the right location or give me a snippet of code.
 It cannot be this hard.  Please use standard code only.  Thanks.



How to change Axis2 response character encoding

2009-03-11 Thread yskm

Hi,

i am consuming a webservice (dont know the implementation of the service)
for this i have written my client using axis2 1.4 and rampart 1.4, this
client is working fine under normal response payload, if response contains
any special characters like Hello world ai? i.e invalid UTF-8 characters
myclient is breaking... following is the stacktrace

org.apache.axis2.AxisFault: Error in extracting message properties
at
org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:166)
at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99)
at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:363)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
at
com.paypal.sparta.inbox.ws.OmnitureWSClient.callService(OmnitureWSClient.java:152)
at
com.paypal.sparta.inbox.ws.OmnitureWSClient.call2(OmnitureWSClient.java:88)
at 
com.paypal.sparta.inbox.ws.OmnitureReport.main(OmnitureReport.java:35)
Caused by: org.apache.rampart.RampartException: Error in extracting message
properties
at
org.apache.rampart.RampartMessageData.init(RampartMessageData.java:322)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:70)
at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
... 12 more
Caused by: org.apache.ws.security.WSSecurityException: Error in converting
SOAP Envelope to Document; nested exception is: 
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: 
Invalid
UTF-8 middle byte 0x66 (at char #57163, byte #56398)
at
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:161)
at
org.apache.rampart.RampartMessageData.init(RampartMessageData.java:158)
... 14 more
Caused by: org.apache.axiom.om.OMException:
com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x66 (at char
#57163, byte #56398)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:327)
at
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:706)
at
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:96)
... 15 more
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x66
(at char #57163, byte #56398)
at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
... 18 more
Caused by: java.io.CharConversionException: Invalid UTF-8 middle byte 0x66
(at char #57163, byte #56398)
at com.ctc.wstx.io.UTF8Reader.reportInvalidOther(UTF8Reader.java:313)
at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:204)
at com.ctc.wstx.io.MergedReader.read(MergedReader.java:101)
at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
at
com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
at
com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1021)
at 
com.ctc.wstx.sr.StreamScanner.parseLocalName2(StreamScanner.java:1771)
at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1731)
at
com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2912)
at
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2846)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
... 20 more


I tried different ways to change the character encoding of the response
input stream 

1) by adding following options before calling the service method, this
didn't worked. 

options.setProperty(org.apache.axis2.Constants.Configuration.CHARACTER_SET_ENCODING,UTF-16);
at what circumstance does this statement work??

2) I tried adding a handler in the InFlow phase inside Transport and
Addressing and with in the handler i added following statements 

SOAPEnvelope se = msgContext.getEnvelope();
System.out.println(se);

Re: Java2WSDL and abstract classes

2009-03-11 Thread Alexander Rosemann

Hi Dennis,

Thanks for the hint. I'll give it a shot when I have to implement 
another service. This time I took the route developing the xml manually 
which works fine now.


Thanks,
-Alex

Dennis Sosnoski wrote:

Hi Alex,

You'll probably have a much easier time of it if you use Jibx2Wsdl 
(included in the current 1.2.1 release of JiBX) rather than Java2WSDL. 
Jibx2Wsdl has a number of nice features, including Java 5 typed 
collection and enum support, automatic JavaDoc extraction to WSDL and 
schema documentation, and extensive customizations support. To include 
extra classes in your data model (such as the subclasses in your 
example), you just need to specify the extra classes on the command line 
using an '-x' argument flag. See the /examples/jibx2wsdl/example3 code 
and build for an example doing just this, using an interface rather than 
an abstract class.


Using Jibx2Wsdl in no way commits you to using JiBX for your services 
(though it's easy to do so, since you get JiBX bindings out of Jibx2Wsdl 
as well as the WSDL and schema).


See the Jibx2Wsdl documentation on the JiBX site (still somewhat 
limited, unfortunately) for details: 
http://jibx.sourceforge.net/fromcode/jibx2wsdl.html


 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Alexander Rosemann wrote:

Hi,

I know, this has been asked before, though I couldn't find an answer 
to it.


I'm busy fiddling around with the Java2WSDL ant task shipped with 
Axis2.  The tool works fine until I try to generate the WSDL from an 
abstract class.


Having an abstract class called Animal and a subclass Dog, it creates 
the schema for the Animal but misses out on the Dog type.


I presume I just can't see what parameter has to be set to get this 
going.


Any pointers that lead to a resolution of my issue are much appreciated.

Thanks,
Alex




--
DI(FH) Alexander Rosemann
open source based software solutions
Naunspitzweg 3 | 6341 Ebbs | Austria
mobile: +43-681-10337082 | email: alexander.rosem...@gmail.com
*** Your partner in building cutting edge open source based
web applications ***


Re: [xdru...@ambarinformatica.com: Re: [OpenSAML] OpenSAML Integration with AXIOM]

2009-03-11 Thread Andreas Veithen
Integrating Axiom with libraries using DOM is recurring problem and
DOOM only provides a partial solution for this. I think that saying
that the authors of DOOM only did what was minimally necessary to get
WS-Security stuff to work for Rampart via the Apache xmlsec library
goes probably a bit too far, but it is a fact that DOOM (as well as
the axis2-saaj implementation built on top of it) is incomplete and
has many issues. Probably one reason is the pattern used by DOOM: it
implements both the Axiom API and DOM. While this sounds reasonable at
first glance, in practice we ended up with something that is a poor
Axiom implementation and a poor DOM implementation. There are
currently no plans to improve that in a systematic way (except for
WSCOMMONS-419, which is more related to DOOM as an Axiom
implementation).

I think there are three possible approaches to solve your issue:

1. We can try to fix specific issues you discover in DOOM to make it
work in your particular use case, as suggested by Ruchith.

2. Starting with version 1.2.8, Axiom has OMSource and OMResult
classes [1] which are implementations of JAXP's Source and Result
classes. You can use these to transform an Axiom tree into DOM (using
a standard implementation of DOM) and vice-versa. These two classes
are based on SAXSource and SAXResult, which means that you loose the
deferred parsing capabilities of Axiom, but in many cases this will be
acceptable.

3. Some time ago I started an alternative DOM implementation for Axiom
which relies on a different pattern than DOOM: it implements the DOM
nodes as lightweight proxies that are backed by an existing Axiom
implementation (typically the default LLOM implementation). This has
several advantages over DOOM, in particular the fact that instead of
converting from and to DOM (which is how DOOM is used in practice),
you can adapt an existing Axiom tree to DOM and create a new Axiom
tree through the DOM API. The goal is to have a really DOM compliant
implementation (including DOM 3), except for the part related to DTD
handling and validation. The implementation is not yet complete, but
already passes a large part of the W3C DOM test suite. I'm interested
in testing this on real world use cases, so I would be happy if you
could post the code that has an issue with DOOM so that I can test it.

Andreas

[1] 
http://ws.apache.org/commons/axiom/apidocs/org/apache/axiom/om/impl/jaxp/package-summary.html

On Wed, Mar 11, 2009 at 17:29, Xavier Drudis Ferran
xdru...@ambarinformatica.com wrote:

 Hi.

 I've stepped on the same issue as Bob Jacoby, and since this post to
 the OpenSAML list is half a year old I'm asking whether it's been
 implemented meanwhile. I wouldn't want to submit an issue to JIRA if
 it's already there in some newer version, but I don't find it. And I
 don't have time now for trying to come with a patch.

 - Forwarded message from Xavier Drudis Ferran 
 xdru...@ambarinformatica.com -

 Envelope-to: xdru...@localhost
 Delivery-date: Wed, 11 Mar 2009 17:16:32 +0100
 X-Sieve: CMU Sieve 2.2
 X-Virus-Scanned: amavisd-new at clarcat.com
 X-Spam-ASN: AS237 198.108.1.0/24
 X-IronPort-Anti-Spam-Filtered: true
 X-IronPort-Anti-Spam-Result: ApICADaAt0lDz4yOgWdsb2JhbACVLwEBFiK8GoQNBoZ4
 X-IronPort-AV: E=Sophos;i=4.38,343,1233550800;
        d=scan'208;a=4425254
 X-Virus-Scanned: amavisd-new at clarcat.com
 Date: Wed, 11 Mar 2009 17:15:30 +0100
 From: Xavier Drudis Ferran xdru...@ambarinformatica.com
 To: mace-opensaml-us...@internet2.edu
 X-Virus-Scanned: by mail.internet2.edu virus scanner
 Reply-To: mace-opensaml-us...@internet2.edu
 X-Sequence: 3457
 List-Id: mace-opensaml-users.internet2.edu
 List-Help: mailto:sy...@internet2.edu?subject=help
 List-Unsubscribe:
        mailto:sy...@internet2.edu?subject=unsubscribe%20mace-opensaml-users
 List-Archive: https://mail.internet2.edu/wws/arc/mace-opensaml-users
 Subject: Re: [OpenSAML] OpenSAML Integration with AXIOM
 X-Virus-Scanned: by mail.internet2.edu virus scanner

 Does anybody know whether there've been any news on this issue
 these last 6 months ?.
 Is still reserialization needed to move from AXIOM to DOM ?

 I've looked at JIRA but I didn't find any issue I could identify
 as related. Maybe I should ask at Axis2-users ?

 On Sun, Sep 28, 2008 at 04:57:25PM -0400, Ruchith Fernando wrote:
 On Mon, Sep 8, 2008 at 4:31 PM, Brent Putman putm...@georgetown.edu wrote:
 
  Bob Jacoby wrote:
  Not strictly an opensaml question, but was hoping folks here could
  provide a pointer. I'm using Axis2 to implement the artifact resolution
  process. What have folks used to convert between the AXIOM object model
  and DOM in order to use the various opensaml marshallers/unmarshallers?
 
  I've found code to move from DOM - AXIOM, but nothing obvious for the
  other way around. I know DOOM supposedly implements the DOM api, and
  tried that, but it doesn't appear to support the full API because when I
  tried to unmarshall a DOOM element I got a:
 
  

Axis2 is writing in my log file (log4j)

2009-03-11 Thread Edgardo Ibañez O.

Hi,

The debug information of axis2 is writing in the log file of my service, 
this is my code:


public class Prueba{
  
   static Logger logger = Logger.getLogger(CPSoapApiWSII.class);

   Properties log = new Properties();
  
   public String getMensaje(String parametro){
  
   String mensaje=Ejecutado +parametro;

   try{
   
log.load(Prueba.class.getResourceAsStream(MyLog4j.properties));

   PropertyConfigurator.configure(log);
   logger.warn(Log de Warning);
   }catch(Exception e){
   logger.warn(e.toString());
   }
   return mensaje;
   }
}

And the log file is:


2009-03-11 18:09:03 DEBUG Input contentType (text/xml; charset=utf-8)
2009-03-11 18:09:03 DEBUG CharSetEncoding from content-type (utf-8)
2009-03-11 18:09:03 DEBUG createSOAPEnvelope using Builder (class 
org.apache.axis2.builder.SOAPBuilder) selected from type (text/xml)

2009-03-11 18:09:03 DEBUG char set encoding set from default =utf-8
2009-03-11 18:09:03 DEBUG [MessageContext: 
logID=urn:uuid:4A346B3230FFC2B9BA1236805743437] Checking pre-condition 
for Phase Transport
2009-03-11 18:09:03 DEBUG [MessageContext: 
logID=urn:uuid:4A346B3230FFC2B9BA1236805743437] Invoking phase Transport
2009-03-11 18:09:03 DEBUG [MessageContext: 
logID=urn:uuid:4A346B3230FFC2B9BA1236805743437] Invoking Handler 
'RequestURIBasedDispatch

...


Any idea?

Thanks.


XMLBeans-Axis2 - Type naming differences

2009-03-11 Thread Martin.Barrs
Hello,

I am using Axis2 1.4 and XMLBeans 2.4. I would like to use XMLBeans ant
task to generate all the XMLBeans artifacts and use Axis2 to just
generate the skels and stubs. This is because I have a mix of .wsdl's
and .xsd's I need to generate and would like to normalize the resource
files.

What I've found is, though, that the Axis2 tasks and XMLBeans tasks name
entities differently when a span in the entity path starts with a
number. For example:
Element namespace - com/example/testService/2009/03
Schema - com/example/testService/2009/03/myTestSchema 
XMLBeans generated element -
com.example.testService.x2009.x03.myTestSchema
Axis2 generated element -
com.example.testService._2009._03.myTestSchema

Note that XMLbeans prepends 'x' and Axis2 '_' to numeric paths.

This difference changes the resource index mapping making it impossible
to use the separately generated files. 


Can anyone tell me how to normalize the naming between Axis2 and
XMLBeans?


Thanks in advance,

Martin






Re: How to change Axis2 response character encoding

2009-03-11 Thread yskm

Hi Andreas,

Thanks for your response, is there any way that we can get response stream
alone?

Thanks,
Sanat

=
Sanat,

It is the responsibility of the service to choose the encoding it
wants to use in its response, and the service is expected to indicate
the encoding in the Content-Type and then to use that encoding in the
response. In your case the service fails to do so (unless you have
discovered a very rare bug in Axis2) and violates the SOAP specs. You
should collect the evidence for this by inspecting the response using
TCPMon or Wireshark and tell the people who developed this service to
fix it.

Andreas





yskm wrote:
 
 Hi,
 
 i am consuming a webservice (dont know the implementation of the service)
 for this i have written my client using axis2 1.4 and rampart 1.4, this
 client is working fine under normal response payload, if response contains
 any special characters like Hello world ai? i.e invalid UTF-8
 characters myclient is breaking... following is the stacktrace
 
 org.apache.axis2.AxisFault: Error in extracting message properties
   at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:166)
   at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99)
   at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
   at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:363)
   at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
   at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
   at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
   at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
   at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
   at
 com.paypal.sparta.inbox.ws.OmnitureWSClient.callService(OmnitureWSClient.java:152)
   at
 com.paypal.sparta.inbox.ws.OmnitureWSClient.call2(OmnitureWSClient.java:88)
   at 
 com.paypal.sparta.inbox.ws.OmnitureReport.main(OmnitureReport.java:35)
 Caused by: org.apache.rampart.RampartException: Error in extracting
 message properties
   at
 org.apache.rampart.RampartMessageData.init(RampartMessageData.java:322)
   at org.apache.rampart.RampartEngine.process(RampartEngine.java:70)
   at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
   ... 12 more
 Caused by: org.apache.ws.security.WSSecurityException: Error in converting
 SOAP Envelope to Document; nested exception is: 
   org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException:
 Invalid UTF-8 middle byte 0x66 (at char #57163, byte #56398)
   at
 org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:161)
   at
 org.apache.rampart.RampartMessageData.init(RampartMessageData.java:158)
   ... 14 more
 Caused by: org.apache.axiom.om.OMException:
 com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x66 (at char
 #57163, byte #56398)
   at
 org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
   at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:327)
   at
 org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:706)
   at
 org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:96)
   ... 15 more
 Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte
 0x66 (at char #57163, byte #56398)
   at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683)
   at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
   at
 org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506)
   at
 org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
   ... 18 more
 Caused by: java.io.CharConversionException: Invalid UTF-8 middle byte 0x66
 (at char #57163, byte #56398)
   at com.ctc.wstx.io.UTF8Reader.reportInvalidOther(UTF8Reader.java:313)
   at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:204)
   at com.ctc.wstx.io.MergedReader.read(MergedReader.java:101)
   at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
   at
 com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
   at
 com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1021)
   at 
 com.ctc.wstx.sr.StreamScanner.parseLocalName2(StreamScanner.java:1771)
   at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1731)
   at
 com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2912)
   at
 com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2846)