You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2001/04/23 19:53:45 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/sitemap AbstractSitemap.java
bloritsch 01/04/23 10:53:45
Modified: src/org/apache/cocoon/sitemap Tag: xml-cocoon2
AbstractSitemap.java
Log:
Fixed Showstopper. The Sitemap must be made SingleThreaded
Revision Changes Path
No revision
No revision
1.1.2.35 +3 -3 xml-cocoon/src/org/apache/cocoon/sitemap/Attic/AbstractSitemap.java
Index: AbstractSitemap.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/AbstractSitemap.java,v
retrieving revision 1.1.2.34
retrieving revision 1.1.2.35
diff -u -r1.1.2.34 -r1.1.2.35
--- AbstractSitemap.java 2001/04/20 20:50:13 1.1.2.34
+++ AbstractSitemap.java 2001/04/23 17:53:41 1.1.2.35
@@ -16,7 +16,7 @@
import java.util.Map;
import org.apache.avalon.component.ComponentManager;
-import org.apache.avalon.thread.ThreadSafe;
+import org.apache.avalon.thread.SingleThreaded;
import org.apache.avalon.context.Contextualizable;
import org.apache.avalon.context.Context;
import org.apache.avalon.component.Component;
@@ -46,9 +46,9 @@
* Base class for generated <code>Sitemap</code> classes
*
* @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
- * @version CVS $Revision: 1.1.2.34 $ $Date: 2001/04/20 20:50:13 $
+ * @version CVS $Revision: 1.1.2.35 $ $Date: 2001/04/23 17:53:41 $
*/
-public abstract class AbstractSitemap extends AbstractLoggable implements Sitemap, Disposable, ThreadSafe {
+public abstract class AbstractSitemap extends AbstractLoggable implements Sitemap, Disposable, SingleThreaded {
private Context context;
private static final int BYTE_ARRAY_SIZE = 1024;
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org
Re: cvs commit:
xml-cocoon/src/org/apache/cocoon/sitemapAbstractSitemap.java
Posted by Berin Loritsch <bl...@apache.org>.
Davanum Srinivas wrote:
>
> Berin,
>
> Am unable to recreate the NullPointerException. Can you please post the stack trace with the
> latest code from cvs?
I did, a couple of times. The code it fails on is in the TraxTransformer line 154:
TransformerHandler handler = this.tfactory.newTransformerHandler(templates);
Like I said, I am checking configuration issues as well. It happens regardless of
caching or not.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: cvs commit: xml-cocoon/src/org/apache/cocoon/sitemapAbstractSitemap.java
Posted by Davanum Srinivas <di...@yahoo.com>.
Berin,
Am unable to recreate the NullPointerException. Can you please post the stack trace with the
latest code from cvs?
Thanks,
dims
--- Berin Loritsch <bl...@apache.org> wrote:
> giacomo wrote:
> >
> > On 23 Apr 2001 bloritsch@apache.org wrote:
> >
> > > bloritsch 01/04/23 10:53:45
> > >
> > > Modified: src/org/apache/cocoon/sitemap Tag: xml-cocoon2
> > > AbstractSitemap.java
> > > Log:
> > > Fixed Showstopper. The Sitemap must be made SingleThreaded
> > >
> >
> > <snip/>
> >
> > > -public abstract class AbstractSitemap extends AbstractLoggable implements Sitemap,
> Disposable, ThreadSafe {
> > > +public abstract class AbstractSitemap extends AbstractLoggable implements Sitemap,
> Disposable, SingleThreaded {
> >
> > Can you explain this in more detail? The generated Sitemap should be
> > ThreadSafe. SingleThreaded IIRC means that there can only be one thread
> > using that component and each new Thread gets a new instance of that
> > class which is wrong. Well, it might be that I've introduced some code
> > which prevents it from being ThreadSafe.
>
> I recanted, and made it ThreadSafe again.
>
> I was hoping to fix a strange error that happens with the TraxTransformer
> when an exception is thrown from an Action. ??? It's a NullPointerException
> dealing with the templates.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: cvs commit:
xml-cocoon/src/org/apache/cocoon/sitemapAbstractSitemap.java
Posted by Berin Loritsch <bl...@apache.org>.
giacomo wrote:
>
> On 23 Apr 2001 bloritsch@apache.org wrote:
>
> > bloritsch 01/04/23 10:53:45
> >
> > Modified: src/org/apache/cocoon/sitemap Tag: xml-cocoon2
> > AbstractSitemap.java
> > Log:
> > Fixed Showstopper. The Sitemap must be made SingleThreaded
> >
>
> <snip/>
>
> > -public abstract class AbstractSitemap extends AbstractLoggable implements Sitemap, Disposable, ThreadSafe {
> > +public abstract class AbstractSitemap extends AbstractLoggable implements Sitemap, Disposable, SingleThreaded {
>
> Can you explain this in more detail? The generated Sitemap should be
> ThreadSafe. SingleThreaded IIRC means that there can only be one thread
> using that component and each new Thread gets a new instance of that
> class which is wrong. Well, it might be that I've introduced some code
> which prevents it from being ThreadSafe.
I recanted, and made it ThreadSafe again.
I was hoping to fix a strange error that happens with the TraxTransformer
when an exception is thrown from an Action. ??? It's a NullPointerException
dealing with the templates.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: cvs commit: xml-cocoon/src/org/apache/cocoon/sitemap
AbstractSitemap.java
Posted by giacomo <gi...@apache.org>.
On 23 Apr 2001 bloritsch@apache.org wrote:
> bloritsch 01/04/23 10:53:45
>
> Modified: src/org/apache/cocoon/sitemap Tag: xml-cocoon2
> AbstractSitemap.java
> Log:
> Fixed Showstopper. The Sitemap must be made SingleThreaded
>
<snip/>
> -public abstract class AbstractSitemap extends AbstractLoggable implements Sitemap, Disposable, ThreadSafe {
> +public abstract class AbstractSitemap extends AbstractLoggable implements Sitemap, Disposable, SingleThreaded {
Can you explain this in more detail? The generated Sitemap should be
ThreadSafe. SingleThreaded IIRC means that there can only be one thread
using that component and each new Thread gets a new instance of that
class which is wrong. Well, it might be that I've introduced some code
which prevents it from being ThreadSafe.
Giacomo
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org