Stuckless,
So I see you changed the format of Original Air Date a little bit. I had to reget all my metadata to fill them in,no biggie. But Now i'm trying to create a view and sort on the Original Air Date. I'm using the following , but it doesn't seem to like it. My guess is that there are a couple of items with NO originalAirDate value, and it's not handling the null value in the sort...
Code:
<sort by="originalairdate">
<option name="sort-order" value="desc"/>
</sort>
I get the following in the phoenix.log
Code:
java.lang.NullPointerException
at sagex.phoenix.vfs.sorters.OriginalAirDateSorter.compare(OriginalAirDateSorter.java:27)
at sagex.phoenix.vfs.sorters.OriginalAirDateSorter.compare(OriginalAirDateSorter.java:15)
at sagex.phoenix.vfs.sorters.Sorter.compare(Sorter.java:87)
at sagex.phoenix.vfs.sorters.Sorter.compare(Sorter.java:22)
at sagex.phoenix.vfs.sorters.MultiLevelComparator.compare(MultiLevelComparator.java:23)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at sagex.phoenix.vfs.views.ViewPresentation.sort(ViewPresentation.java:121)
at sagex.phoenix.vfs.views.ViewFolder.decorate(ViewFolder.java:184)
at sagex.phoenix.vfs.DecoratedMediaFolder.getChildren(DecoratedMediaFolder.java:90)
at org.jdna.bmt.web.server.BrowsingServicesImpl.getView(BrowsingServicesImpl.java:861)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
2011-04-21 19:02:03,588 [12890586@qtp-26876421-1] INFO sagex.phoenix.vfs.views.ViewFactory - Creating view for: Recently Released; id: Recent_Rel_Movies; Options: null