|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#361
|
||||
|
||||
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"); } 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
__________________
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. |
#362
|
||||
|
||||
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[][] = ... 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. |
#363
|
||||
|
||||
I tried:
Code:
Object rc = MediaFileAPI.GetStartTimesForSegments(MediaFile); 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. |
#364
|
|||
|
|||
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... |
#365
|
||||
|
||||
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. |
#366
|
||||
|
||||
Quote:
Quote:
Code:
public static long[] GetStartTimesForSegments (Object MediaFile) { return (long[]) sagex.SageAPI.call("GetStartTimesForSegments", new Object[] {MediaFile}); }
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#367
|
||||
|
||||
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. |
#368
|
||||
|
||||
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. |
#369
|
||||
|
||||
I try to get a new build out shortly after that.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#370
|
||||
|
||||
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. |
#371
|
||||
|
||||
Stuckless, is there any way for me to disable logging for your API completely. Using BMT or otherwise?
|
#372
|
||||
|
||||
In bmt goto configuration -> logging -> log4j and select sagex-api, and then change the log level to "off" instead of "info", click save.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#373
|
||||
|
||||
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
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#374
|
||||
|
||||
Worked great, thanks
|
#375
|
|||
|
|||
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 |
#376
|
|||
|
|||
Quote:
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... |
#377
|
|||
|
|||
Quote:
I will enable it again once I am finished. But I do appreciate your responds and concern. |
#378
|
|||
|
|||
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> |
#379
|
||||
|
||||
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>
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#380
|
|||
|
|||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |