Passing array generated in js use class to java use class (6.0 to 6.1 upgrade issues)
Upon installing AEM 6.1, the solution to my issue in this thread no longer works: http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__a0oj-following_uponthis.html.
I get a similar error message as referenced before:
06.06.2015 16:27:28.256 *ERROR* [0:0:0:0:0:0:0:1 [1433622447711] GET /content/news.html HTTP/1.1] com.adobe.cq.sightly.WCMUse Failed to cast value java.lang.ClassCastException: Cannot cast org.apache.sling.scripting.sightly.js.impl.rhino.HybridObject to io.sightly.java.api.Record at java.lang.Class.cast(Class.java:3361) at com.adobe.cq.sightly.WCMUse.get(WCMUse.java:90) at com.uc.news.ArticlesList.activate(ArticlesList.java:42)
Lines 39-44 of ArticlesList.java:
public Record params=null; @Override public void activate() throws Exception { params = get("params", Record.class);
I'm unable to find documentation on hybridobject, so I'm again unsure how to proceed.