Simon Laws wrote:
On 9/18/06, Andrew Borley <[EMAIL PROTECTED]> wrote:
Hi,
I've just applied a patch that Simon Laws put up on
http://issues.apache.org/jira/browse/TUSCANY-692 which provides a very
simple PHP based web front-end for The C++ SCA BigBank sample. The
client
is
nice in that it demonstrates the use of the PHP SDO extension working
with
SCA via web-services. It does however bring up the old problem of
invoking
a
composite with both a ws service and a ws reference (which is what the
BigBank sample provides and the WS and PHP clients use). At the moment,
due
to an issue with Axis2C (raised at TUSCANY-536 and AXIS2C-209), this
will
cause a crash. The axis issue is due to be fixed in the next Axis2C
release
(0.94), but I haven't seen any mention of when that is planned for -
0.93was recently released, so it could be a few months.
For now, we could do the following:
- Leave the situation as is and wait for Axis2C 0.94
- Make a simple code change in SCA to comment out the freeing of an Axis
object - this makes things work again, but means that users could get
memory
faults.
- Try to find the issue in Axis and provide a patch that our users can
apply to make things work. This would mean they would need to
download the
Axis source, apply the patch and build the Axis libraries themselves.
I think the third option is probably the best, but does mean that we
need
someone to go delving in Axis2C code to find the issue and work out the
fix...
Any volunteers or better ideas?
Cheers
Andy
Andy
Option3, finding the problem, is the best approach. In the mean time
though
anyone who tries to run the WS client (or the PHP client) will get a
crash
that will be difficult for them to diagnose in the first instance so I
would
make the second change you suggested. I would add a log entry to point
out
that this is happening and reference the JIRA. I think it is better
for the
code to work and log a sensible message about the memory leak and its
cause
rather than just crash.
Regards
Simon
+1 from me. We should workaround the problem now in our code, write a
message in the log, and Axis2C JIRA 209 and/or help fix it.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]