tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heck, Bob" <bob.h...@eds.com>
Subject StackMapTable format error: bad class index
Date Thu, 04 Oct 2007 20:46:04 GMT

Trying very simple Tapestry 5 test app.  Can't get past this road block
would appreciate assistance.

At the bottom of the exception diagnostic info it shows that I do have
active session information.

I just don't know what this error means.  Please help.

Bob

=========================================================
HTML file:



<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta>
<title>Metrix Document Management</title>
</head>
<body>

<table t:type="Grid" source="groupList">
       
</table>

</body>
</html>

=========================================================
Java file:

package eds.sla.spring.web.tapestry.pages;

import java.util.ArrayList;
import java.util.List;

import org.apache.tapestry.annotations.Inject;
import org.apache.tapestry.annotations.Service;
import org.apache.tapestry.services.Request;
import org.apache.tapestry.services.RequestGlobals;

import eds.sla.web.config.UserProfile;

public class DocManagement {

	@Inject
	@Service("RequestGlobals")
	private RequestGlobals requestGlobals;
	Request request = requestGlobals.getRequest();

	public List<String> getGroupList() {
		UserProfile userProfile = (UserProfile)
request.getSession(false)
				.getAttribute(UserProfile.SESSION_NAME);
		if (userProfile != null) {
			return userProfile.getUserGroups();
		} else {
			return new ArrayList<String>();
		}

	}
}


=========================================================
ERROR:

An unexpected application exception has occurred.
*	org.apache.tapestry.internal.services.TransformationException 
		StackMapTable format error: bad class index 
		transformation 
			InternalClassTransformation[
			public
eds.sla.spring.web.tapestry.pages.DocManagement extends java.lang.Object
			  implements
org.apache.tapestry.runtime.Component,
org.apache.tapestry.runtime.RenderCommand

			add default method: public void
postRenderCleanup()
			<default>

			add default method: public void
setupRender(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
			<default>

			add default method: public void
beginRender(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
			<default>

			add default method: public void
beforeRenderTemplate(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
			<default>

			add default method: public void
afterRenderTemplate(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
			<default>

			add default method: public void
beforeRenderBody(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
			<default>

			add default method: public void
afterRenderBody(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
			<default>

			add default method: public void
afterRender(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
			<default>

			add default method: public void
cleanupRender(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
			<default>

			add default method: public boolean
handleComponentEvent(org.apache.tapestry.runtime.ComponentEvent $1)
			<default>

			add default method: public
org.apache.tapestry.ComponentResources getComponentResources()
			<default>

			add default method: public void
containingPageDidLoad()
			<default>

			add default method: public void
containingPageDidDetach()
			<default>

			add default method: public void
containingPageDidAttach()
			<default>

			add field: protected final
org.apache.tapestry.internal.InternalComponentResources _$resources;

			replace method: public final
org.apache.tapestry.ComponentResources getComponentResources()
			return _$resources;

			add method: private void
_$write_requestGlobals(org.apache.tapestry.services.RequestGlobals $1)
			throw new java.lang.RuntimeException("Field
eds.sla.spring.web.tapestry.pages.DocManagement.requestGlobals is
read-only.");

			replace write requestGlobals:
_$write_requestGlobals();

			add default method: public void
render(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.RenderQueue $2)
			<default>

			replace method: public void
render(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.RenderQueue $2)
			_$resources.queueRender($2);

			convert default constructor: initializer();

			add constructor:
eds.sla.spring.web.tapestry.pages.DocManagement(org.apache.tapestry.inte
rnal.InternalComponentResources $1,
org.apache.tapestry.services.RequestGlobals $2)
			{
			  _$resources = $1;
			  requestGlobals = $2;
			  initializer();

			}

			]
*	java.lang.ClassFormatError 
		StackMapTable format error: bad class index 
		Stack trace 
*	java.lang.Class.getDeclaredConstructors0(Native Method) 
*	java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) 
*	java.lang.Class.getConstructors(Class.java:1459) 
*
org.apache.tapestry.internal.services.ReflectiveInstantiator.findConstru
ctor(ReflectiveInstantiator.java:65) 
*
org.apache.tapestry.internal.services.ReflectiveInstantiator.<init>(Refl
ectiveInstantiator.java:53) 
*
org.apache.tapestry.internal.services.InternalClassTransformationImpl.cr
eateInstantiator(InternalClassTransformationImpl.java:1227) 
*
org.apache.tapestry.internal.services.ComponentClassTransformerImpl.crea
teInstantiator(ComponentClassTransformerImpl.java:157) 
*
org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl.fi
ndInstantiator(ComponentInstantiatorSourceImpl.java:242) 
*
org.apache.tapestry.internal.services.PageElementFactoryImpl.newRootComp
onentElement(PageElementFactoryImpl.java:319) 
*
org.apache.tapestry.internal.services.PageLoaderProcessor.loadRootCompon
ent(PageLoaderProcessor.java:405) 
*
org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage(PageL
oaderProcessor.java:390) 
*
org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(PageLoader
Impl.java:59) 
*
org.apache.tapestry.internal.services.PagePoolImpl.checkout(PagePoolImpl
.java:70) 
*
org.apache.tapestry.internal.services.RequestPageCacheImpl.get(RequestPa
geCacheImpl.java:44) 
*
org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handl
e(PageRenderRequestHandlerImpl.java:55) 
*
org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch(Page
RenderDispatcher.java:72) 
*
org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.ja
va:1066) 
*
org.apache.tapestry.internal.services.LocalizationFilter.service(Localiz
ationFilter.java:43) 
*
org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.jav
a:657) 
*
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFi
lesFilter.java:63) 
*
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Che
ckForUpdatesFilter.java:97) 
*
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Che
ckForUpdatesFilter.java:88) 
*
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(Concurr
entBarrier.java:77) 
*
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(Chec
kForUpdatesFilter.java:110) 
*
org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.ja
va:1044) 
*
org.apache.tapestry.upload.services.MultipartServletRequestFilter.servic
e(MultipartServletRequestFilter.java:42) 
*
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:135) 
*
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235) 
*
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206) 
*
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:228) 
*
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175) 
*
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:433) 
*
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128) 
*
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:104) 
*
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109) 
*
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
16) 
*
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
4) 
*
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:634) 
*
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) 
*	java.lang.Thread.run(Thread.java:619) 
Request
Context Path 
	none (deployed as root) 
Request Path 
	/DocManagement 
Locale 
	en_US
Headers 
accept 
	*/* 
accept-encoding 
	gzip, deflate 
accept-language 
	en-us 
connection 
	Keep-Alive 
cookie 
	JSESSIONID=A35FDA83996AB4AEA6C65FFD53382349;
login.username=600957 
host 
	metrix.localhost:8080 
user-agent 
	Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322; .NET CLR 2.0.50727)
Session
_isSuperUser 
	true 
_showAdminFunctions 
	true 
userProfile 
	eds.sla.web.config.UserProfile@954549 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message