Anton,
Perhaps its because it's the weekend or something but yes I have the
JRebel log file on at all times... Thanks for the reminder to check it
as things finally clicked.
So Marcus was right... the now infamous Helper class is coming from
elsewhere... guess who... the JRebel Stripes PLUGIN code!!!!!!
Yes... it appears the Helper class is a proxy that is part of the JRebel
plug-in is in turn tightly coupled to the Stripes code so that it can
support hot reload however in fixing STS-762 (Eliminate
UrlBindingFactory.getInstance() from 1.5.x branch) the JRebel Stripes
plug-in is now broken as a side effect.
Why - because the plug-in Helper class has code that calls
UrlBindingFactory.getInstance() like:
public Class getActionBeanType(String urlBinding) {
UrlBinding binding =
UrlBindingFactory.getInstance().getBindingPrototype(urlBinding);
Class cls = binding != null ? binding.getBeanType() : null;
if(cls == null && !urlBinding.endsWith(".jsp"))
cls = rescanFor(urlBinding);
return cls;
}
Now that the issue is clearly understood I'll contact the folks at Zero
Turn Around but as the code has gone from leveraging a singleton
instance of the UrlBindingFactory to having a local instance within the
AnnotatedClassActionResolver I think it will be far more challenging to
get the plug-in to work again.
In any event - what a ride - what a day....
--Nikolaos
[51282] Found Javassist class
file:/ByteArrayClassPath/net/sourceforge/stripes/controller/NameBasedActionResolver.class
for net.sourceforge.stripes.controller.NameBasedActionResolver
[51283] org.glassfish.web.loader.webappclassloa...@5d4e9726 found
resource:
'net/sourceforge/stripes/controller/NameBasedActionResolverHelper.class'
from
'jrjar:jar:file:/Users/nikolaos2/home/dv/jrebel/jrebel.jar/plugins/javarebel-stripes-plugin-1.0.11.jar/net/sourceforge/stripes/controller/NameBasedActionResolverHelper.class'.
[51284] org.glassfish.web.loader.webappclassloa...@5d4e9726 found
resource: 'net/sourceforge/stripes/config/Configuration.class' from
'jar:file:/Users/nikolaos2/home/dv/oracle-glassfish-3.0/glassfish/domains/domain1/autodeploy/ui-web.war/WEB-INF/lib/stripes-1.5.4.jar!/net/sourceforge/stripes/config/Configuration.class'.
[51285] org.glassfish.web.loader.webappclassloa...@5d4e9726 found
resource:
'net/sourceforge/stripes/controller/NameBasedActionResolverHelper.class'
from
'jrjar:jar:file:/Users/nikolaos2/home/dv/jrebel/jrebel.jar/plugins/javarebel-stripes-plugin-1.0.11.jar/net/sourceforge/stripes/controller/NameBasedActionResolverHelper.class'.
[51286] org.glassfish.web.loader.webappclassloa...@5d4e9726 found
resource:
'net/sourceforge/stripes/controller/AnnotatedClassActionResolver.class'
from
'jar:file:/Users/nikolaos2/home/dv/oracle-glassfish-3.0/glassfish/domains/domain1/autodeploy/ui-web.war/WEB-INF/lib/stripes-1.5.4.jar!/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.class'.
[51286] org.glassfish.web.loader.webappclassloa...@5d4e9726 found
resource:
'net/sourceforge/stripes/controller/AnnotatedClassActionResolver.class'
from
'jar:file:/Users/nikolaos2/home/dv/oracle-glassfish-3.0/glassfish/domains/domain1/autodeploy/ui-web.war/WEB-INF/lib/stripes-1.5.4.jar!/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.class'.
[51289] org.glassfish.web.loader.webappclassloa...@5d4e9726 found
resource: 'net/sourceforge/stripes/action/ActionBeanContext.class' from
'jar:file:/Users/nikolaos2/home/dv/oracle-glassfish-3.0/glassfish/domains/domain1/autodeploy/ui-web.war/WEB-INF/lib/stripes-1.5.4.jar!/net/sourceforge/stripes/action/ActionBeanContext.class'.
[51290] org.glassfish.web.loader.webappclassloa...@5d4e9726 found
resource: 'net/sourceforge/stripes/action/ActionBean.class' from
'jar:file:/Users/nikolaos2/home/dv/oracle-glassfish-3.0/glassfish/domains/domain1/autodeploy/ui-web.war/WEB-INF/lib/stripes-1.5.4.jar!/net/sourceforge/stripes/action/ActionBean.class'.
[51291] Class
'net/sourceforge/stripes/controller/NameBasedActionResolver' processed
by
'se.knifhen.javarebel.plugin.namebasedactionresolverbytecodeproces...@org.glassfish.web.loader.webappclassloader@5d4e9726'.
[51304] Found Javassist class
file:/ByteArrayClassPath/net/sourceforge/stripes/controller/UrlBindingFactory.class
for net.sourceforge.stripes.controller.UrlBindingFactory
[51307] org.glassfish.web.loader.webappclassloa...@5d4e9726 found
resource: 'net/sourceforge/stripes/controller/UrlBinding.class' from
'jar:file:/Users/nikolaos2/home/dv/oracle-glassfish-3.0/glassfish/domains/domain1/autodeploy/ui-web.war/WEB-INF/lib/stripes-1.5.4.jar!/net/sourceforge/stripes/controller/UrlBinding.class'.
[51308] Class 'net/sourceforge/stripes/controller/UrlBindingFactory'
processed by
'se.knifhen.javarebel.plugin.urlbindingfactorybytecodeproces...@org.glassfish.web.loader.webappclassloader@5d4e9726'.
[51321] org.glassfish.web.loader.webappclassloa...@5d4e9726 instrumented
class 'org.lightagents.ui.stripes.extensions.MyActionResolver' from
'Virtual Resource
[org/lightagents/ui/stripes/extensions/MyActionResolver.class, Dir
[/Users/nikolaos2/home/sw/company/lightagents/lightagents-tier-ui-web/WebRoot/WEB-INF/classes,
[]]]'.
Anton wrote:
If you have the source code for the helper class it will be very useful for
JRebel support to figure out what has happened.
Also, -Drebel.log=true could give more information about the behavior.
Anton
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development