On 1/31/06, Sasvata Chatterjee <
[EMAIL PROTECTED]> wrote:
I was not quite accurate in the method call...here's an example from
keel-container:
private String getComponentName(Object component) {
String returnValue = null;
if (Proxy.isProxyClass(component.getClass())) {
Proxy proxy = (Proxy) component;
Object tmp = ProxyObjectFactory.getObject(proxy);
returnValue = tmp.getClass().getName();
} else {
returnValue = component.getClass().getName();
}
return returnValue;
}
On 1/31/06, Sasvata Chatterjee <[EMAIL PROTECTED]> wrote:
> Mike/Gene,
>
> I don't know if this helps, but a quick and dirty way would be to turn
> off Fortress proxies for components altogether (using the "proxy="
> attribute of <keel></keel> in system.xconf). In other words, if the
> component you are storing in the Map itself was serializable, you
> could avoid the PassThroughInvocationHandler not being serializable.
>
> The other option, although not "kosher IOC" :-),would be to do a
> PassThroughInvocationHandler.getObject() to get the actual
> implementation of the object, and not the proxy (again, as long as the
> underlying component you are trying to store is serializable).
>
> Shash
>
> On 1/31/06, Gene McCullough < [EMAIL PROTECTED]> wrote:
> > Yep, but if i leave out the Logger (not sure what reprocussions that has yet
> > on actually running the scheduled job) I just get another
> > NotSerializableException:
> >
> > Error scheduling Quartz job with trigger trig-1 in group DEFAULT
> > org.quartz.JobPersistenceException: Couldn't store job:
> > org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler
> > [See nested exception: java.io.NotSerializableException:
> > org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler
> > ]
> > at
> > org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJob (JobStoreSupport.java:849)
> > at
> > org.quartz.impl.jdbcjobstore.JobStoreTX.storeJobAndTrigger(JobStoreTX.java:163)
> >
> > hmmm
> >
> >
> > On 1/31/06, Michael Nash < [EMAIL PROTECTED]> wrote:
> > > Gene:
> > >
> > > Hmm - not sure how to try to make a Logger serialized. Any way to sift
> > > it out of the map before that happens?
> > >
> > > Mike
> > >
> > > On Tue, 2006-01-31 at 09:27, mcpadawan wrote:
> > > > OK, I understand the exception now. The JobDataMap contains a Logger,
> > > > which needs to be serialized by quartz. Wondering how to make this
> > > > work now, trying some things. If anyone has suggestion, I'd
> > > > appreciate it, but I think I can dig into quartz and find something.
> > > >
> > > > Thanks
> > > > gene
> > > >
> > > > On 1/31/06, mcpadawan <[EMAIL PROTECTED] > wrote:
> > > > Anybody implemented the svc-scheduler-quartz?
> > Specifically,
> > > > with the jdbc store?
> > > > Again, I've had this working in the past, and am adding it to
> > > > my project after updating to the newest cvs (newest
> > > > approximately a month ago). After getting the mysql
> > > > connection worked out (it was giving very specific errors that
> > > > I could fix), I'm now getting this exception:
> > > >
> > > > Error scheduling Quartz job with trigger trig-1 in group
> > > > DEFAULT
> > > > org.quartz.JobPersistenceException: Couldn't
> > store job:
> > > > org.apache.avalon.framework.logger.LogKitLogger
> > [See nested
> > > > exception: java.io.NotSerializableException :
> > > >
> > org.apache.avalon.framework.logger.LogKitLogger]
> > > > at
> > > >
> > org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJob (JobStoreSupport.java:849)
> > > > at
> > > >
> > org.quartz.impl.jdbcjobstore.JobStoreTX.storeJobAndTrigger(JobStoreTX.java
> > :163)
> > > >
> > > > Any help appreciated, this is the LAST bug before putting into
> > > > production!!!
> > > >
> > > > --
> > > > Gene McCullough
> > > >
> > > >
> > > >
> > > > --
> > > > Gene McCullough
> > > >
> > > >
> > ______________________________________________________________________
> > > > http://keelframework.org/docs/
> > > > keelgroup mailing list
> > > > [email protected]
> > > >
> > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
> > >
> > > http://keelframework.org/docs/
> > > keelgroup mailing list
> > > [email protected]
> > >
> > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
> > >
> >
> >
> >
> > --
> > Gene McCullough
> > http://keelframework.org/docs/
> > keelgroup mailing list
> > [email protected]
> > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
> >
> >
> >
>
http://keelframework.org/docs/
keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
--
Gene McCullough
http://keelframework.org/docs/ keelgroup mailing list [email protected] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
