axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: Calendar Serialization MT + Java Provider patch
Date Wed, 19 Jun 2002 15:40:14 GMT
Thomas,

Checked in patch(es). Please cross-check.

Thanks,
dims

--- Thomas Sandholm <sandholm@mcs.anl.gov> wrote:
> Hi,
> 
> this patch fixes a bug in the CalendarSerialization which previously made 
> it non thread safe (see 
> http://developer.java.sun.com/developer/bugParade/bugs/4229798.html)
> 
> The other fix in the patch is the JavaProvider getServiceObject method 
> which was made private for some reason. Because we have a lifecycle model 
> that is quite different from the one in the provided method we need to 
> override it, which was made impossible when it changed into being private.
> 
> 
> /Thomas
> 
> Thomas Sandholm <sandholm@mcs.anl.gov>
> The Globus Project(tm) <http://www.globus.org>
> Ph: 630-252-1682, Fax: 630-252-1997
> Argonne National Laboratory
> > cvs server: Diffing .
> cvs server: Diffing javax
> cvs server: Diffing javax/rpc
> cvs server: Diffing javax/rpc/encoding
> cvs server: Diffing javax/rpc/holders
> cvs server: Diffing javax/rpc/namespace
> cvs server: Diffing javax/rpc/soap
> cvs server: Diffing javax/xml
> cvs server: Diffing javax/xml/messaging
> cvs server: Diffing javax/xml/namespace
> cvs server: Diffing javax/xml/rpc
> cvs server: Diffing javax/xml/rpc/encoding
> cvs server: Diffing javax/xml/rpc/handler
> cvs server: Diffing javax/xml/rpc/handler/soap
> cvs server: Diffing javax/xml/rpc/holders
> cvs server: Diffing javax/xml/rpc/namespace
> cvs server: Diffing javax/xml/rpc/server
> cvs server: Diffing javax/xml/rpc/soap
> cvs server: Diffing javax/xml/soap
> cvs server: Diffing javax/xml/transform
> cvs server: Diffing org
> cvs server: Diffing org/apache
> cvs server: Diffing org/apache/avalon
> cvs server: Diffing org/apache/avalon/excalibur
> cvs server: Diffing org/apache/avalon/excalibur/cli
> cvs server: Diffing org/apache/axis
> cvs server: Diffing org/apache/axis/attachments
> cvs server: Diffing org/apache/axis/client
> cvs server: Diffing org/apache/axis/client/http
> cvs server: Diffing org/apache/axis/client/tcp
> cvs server: Diffing org/apache/axis/common
> cvs server: Diffing org/apache/axis/configuration
> cvs server: Diffing org/apache/axis/deployment
> cvs server: Diffing org/apache/axis/deployment/simple
> cvs server: Diffing org/apache/axis/deployment/v2dd
> cvs server: Diffing org/apache/axis/deployment/v2dd/providers
> cvs server: Diffing org/apache/axis/deployment/wsdd
> cvs server: Diffing org/apache/axis/deployment/wsdd/providers
> cvs server: Diffing org/apache/axis/deployment/wsml
> cvs server: Diffing org/apache/axis/description
> cvs server: Diffing org/apache/axis/encoding
> cvs server: Diffing org/apache/axis/encoding/ser
> Index: org/apache/axis/encoding/ser/CalendarSerializer.java
> ===================================================================
> RCS file:
> /home/cvspublic/xml-axis/java/src/org/apache/axis/encoding/ser/CalendarSerializer.java,v
> retrieving revision 1.3
> diff -u -r1.3 CalendarSerializer.java
> --- org/apache/axis/encoding/ser/CalendarSerializer.java	11 Jun 2002 14:53:55 -0000	1.3
> +++ org/apache/axis/encoding/ser/CalendarSerializer.java	19 Jun 2002 14:56:40 -0000
> @@ -99,8 +99,13 @@
>  
>          Calendar calendar = (Calendar) value;
>          Date date = calendar.getTime();
> +        // Sun JDK bug http://developer.java.sun.com/developer/bugParade/bugs/4229798.html
> +        String format = null;
> +        synchronized (zulu) {
> +            format = zulu.format(date);
> +        }
>          // Serialize including convert to GMT
> -        context.writeString(zulu.format(date));
> +        context.writeString(format);
>  
>          context.endElement();
>      }
> cvs server: Diffing org/apache/axis/enum
> cvs server: Diffing org/apache/axis/handlers
> cvs server: Diffing org/apache/axis/handlers/http
> cvs server: Diffing org/apache/axis/handlers/providers
> cvs server: Diffing org/apache/axis/handlers/soap
> cvs server: Diffing org/apache/axis/handlers/tcp
> cvs server: Diffing org/apache/axis/message
> cvs server: Diffing org/apache/axis/message/events
> cvs server: Diffing org/apache/axis/providers
> cvs server: Diffing org/apache/axis/providers/java
> Index: org/apache/axis/providers/java/JavaProvider.java
> ===================================================================
> RCS file: /home/cvspublic/xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java,v
> retrieving revision 1.60
> diff -u -r1.60 JavaProvider.java
> --- org/apache/axis/providers/java/JavaProvider.java	11 Jun 2002 14:33:25 -0000	1.60
> +++ org/apache/axis/providers/java/JavaProvider.java	19 Jun 2002 14:56:40 -0000
> @@ -109,7 +109,7 @@
>       * Get the service object whose method actually provides the service.
>       * May look up in session table.
>       */
> -    private Object getServiceObject (MessageContext msgContext,
> +    public Object getServiceObject (MessageContext msgContext,
>                                      Handler service,
>                                      String clsName,
>                                      IntHolder scopeHolder)
> cvs server: Diffing org/apache/axis/registries
> cvs server: Diffing org/apache/axis/resolver
> cvs server: Diffing org/apache/axis/resolver/ejb
> cvs server: Diffing org/apache/axis/resolver/java
> cvs server: Diffing org/apache/axis/resolver/jws
> cvs server: Diffing org/apache/axis/resolver/sd
> cvs server: Diffing org/apache/axis/resolver/sd/schema
> cvs server: Diffing org/apache/axis/resolver/sd/schema/providers
> cvs server: Diffing org/apache/axis/rpc
> cvs server: Diffing org/apache/axis/rpc/encoding
> cvs server: Diffing org/apache/axis/rpc/holders
> cvs server: Diffing org/apache/axis/rpc/namespace
> cvs server: Diffing org/apache/axis/rpc/soap
> cvs server: Diffing org/apache/axis/security
> cvs server: Diffing org/apache/axis/security/servlet
> cvs server: Diffing org/apache/axis/security/simple
> cvs server: Diffing org/apache/axis/server
> cvs server: Diffing org/apache/axis/server/transports
> cvs server: Diffing org/apache/axis/session
> cvs server: Diffing org/apache/axis/soap
> cvs server: Diffing org/apache/axis/strategies
> cvs server: Diffing org/apache/axis/suppliers
> cvs server: Diffing org/apache/axis/transport
> cvs server: Diffing org/apache/axis/transport/http
> cvs server: Diffing org/apache/axis/transport/local
> cvs server: Diffing org/apache/axis/transport/tcp
> cvs server: Diffing org/apache/axis/utils
> cvs server: Diffing org/apache/axis/utils/bytecode
> cvs server: Diffing org/apache/axis/utils/cache
> cvs server: Diffing org/apache/axis/utils/compiler
> cvs server: Diffing org/apache/axis/utils/events
> cvs server: Diffing org/apache/axis/utils/events/debug
> cvs server: Diffing org/apache/axis/visitors
> cvs server: Diffing org/apache/axis/wsdl
> cvs server: Diffing org/apache/axis/wsdl/fromJava
> cvs server: Diffing org/apache/axis/wsdl/gen
> cvs server: Diffing org/apache/axis/wsdl/holders
> cvs server: Diffing org/apache/axis/wsdl/symbolTable
> cvs server: Diffing org/apache/axis/wsdl/test
> cvs server: Diffing org/apache/axis/wsdl/toJava
> cvs server: Diffing org/apache/axis/wsdlgen
> cvs server: Diffing org/apache/axis2
> cvs server: Diffing org/apache/axis2/message
> cvs server: Diffing org/apache/axis2/message/adapters
> cvs server: Diffing org/apache/axis2/message/impl
> cvs server: Diffing org/apache/axis2/util
> cvs server: Diffing org/apache/axis2/util/xml
> 


=====
Davanum Srinivas - http://xml.apache.org/~dims/

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Mime
View raw message