Maundy Thursday
It’s been a while since I last posted a wall of text with some sense in this lost blog. I shall recapitulate what had happened after the month of January.
I started data gathering for my thesis on the month of February. Project checking went like a breeze and defense was mind-boggling but I managed to pass anyhow. I graduated Magna Cum Laude with PhilNITS gold medal accompanying (shocking, eh? :P I was too!).
I had a job offer from SPRASIA Philippines, a Japanese-based start-up company which planned to expand here in the Cebu. It is headed by an alumni from USC CompE. I accepted it because I felt that big companies are too mainstream.
Anyhow, I just finished watching (again) the Lord of the Rings trilogy. The film was so inspiring and I just couldn’t stop myself from posting my favorite quote(s) from the movie:
Frodo: I can’t do this, Sam.
Sam: I know. It’s all wrong. By rights we shouldn’t even be here. But we are. It’s like in the great stories, Mr. Frodo. The ones that really mattered. Full of darkness and danger, they were. And sometimes you didn’t want to know the end. Because how could the end be happy? How could the world go back to the way it was when so much bad had happened? But in the end, it’s only a passing thing, this shadow. Even darkness must pass. A new day will come. And when the sun shines it will shine out the clearer. Those were the stories that stayed with you. That meant something, even if you were too small to understand why. But I think, Mr. Frodo, I do understand. I know now. Folk in those stories had lots of chances of turning back, only they didn’t. They kept going. Because they were holding on to something.
Frodo: What are we holding onto, Sam?
Sam: That there’s some good in this world, Mr. Frodo… and it’s worth fighting for.
I am also currently re-reading Detective Conan (chapter 389 at the moment). I plan to self-study Nihonggo for JLPT 4, at least, but I haven’t got the motivation.
I hope that in the succeeding weeks I will be more productive than now.
P.S. Casual photo by KolorHaus

diorcety’s GraniteDS for OSGI
It uses GraniteDS core 2.2.0. Apparently, it has issues with lists in parameters in RPCs (NoSuchMethodExceptions).
GraniteDS throwing java.lang.NoSuchMethodException
When executing AMF RPC, it returns with a fault with the following similar exception:
java.lang.NoSuchMethodException: myplugin.osgi.flex.HelloWorldService.submitWork[611afb27-7756-4b09-9b03-2c9b2473af5e, [myplugin.entity.WorkUnitFormBean@ff0c1a, myplugin.entity.WorkUnitFormBean@73bf12]]
at org.granite.messaging.service.DefaultMethodMatcher.findServiceMethod(DefaultMethodMatcher.java:82)
…..
If verified more than triple times that the method do exist, then maybe the custom entities are out of date. Execute Gas3 again.
Gas3 throwing unable to resolve class org.granite.generator.as3.reflect.JavaMember
When using Gas3 Eclipse plugin with maven, the generator sometimes throws “unable to resolve class org.granite.generator.as3.reflect.JavaMember”. All you have to do is to execute project clean. Be sure that granite-generator is also included in the class path.
CDI
Must have the beans.xml inside META-INF. I have spent an afternoon finding out why NPE is thrown out while accessing the injected resource. Logs usually show these when injection is up:
INFO: —— Injection requested for framework service type interface javax.jms.Topic and annotated with dynamic=true, serviceCriteria=(jndi-name=jms/suffuse.EventDispatchTopic)
INFO: —— Injection requested for framework service type interface javax.jms.TopicConnectionFactory and annotated with dynamic=true, serviceCriteria=(jndi-name=jms/suffuse.ConnectionFactory)
INFO: —— Injection requested for framework service type interface javax.jms.Topic and annotated with dynamic=true, serviceCriteria=(jndi-name=jms/suffuse.EventDispatchTopic)
INFO: —— Injection requested for framework service type interface javax.jms.TopicConnectionFactory and annotated with dynamic=true, serviceCriteria=(jndi-name=jms/suffuse.ConnectionFactory)
PWC1382: Allocate exception for servlet… Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: No descriptor registered for current invocation: com.sun.enterprise.web.WebComponentInvocation
With this exception:
INFO: PWC1412: WebModule[null] ServletContext.log():PWC1409: Marking servlet neverfall.suffuse.management.ManagementApplication$Servlet as unavailable
WARNING: StandardWrapperValve[neverfall.suffuse.management.ManagementApplication$Servlet]: PWC1382: Allocate exception for servlet neverfall.suffuse.management.ManagementApplication$Servlet
com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class neverfall.suffuse.management.ManagementApplication$Servlet
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:315)
at com.sun.enterprise.web.WebContainer.createServletInstance(WebContainer.java:717)
at com.sun.enterprise.web.WebModule.createServletInstance(WebModule.java:1959)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1263)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1070)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:189)
at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:722)
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Local ejb-ref name=neverfall.suffuse.management.ManagementApplication$Servlet/userAuthenticationService,Local 3.x interface =neverfall.suffuse.management.services.UserAuthenticationService resolved to intra-app EJB UserAuthenticationService in module suffuse-management-console,ejb-link=UserAuthenticationService,lookup=,mappedName=,jndi-name=,refType=Session into class neverfall.suffuse.management.ManagementApplication$Servlet: Lookup failed for ‘java:comp/env/neverfall.suffuse.management.ManagementApplication$Servlet/userAuthenticationService’ in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:703)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:470)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:142)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:128)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:310)
… 29 more
Caused by: javax.naming.NamingException: Lookup failed for ‘java:comp/env/neverfall.suffuse.management.ManagementApplication$Servlet/userAuthenticationService’ in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: No object bound to name java:comp/env/neverfall.suffuse.management.ManagementApplication$Servlet/userAuthenticationService]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:599)
… 33 more
Caused by: javax.naming.NameNotFoundException: No object bound to name java:comp/env/neverfall.suffuse.management.ManagementApplication$Servlet/userAuthenticationService
at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:772)
at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:744)
at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:172)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:498)
… 37 more
It is usually followed by:
SEVERE: Exception while loading the app
SEVERE: Exception while loading the app : Error in linking security policy for suffuse-management-console — Inconsistent Module State
… during the next redeploy. To be able to redeploy, \glassfish\domains\domain1\generated\policy must be cleared and the server restarted. I think this happens with the no web.xml (WebServlet) feature of Servlet 3.0. This is caused by Web Resources pointed to a wrong folder. It should be:

