SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #361  
Old 05-18-2011, 03:56 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Bug?

Sean,

I'm trying to use MediaFileAPI.GetStartTimesForSegments(MediaFile) and it keeps throwing an exception. Code is as follows:

Code:
    public static void test(Object MediaFile) {
        System.out.println("TEST 1");
        long segmentStartTimes1[] = MediaFileAPI.GetStartTimesForSegments(MediaFile);
        System.out.println("TEST 2");
    }
Stack trace:

Code:
Wed 5/18 17:50:13.235 [AWT-EventQueue-0@117f31e] TEST 1
Wed 5/18 17:50:13.236 [AWT-EventQueue-0@117f31e] java.lang.reflect.InvocationTargetException
Wed 5/18 17:50:13.236 [AWT-EventQueue-0@117f31e] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Wed 5/18 17:50:13.240 [AWT-EventQueue-0@117f31e] sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
Wed 5/18 17:50:13.241 [AWT-EventQueue-0@117f31e] sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
Wed 5/18 17:50:13.241 [AWT-EventQueue-0@117f31e] java.lang.reflect.Method.invoke(Unknown Source)
Wed 5/18 17:50:13.241 [AWT-EventQueue-0@117f31e] sage.e$e.a(Unknown Source)
Wed 5/18 17:50:13.241 [AWT-EventQueue-0@117f31e] sage.a.m$b.a(Unknown Source)
Wed 5/18 17:50:13.245 [AWT-EventQueue-0@117f31e] sage.a.m.a(Unknown Source)
Wed 5/18 17:50:13.245 [AWT-EventQueue-0@117f31e] sage.e.a(Unknown Source)
Wed 5/18 17:50:13.245 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.246 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.248 [AWT-EventQueue-0@117f31e] sage.e.a(Unknown Source)
Wed 5/18 17:50:13.249 [AWT-EventQueue-0@117f31e] sage.e.a(Unknown Source)
Wed 5/18 17:50:13.249 [AWT-EventQueue-0@117f31e] sage.e.a(Unknown Source)
Wed 5/18 17:50:13.249 [AWT-EventQueue-0@117f31e] sage.ca.if(Unknown Source)
Wed 5/18 17:50:13.249 [AWT-EventQueue-0@117f31e] sage.UIManager.a(Unknown Source)
Wed 5/18 17:50:13.251 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.251 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.252 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.253 [AWT-EventQueue-0@117f31e] sage.bd.null(Unknown Source)
Wed 5/18 17:50:13.254 [AWT-EventQueue-0@117f31e] sage.bd.for(Unknown Source)
Wed 5/18 17:50:13.255 [AWT-EventQueue-0@117f31e] sage.ca.char(Unknown Source)
Wed 5/18 17:50:13.255 [AWT-EventQueue-0@117f31e] sage.EventRouter.a(Unknown Source)
Wed 5/18 17:50:13.255 [AWT-EventQueue-0@117f31e] sage.EventRouter.do(Unknown Source)
Wed 5/18 17:50:13.255 [AWT-EventQueue-0@117f31e] sage.EventRouter.keyPressed(Unknown Source)
Wed 5/18 17:50:13.256 [AWT-EventQueue-0@117f31e] java.awt.Component.processKeyEvent(Unknown Source)
Wed 5/18 17:50:13.257 [AWT-EventQueue-0@117f31e] java.awt.Component.processEvent(Unknown Source)
Wed 5/18 17:50:13.262 [AWT-EventQueue-0@117f31e] java.awt.Component.dispatchEventImpl(Unknown Source)
Wed 5/18 17:50:13.263 [AWT-EventQueue-0@117f31e] java.awt.Component.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.263 [AWT-EventQueue-0@117f31e] java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
Wed 5/18 17:50:13.263 [AWT-EventQueue-0@117f31e] java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
Wed 5/18 17:50:13.264 [AWT-EventQueue-0@117f31e] java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
Wed 5/18 17:50:13.264 [AWT-EventQueue-0@117f31e] java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
Wed 5/18 17:50:13.264 [AWT-EventQueue-0@117f31e] java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.264 [AWT-EventQueue-0@117f31e] java.awt.Component.dispatchEventImpl(Unknown Source)
Wed 5/18 17:50:13.265 [AWT-EventQueue-0@117f31e] java.awt.Component.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.265 [AWT-EventQueue-0@117f31e] java.awt.EventQueue.dispatchEventImpl(Unknown Source)
Wed 5/18 17:50:13.265 [AWT-EventQueue-0@117f31e] java.awt.EventQueue.access$000(Unknown Source)
Wed 5/18 17:50:13.265 [AWT-EventQueue-0@117f31e] java.awt.EventQueue$1.run(Unknown Source)
Wed 5/18 17:50:13.265 [AWT-EventQueue-0@117f31e] java.awt.EventQueue$1.run(Unknown Source)
Wed 5/18 17:50:13.266 [AWT-EventQueue-0@117f31e] java.security.AccessController.doPrivileged(Native Method)
Wed 5/18 17:50:13.267 [AWT-EventQueue-0@117f31e] java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
Wed 5/18 17:50:13.267 [AWT-EventQueue-0@117f31e] java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
Wed 5/18 17:50:13.267 [AWT-EventQueue-0@117f31e] java.awt.EventQueue$2.run(Unknown Source)
Wed 5/18 17:50:13.267 [AWT-EventQueue-0@117f31e] java.awt.EventQueue$2.run(Unknown Source)
Wed 5/18 17:50:13.268 [AWT-EventQueue-0@117f31e] java.security.AccessController.doPrivileged(Native Method)
Wed 5/18 17:50:13.268 [AWT-EventQueue-0@117f31e] java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
Wed 5/18 17:50:13.269 [AWT-EventQueue-0@117f31e] java.awt.EventQueue.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.269 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
Wed 5/18 17:50:13.270 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
Wed 5/18 17:50:13.285 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
Wed 5/18 17:50:13.285 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpEvents(Unknown Source)
Wed 5/18 17:50:13.285 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpEvents(Unknown Source)
Wed 5/18 17:50:13.285 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.run(Unknown Source)
Wed 5/18 17:50:13.286 [AWT-EventQueue-0@117f31e] java.lang.ClassCastException: [[J cannot be cast to [J
Wed 5/18 17:50:13.291 [AWT-EventQueue-0@117f31e] sagex.api.MediaFileAPI.GetStartTimesForSegments(MediaFileAPI.java:1274)
Wed 5/18 17:50:13.291 [AWT-EventQueue-0@117f31e] tmiranda.aar.API.test(API.java:202)
Wed 5/18 17:50:13.291 [AWT-EventQueue-0@117f31e] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Wed 5/18 17:50:13.293 [SageTV@181170d] Done starting core plugins.
Wed 5/18 17:50:13.294 [AWT-EventQueue-0@117f31e] sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
Wed 5/18 17:50:13.294 [AWT-EventQueue-0@117f31e] sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
Wed 5/18 17:50:13.295 [AWT-EventQueue-0@117f31e] java.lang.reflect.Method.invoke(Unknown Source)
Wed 5/18 17:50:13.295 [AWT-EventQueue-0@117f31e] sage.e$e.a(Unknown Source)
Wed 5/18 17:50:13.295 [AWT-EventQueue-0@117f31e] sage.a.m$b.a(Unknown Source)
Wed 5/18 17:50:13.295 [AWT-EventQueue-0@117f31e] sage.a.m.a(Unknown Source)
Wed 5/18 17:50:13.295 [AWT-EventQueue-0@117f31e] sage.e.a(Unknown Source)
Wed 5/18 17:50:13.295 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.296 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.296 [AWT-EventQueue-0@117f31e] sage.e.a(Unknown Source)
Wed 5/18 17:50:13.296 [AWT-EventQueue-0@117f31e] sage.e.a(Unknown Source)
Wed 5/18 17:50:13.296 [AWT-EventQueue-0@117f31e] sage.e.a(Unknown Source)
Wed 5/18 17:50:13.296 [AWT-EventQueue-0@117f31e] sage.ca.if(Unknown Source)
Wed 5/18 17:50:13.296 [AWT-EventQueue-0@117f31e] sage.UIManager.a(Unknown Source)
Wed 5/18 17:50:13.296 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.297 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.297 [AWT-EventQueue-0@117f31e] sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.297 [AWT-EventQueue-0@117f31e] sage.bd.null(Unknown Source)
Wed 5/18 17:50:13.299 [AWT-EventQueue-0@117f31e] sage.bd.for(Unknown Source)
Wed 5/18 17:50:13.299 [AWT-EventQueue-0@117f31e] sage.ca.char(Unknown Source)
Wed 5/18 17:50:13.300 [AWT-EventQueue-0@117f31e] sage.EventRouter.a(Unknown Source)
Wed 5/18 17:50:13.300 [AWT-EventQueue-0@117f31e] sage.EventRouter.do(Unknown Source)
Wed 5/18 17:50:13.300 [AWT-EventQueue-0@117f31e] sage.EventRouter.keyPressed(Unknown Source)
Wed 5/18 17:50:13.300 [AWT-EventQueue-0@117f31e] java.awt.Component.processKeyEvent(Unknown Source)
Wed 5/18 17:50:13.300 [AWT-EventQueue-0@117f31e] java.awt.Component.processEvent(Unknown Source)
Wed 5/18 17:50:13.300 [AWT-EventQueue-0@117f31e] java.awt.Component.dispatchEventImpl(Unknown Source)
Wed 5/18 17:50:13.301 [AWT-EventQueue-0@117f31e] java.awt.Component.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.301 [AWT-EventQueue-0@117f31e] java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
Wed 5/18 17:50:13.301 [AWT-EventQueue-0@117f31e] java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
Wed 5/18 17:50:13.301 [AWT-EventQueue-0@117f31e] java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
Wed 5/18 17:50:13.301 [AWT-EventQueue-0@117f31e] java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
Wed 5/18 17:50:13.302 [AWT-EventQueue-0@117f31e] java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.302 [AWT-EventQueue-0@117f31e] java.awt.Component.dispatchEventImpl(Unknown Source)
Wed 5/18 17:50:13.302 [AWT-EventQueue-0@117f31e] java.awt.Component.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.302 [AWT-EventQueue-0@117f31e] java.awt.EventQueue.dispatchEventImpl(Unknown Source)
Wed 5/18 17:50:13.303 [AWT-EventQueue-0@117f31e] java.awt.EventQueue.access$000(Unknown Source)
Wed 5/18 17:50:13.304 [AWT-EventQueue-0@117f31e] java.awt.EventQueue$1.run(Unknown Source)
Wed 5/18 17:50:13.304 [AWT-EventQueue-0@117f31e] java.awt.EventQueue$1.run(Unknown Source)
Wed 5/18 17:50:13.306 [AWT-EventQueue-0@117f31e] java.security.AccessController.doPrivileged(Native Method)
Wed 5/18 17:50:13.358 [AWT-EventQueue-0@117f31e] java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
Wed 5/18 17:50:13.359 [AWT-EventQueue-0@117f31e] java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
Wed 5/18 17:50:13.359 [AWT-EventQueue-0@117f31e] java.awt.EventQueue$2.run(Unknown Source)
Wed 5/18 17:50:13.364 [AWT-EventQueue-0@117f31e] java.awt.EventQueue$2.run(Unknown Source)
Wed 5/18 17:50:13.365 [AWT-EventQueue-0@117f31e] java.security.AccessController.doPrivileged(Native Method)
Wed 5/18 17:50:13.365 [AWT-EventQueue-0@117f31e] java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
Wed 5/18 17:50:13.365 [AWT-EventQueue-0@117f31e] java.awt.EventQueue.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.365 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
Wed 5/18 17:50:13.366 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
Wed 5/18 17:50:13.366 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
Wed 5/18 17:50:13.366 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpEvents(Unknown Source)
Wed 5/18 17:50:13.370 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.pumpEvents(Unknown Source)
Wed 5/18 17:50:13.370 [AWT-EventQueue-0@117f31e] java.awt.EventDispatchThread.run(Unknown Source)
Wed 5/18 17:50:13.372 [AWT-EventQueue-0@117f31e] EXCEPTION in getValueAsObject:sage.a.e: Error in method reflection of tmiranda_aar_API_test of java.lang.reflect.InvocationTargetException for:tmiranda_aar_API_test(MediaFile)
Wed 5/18 17:50:13.373 [AWT-EventQueue-0@117f31e] sage.a.e: Error in method reflection of tmiranda_aar_API_test of java.lang.reflect.InvocationTargetException
Wed 5/18 17:50:13.374 [AWT-EventQueue-0@117f31e] 	at sage.e$e.a(Unknown Source)
Wed 5/18 17:50:13.375 [AWT-EventQueue-0@117f31e] 	at sage.a.m$b.a(Unknown Source)
Wed 5/18 17:50:13.376 [AWT-EventQueue-0@117f31e] 	at sage.a.m.a(Unknown Source)
Wed 5/18 17:50:13.376 [AWT-EventQueue-0@117f31e] 	at sage.e.a(Unknown Source)
Wed 5/18 17:50:13.379 [AWT-EventQueue-0@117f31e] 	at sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.379 [AWT-EventQueue-0@117f31e] 	at sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.379 [AWT-EventQueue-0@117f31e] 	at sage.e.a(Unknown Source)
Wed 5/18 17:50:13.379 [AWT-EventQueue-0@117f31e] 	at sage.e.a(Unknown Source)
Wed 5/18 17:50:13.379 [AWT-EventQueue-0@117f31e] 	at sage.e.a(Unknown Source)
Wed 5/18 17:50:13.385 [AWT-EventQueue-0@117f31e] 	at sage.ca.if(Unknown Source)
Wed 5/18 17:50:13.385 [AWT-EventQueue-0@117f31e] 	at sage.UIManager.a(Unknown Source)
Wed 5/18 17:50:13.385 [AWT-EventQueue-0@117f31e] 	at sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.385 [AWT-EventQueue-0@117f31e] 	at sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.385 [AWT-EventQueue-0@117f31e] 	at sage.bd.a(Unknown Source)
Wed 5/18 17:50:13.386 [AWT-EventQueue-0@117f31e] 	at sage.bd.null(Unknown Source)
Wed 5/18 17:50:13.389 [AWT-EventQueue-0@117f31e] 	at sage.bd.for(Unknown Source)
Wed 5/18 17:50:13.390 [AWT-EventQueue-0@117f31e] 	at sage.ca.char(Unknown Source)
Wed 5/18 17:50:13.390 [AWT-EventQueue-0@117f31e] 	at sage.EventRouter.a(Unknown Source)
Wed 5/18 17:50:13.390 [AWT-EventQueue-0@117f31e] 	at sage.EventRouter.do(Unknown Source)
Wed 5/18 17:50:13.393 [AWT-EventQueue-0@117f31e] 	at sage.EventRouter.keyPressed(Unknown Source)
Wed 5/18 17:50:13.393 [AWT-EventQueue-0@117f31e] 	at java.awt.Component.processKeyEvent(Unknown Source)
Wed 5/18 17:50:13.393 [AWT-EventQueue-0@117f31e] 	at java.awt.Component.processEvent(Unknown Source)
Wed 5/18 17:50:13.393 [AWT-EventQueue-0@117f31e] 	at java.awt.Component.dispatchEventImpl(Unknown Source)
Wed 5/18 17:50:13.393 [AWT-EventQueue-0@117f31e] 	at java.awt.Component.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.396 [AWT-EventQueue-0@117f31e] 	at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
Wed 5/18 17:50:13.396 [AWT-EventQueue-0@117f31e] 	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
Wed 5/18 17:50:13.396 [AWT-EventQueue-0@117f31e] 	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
Wed 5/18 17:50:13.398 [AWT-EventQueue-0@117f31e] 	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
Wed 5/18 17:50:13.398 [AWT-EventQueue-0@117f31e] 	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.398 [AWT-EventQueue-0@117f31e] 	at java.awt.Component.dispatchEventImpl(Unknown Source)
Wed 5/18 17:50:13.399 [AWT-EventQueue-0@117f31e] 	at java.awt.Component.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.399 [AWT-EventQueue-0@117f31e] 	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
Wed 5/18 17:50:13.399 [AWT-EventQueue-0@117f31e] 	at java.awt.EventQueue.access$000(Unknown Source)
Wed 5/18 17:50:13.399 [AWT-EventQueue-0@117f31e] 	at java.awt.EventQueue$1.run(Unknown Source)
Wed 5/18 17:50:13.399 [AWT-EventQueue-0@117f31e] 	at java.awt.EventQueue$1.run(Unknown Source)
Wed 5/18 17:50:13.399 [AWT-EventQueue-0@117f31e] 	at java.security.AccessController.doPrivileged(Native Method)
Wed 5/18 17:50:13.400 [AWT-EventQueue-0@117f31e] 	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
Wed 5/18 17:50:13.400 [AWT-EventQueue-0@117f31e] 	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
Wed 5/18 17:50:13.400 [AWT-EventQueue-0@117f31e] 	at java.awt.EventQueue$2.run(Unknown Source)
Wed 5/18 17:50:13.401 [AWT-EventQueue-0@117f31e] 	at java.awt.EventQueue$2.run(Unknown Source)
Wed 5/18 17:50:13.401 [AWT-EventQueue-0@117f31e] 	at java.security.AccessController.doPrivileged(Native Method)
Wed 5/18 17:50:13.401 [AWT-EventQueue-0@117f31e] 	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
Wed 5/18 17:50:13.401 [AWT-EventQueue-0@117f31e] 	at java.awt.EventQueue.dispatchEvent(Unknown Source)
Wed 5/18 17:50:13.402 [AWT-EventQueue-0@117f31e] 	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
Wed 5/18 17:50:13.402 [AWT-EventQueue-0@117f31e] 	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
Wed 5/18 17:50:13.402 [AWT-EventQueue-0@117f31e] 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
Wed 5/18 17:50:13.402 [AWT-EventQueue-0@117f31e] 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
Wed 5/18 17:50:13.402 [AWT-EventQueue-0@117f31e] 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
Wed 5/18 17:50:13.402 [AWT-EventQueue-0@117f31e] 	at java.awt.EventDispatchThread.run(Unknown Source)
Wed 5/18 17:50:13.403 [AWT-EventQueue-0@117f31e] Caused by: java.lang.reflect.InvocationTargetException
Wed 5/18 17:50:13.403 [AWT-EventQueue-0@117f31e] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Wed 5/18 17:50:13.403 [AWT-EventQueue-0@117f31e] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
Wed 5/18 17:50:13.403 [AWT-EventQueue-0@117f31e] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
Wed 5/18 17:50:13.403 [AWT-EventQueue-0@117f31e] 	at java.lang.reflect.Method.invoke(Unknown Source)
Wed 5/18 17:50:13.404 [AWT-EventQueue-0@117f31e] 	... 49 more
Wed 5/18 17:50:13.404 [AWT-EventQueue-0@117f31e] Caused by: java.lang.ClassCastException: [[J cannot be cast to [J
Wed 5/18 17:50:13.404 [AWT-EventQueue-0@117f31e] 	at sagex.api.MediaFileAPI.GetStartTimesForSegments(MediaFileAPI.java:1274)
Wed 5/18 17:50:13.404 [AWT-EventQueue-0@117f31e] 	at tmiranda.aar.API.test(API.java:202)
Wed 5/18 17:50:13.404 [AWT-EventQueue-0@117f31e] 	... 53 more
Do you see something obvious that I'm doing wrong?
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #362  
Old 05-18-2011, 04:14 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
IIRC I was trying to use this API and discovered it's returning a two-dimensional array. I don't recall the details but try
Code:
long segmentStartTimes1[][] = ...
and inspect what it returns to you. I didn't check the Javadoc when I had the issue but I looked at it now and it specifies a one-dimensional array so if that's wrong we need to email support.

EDIT: Actually I think the first dimension is for the media file segment and the second is for the start time for that segment.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #363  
Old 05-18-2011, 04:42 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I tried:

Code:
Object rc = MediaFileAPI.GetStartTimesForSegments(MediaFile);
but that still throws the ClassCastException. Looks like I'll have to go to the raw sage api to debug.

I've worked around the issue by using MediaFileAPI.GetStartForSegment(), but I'd like to figure out why MediaFileAPI.GetStartTimesForSegments() isn't working as advertized.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #364  
Old 05-18-2011, 05:43 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
I'm assuming the API wrappers expect the return type to be long[], based on the javadocs, and are casting the result accordingly and therefore the exception is actually being generated by the wrapper code and you'll never be able to avoid it.

Two choices:

1) Do a private build of Sean's wrappers. He has a way to mark errors in the javadocs and work around them.

2) Wait for Sean to fix it and release an updated build.

If this code is for public consumption then you'll need Sean to correct it and update the repository.

Alternatively, you can just do a raw Sage API call instead of using the wrapper, if you really want to use that call. Then you should be able to cast the result to long[][].
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #365  
Old 05-19-2011, 06:19 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Thanks Slugger,

I've already worked around it but I wanted to make sure I wasn't doing something wrong. Given Sean's Java experience vs. mine, I always first assume I am doing something wrong before I assume Sean's code has a bug

Tom
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #366  
Old 05-19-2011, 10:52 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by tmiranda View Post
Thanks Slugger,

I've already worked around it but I wanted to make sure I wasn't doing something wrong. Given Sean's Java experience vs. mine, I always first assume I am doing something wrong before I assume Sean's code has a bug

Tom
The javadoc describes it as
Quote:
public long[] GetStartTimesForSegments(sage.MediaFile MediaFile)
and as a result the generated code looks like this...
Code:
public static long[] GetStartTimesForSegments (Object MediaFile) {
  return (long[]) sagex.SageAPI.call("GetStartTimesForSegments", new Object[] {MediaFile});
}
Someone should ask sage to fix the javadoc to match what the expected return value should be.
Reply With Quote
  #367  
Old 05-19-2011, 12:54 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by stuckless View Post
Someone should ask sage to fix the javadoc to match what the expected return value should be.
I'll report the bug to Sage.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #368  
Old 05-19-2011, 05:57 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by tmiranda View Post
I'll report the bug to Sage.
I reported the bug and already received a response. The JavaDoc will be corrected in the next build.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #369  
Old 05-20-2011, 07:32 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by tmiranda View Post
I reported the bug and already received a response. The JavaDoc will be corrected in the next build.
I try to get a new build out shortly after that.
Reply With Quote
  #370  
Old 05-20-2011, 09:56 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by stuckless View Post
I try to get a new build out shortly after that.
No rush. I'm not using that particular API.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #371  
Old 06-06-2011, 07:45 PM
bradvido's Avatar
bradvido bradvido is offline
Sage User
 
Join Date: Nov 2010
Location: MN
Posts: 68
Stuckless, is there any way for me to disable logging for your API completely. Using BMT or otherwise?
Reply With Quote
  #372  
Old 06-06-2011, 07:56 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by bradvido View Post
Stuckless, is there any way for me to disable logging for your API completely. Using BMT or otherwise?
In bmt goto configuration -> logging -> log4j and select sagex-api, and then change the log level to "off" instead of "info", click save.
Attached Images
File Type: png logger.png (117.2 KB, 345 views)
Reply With Quote
  #373  
Old 06-07-2011, 06:41 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
7.1.8 is released

Given that 7.1.8 has some new security apis... I thought I'd be proactive and create a new build BEFORE someone asks me
Reply With Quote
  #374  
Old 06-08-2011, 06:32 PM
bradvido's Avatar
bradvido bradvido is offline
Sage User
 
Join Date: Nov 2010
Location: MN
Posts: 68
Quote:
Originally Posted by stuckless View Post
In bmt goto configuration -> logging -> log4j and select sagex-api, and then change the log level to "off" instead of "info", click save.
Worked great, thanks
Reply With Quote
  #375  
Old 09-07-2011, 07:40 PM
Xsabre Xsabre is offline
Sage Advanced User
 
Join Date: Mar 2005
Posts: 112
How can I disable authentication @ http://myserver:8080/sagex/api

I can access it but it requires the default authentication. How do you disable this?

Commenting out in realm.properties doesn't work.

SageTV 6 with latest sagex-api-7.1.9.2-sage6.zip
Reply With Quote
  #376  
Old 09-08-2011, 07:36 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Xsabre View Post
How can I disable authentication @ http://myserver:8080/sagex/api

I can access it but it requires the default authentication. How do you disable this?

Commenting out in realm.properties doesn't work.

SageTV 6 with latest sagex-api-7.1.9.2-sage6.zip
You need to comment out the authentication setup in the context file for sagex in \SageTV\jetty\contexts\

Note, however, that doing so opens your sagex app up to anyone to connect to. If this server is accessible via the internet then anyone who knows your IP/hostname and how the Sage API works can easily destroy your Sage system. Any script kiddie with a free 10 mins could write a shell script with wget to simply delete every recording off your system and there's no turning back unless you have backups of all your content. I really, really, really discourage people from disabling the authentication in sagex, unless the server is not accessible from the internet and you trust your firewall.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #377  
Old 09-08-2011, 08:00 PM
Xsabre Xsabre is offline
Sage Advanced User
 
Join Date: Mar 2005
Posts: 112
Quote:
Originally Posted by Slugger View Post
You need to comment out the authentication setup in the context file for sagex in \SageTV\jetty\contexts\

Note, however, that doing so opens your sagex app up to anyone to connect to. If this server is accessible via the internet then anyone who knows your IP/hostname and how the Sage API works can easily destroy your Sage system. Any script kiddie with a free 10 mins could write a shell script with wget to simply delete every recording off your system and there's no turning back unless you have backups of all your content. I really, really, really discourage people from disabling the authentication in sagex, unless the server is not accessible from the internet and you trust your firewall.
I understand exactly and greet. But, I am trying to test Bradvido's XBMC script to convert recordings to XBMC format.

I will enable it again once I am finished. But I do appreciate your responds and concern.
Reply With Quote
  #378  
Old 09-16-2011, 03:28 PM
Xsabre Xsabre is offline
Sage Advanced User
 
Join Date: Mar 2005
Posts: 112
Where exactly do I comment out. I try varying combination without luck.

Code:
<!-- <Set name="securityHandler">
		<New class="org.mortbay.jetty.security.SecurityHandler">
			<Set name="userRealm">
				<New class="org.mortbay.jetty.security.HashUserRealm">
					<Set name="name">Sagex Services HTTP Interface</Set>
					<Set name="config">
						<SystemProperty name="jetty.home" default="." />/etc/realm.properties
					</Set>
				</New>
			</Set> -->
			<Set name="checkWelcomeFiles">true</Set>
			<Set name="constraintMappings">
				<Array type="org.mortbay.jetty.security.ConstraintMapping">
					<Item>
						<New class="org.mortbay.jetty.security.ConstraintMapping">
							<Set name="constraint">
								<New class="org.mortbay.jetty.security.Constraint">
									<Set name="name">BASIC</Set>
									<Set name="roles">
										<Array type="java.lang.String">
											<Item>user</Item>
											<Item>admin</Item>
											<Item>moderator</Item>
										</Array>
									</Set>
									<!-- Uncomment below to force all connections onto SSL port -->
									<!-- <Set name="dataConstraint">2</Set> -->
								<Set name="authenticate">false</Set>
							</New>
							</Set>
							<Set name="pathSpec">/api</Set>
						</New>
					</Item>
				</Array>
			</Set>
		</New>
	</Set>
Reply With Quote
  #379  
Old 09-16-2011, 07:52 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Current one looks like this...
Code:
<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">
<Configure id="sagexcontext" class="org.mortbay.jetty.servlet.Context">
	<Set name="contextPath">/sagex</Set>
	<Call name="addServlet">
		<Arg>sagex.remote.SagexServlet</Arg>
		<Arg>/*</Arg>
	</Call>

	<Set name="securityHandler">
		<New class="org.mortbay.jetty.security.SecurityHandler">
			<Set name="userRealm">
				<New class="org.mortbay.jetty.security.HashUserRealm">
					<Set name="name">Sagex Services HTTP Interface</Set>
					<Set name="config">
						<SystemProperty name="jetty.home" default="." />/etc/realm.properties
					</Set>
				</New>
			</Set>
			<Set name="checkWelcomeFiles">true</Set>
			<Set name="constraintMappings">
				<Array type="org.mortbay.jetty.security.ConstraintMapping">
					<Item>
						<New class="org.mortbay.jetty.security.ConstraintMapping">
							<Set name="constraint">
								<New class="org.mortbay.jetty.security.Constraint">
									<Set name="name">BASIC</Set>
									<Set name="roles">
										<Array type="java.lang.String">
											<Item>user</Item>
											<Item>admin</Item>
											<Item>moderator</Item>
										</Array>
									</Set>
									<!-- Uncomment below to force all connections onto SSL port -->
									<!-- <Set name="dataConstraint">2</Set> -->
									<Set name="authenticate">true</Set>
								</New>
							</Set>
							<Set name="pathSpec">/api</Set>
						</New>
					</Item>
				</Array>
			</Set>
		</New>
	</Set>

	<!-- Initialize the RMI Services on Startup, for Jetty -->
	<Call class="sagex.remote.SagexServlet" name="initServices">
		<Arg>jetty</Arg>
	</Call>

	<Call class="sagex.remote.jetty.JettyInitializer" name="initJetty">
		<Arg>
			<Ref id="sagexcontext" />
		</Arg>
	</Call>
</Configure>

New One (without the security handler) looks like this...

Code:
<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">
<Configure id="sagexcontext" class="org.mortbay.jetty.servlet.Context">
	<Set name="contextPath">/sagex</Set>
	<Call name="addServlet">
		<Arg>sagex.remote.SagexServlet</Arg>
		<Arg>/*</Arg>
	</Call>

	<!-- Initialize the RMI Services on Startup, for Jetty -->
	<Call class="sagex.remote.SagexServlet" name="initServices">
		<Arg>jetty</Arg>
	</Call>

	<Call class="sagex.remote.jetty.JettyInitializer" name="initJetty">
		<Arg>
			<Ref id="sagexcontext" />
		</Arg>
	</Call>
</Configure>
Reply With Quote
  #380  
Old 09-18-2011, 02:51 PM
Xsabre Xsabre is offline
Sage Advanced User
 
Join Date: Mar 2005
Posts: 112
Thanks for your help...

Strange thing was that I had commented out that whole section. But it didn't work when I did it.

Thanks again
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hauppauge Remote Issue yacht_boy Hardware Support 4 05-01-2008 09:25 PM
MCE remote transmitting keypresses twice arnabbiswas Hardware Support 1 02-22-2007 10:55 AM
MCE Remote not work fully with Placeshifter devinteske SageTV Placeshifter 5 02-08-2007 11:45 PM
Harmony Remote IR Reciever Help brundag5 Hardware Support 2 01-13-2007 09:08 PM
How to get SageTV to release focus to NVDVD for remote IncredibleHat SageTV Software 4 07-06-2006 07:47 AM


All times are GMT -6. The time now is 01:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.