You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by ru...@us.ibm.com on 1999/11/29 04:56:00 UTC

Re: Error in startup (CALLING ANY AND ALL SUN DEVELOPERS)



>Just wanted to throw in my two cents that this is not an isolated
>incident.  I'm having the same problem and am not sure on how to resolve
>it.

Pawan, Aaron - by any chance are either of you using JDK 1.1?  If so, the
real error could be masked by an incorrect call to the MessageFormat
routine.

To any and all Sun developers...is it possible that com\sun\xml\util\
MessageCatalog.class could benefit from the patch listed below?

Finally, to any and all jakarta committers, could someone do me the
courtesy and tell me why this and another patch I have submitted over two
weeks ago have not been so much as acknowledged?

===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/util/StringManager.java,v


retrieving revision 1.1.1.1
diff -u -r1.1.1.1 StringManager.java
--- StringManager.java  1999/10/09 00:20:56     1.1.1.1
+++ StringManager.java  1999/11/13 20:59:23
@@ -156,7 +156,12 @@
        // objects and barf out

        try {
-           iString = MessageFormat.format(value, args);
+           // ensure the arguments are not null so pre 1.2.2 VM's don't
barf
+           Object nonNullArgs[] = new Object[args.length];
+           for (int i=0; i<args.length; i++)
+               nonNullArgs[i] = (args[i]==null ? "null" : args[i]);
+
+           iString = MessageFormat.format(value, nonNullArgs);
        } catch (IllegalArgumentException iae) {
            StringBuffer buf = new StringBuffer();
            buf.append(value);

If someone know the answer to this one, please post it to the group.



Re: Error in startup (CALLING ANY AND ALL SUN DEVELOPERS)

Posted by James Duncan Davidson <ja...@eng.sun.com>.
Pierpaolo Fumagalli wrote:
> Not having a nice "fixme" list, as we do on Java Apache is a major
> problem... Any news on this front?

I took a look Jitterbug and it looks like it can serve our purposes ok..
I'd get it set up on locus except that I'm so buried over the next
couple of days (weeks). Pier, if you want to converse about this
quickly, let me know.

-- 
James Davidson                                     duncan@eng.sun.com 
Java + XML / Portable Code + Portable Data                 !try; do()



Re: Error in startup (CALLING ANY AND ALL SUN DEVELOPERS)

Posted by Pierpaolo Fumagalli <pi...@apache.org>.
rubys@us.ibm.com <ru...@us.ibm.com> wrote:
> 
> Finally, to any and all jakarta committers, could someone do me the
> courtesy and tell me why this and another patch I have submitted over two
> weeks ago have not been so much as acknowledged?

I'm very sorry that this happens, but as Jon pointed out privately, the lack
of a bug tracking system is IMHO the cause of those things...
Not having a nice "fixme" list, as we do on Java Apache is a major
problem... Any news on this front?

    Pier