It took some hours to find the solution to this bugger (-_-).
Vaadin with Maven in Eclipse
Provided Maven archetype (clean) doesn’t work with custom boilerplate code AbstractApplicationServlet/ApplicationServlet if you happen to use EJB 3.1 (no interface). It doesn’t work even if you specify your servlet class in web.xml. Kept throwing these exceptions:
[#|2011-12-29T16:12:07.723+0800|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=37;_ThreadName=Thread-4;|StandardWrapperValve[Vaadin Application Servlet]: PWC1382: Allocate exception for servlet Vaadin Application Servlet
java.lang.ClassNotFoundException: neverfall.suffuse.management.ManagementApplication.Servlet
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1519)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1369)
at org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1394)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1258)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1070)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:189)
at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:722)
—— or ——-
[#|2011-12-29T16:39:12.206+0800|SEVERE|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=37;_ThreadName=Thread-4;|WebModule[/suffuse-management-console]Error loading WebappClassLoader (delegate=true; repositories=WEB-INF/classes/) com.vaadin.terminal.gwt.server.ApplicationServlet
java.lang.ClassNotFoundException: com.vaadin.terminal.gwt.server.ApplicationServlet
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1519)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1369)
at org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1394)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1258)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1070)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:189)
at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:722)
—— or ——
[#|2011-12-29T16:39:12.207+0800|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=37;_ThreadName=Thread-4;|StandardWrapperValve[Vaadin Application Servlet]: PWC1382: Allocate exception for servlet Vaadin Application Servlet
java.lang.ClassNotFoundException: com.vaadin.terminal.gwt.server.ApplicationServlet
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1519)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1369)
at org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1394)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1258)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1070)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:189)
at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:722)
Found nothing to fix it on the web. Maven or eclipse seem to compile/deploy bundle with missing files.
This will maven project works though: http://blogs.oracle.com/bobby/entry/a_simple_ui_for_exploring
Forcing application restart in Vaadin
Just need to add a suffix ?restartApplication to the URL
End of project.. beginning of something anew
So yea, today’s the deadline and the same day we pass our project :D. It’s also the start of proposal-making for me :D. Today’s the 15th day of the 40 days and hopefully I’ll make it.
A lot of queer things happened today. First, I caught little RDA (Rankless, Dreamier Agitator) looking at me (lol it was obvious) but I immediately evaded. This isn’t the first time this happened pero magaling akong umilag ;). Second, it rained very hard O_O. We ate lunch at the new CAS canteen where gibahaan mi hahaha. And finally, I saw MEIG (Major Enchants Inane Gone) alot (as in) today. Even pagpadung uli namo from Ayala, we saw them go to Astrovision.
God bless us all for our thesis B-)

