|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#81
|
||||
|
||||
Hey Bob,
Would you mind doing me a favor and attaching a few files here for me? First attach one or both of your properties files from the SageTV directory. (sage.properties & sageclient.properties if running service mode) Could you also at a command prompt paste this line and hit enter(this will show a list of all files in your Sage directory structure and output it to a file): Code:
dir /s "c:\Program Files\SageTV" > C:\sagedirs.txt Thanks. |
#82
|
|||
|
|||
Quote:
Hi deria, I downloaded and installed this, followed the instructions and it works great. Thanks for making it available, nice addition and I got a first hand try at messin' with Studio. Rick |
#83
|
|||
|
|||
Quote:
|
#84
|
|||
|
|||
Quote:
Specs: Win2K pro Administrator account on a Virtual PC session. Just got the dual boot setup going to see if it will work on a real computer with XP Home. BobP. |
#85
|
|||
|
|||
Hi Bob,
I think that Nielm's and Toxmox's suggestions are both good ones. If you have time, could you try them both (particularly Nielm's suggestion of running that command to check if SageTV can see the class. That's a very good idea. Nielm: What version of java do you have? The one that came with SageTV, or a more recent one? I'm not sure if it matters, but I'm curious because BobPhoenix has the one that came with SageTV and none of my systems do (they all have the latest one). |
#86
|
|||
|
|||
Heh, you're fast Bob. I think you're right that in this case "result: null" would indicate a failure. I tried it on my ssytem where the plugin has no trouble working and I get "result: class SystemMonitorPlugin". Did you get any other error messages when you typed the command, or did it just immediately come back with result: null?
As an aside, can you try doing the same test with Filemon running and email me the result? That might tell us where SageTV (well, I guess "java" would be a more appropriate label than SageTV) is looking for the class. |
#87
|
|||
|
|||
Quote:
BobP. Last edited by BobPhoenix; 02-10-2006 at 06:43 PM. |
#88
|
||||
|
||||
Did some more playing...
If SystemMonitorJNI.dll is not present, then... new_SystemMonitorPlugin() returns null, and reports Catbert Method Lookup errors in the log.. java_lang_Class_forName("SystemMonitorPlugin") also returns null, but gives some more info in the logging... Note that this only occurs the first time after startup, and if you have not already done a new_SystemMonitorPlugin() ... Code:
Sat 11/19 21:32:01.400 Caused by: java.lang.UnsatisfiedLinkError: no SystemMonitorJNI in java.library.path Sat 11/19 21:32:01.401 at java.lang.ClassLoader.loadLibrary(Unknown Source) Sat 11/19 21:32:01.401 at java.lang.Runtime.loadLibrary0(Unknown Source) Sat 11/19 21:32:01.401 at java.lang.System.loadLibrary(Unknown Source) Sat 11/19 21:32:01.401 at SystemMonitorPlugin.<clinit>(SystemMonitorPlugin.java:5) Sat 11/19 21:32:01.402 at java.lang.Class.forName0(Native Method) ... So from the symtoms seen so far, it is also possible that Bob's system cannot load the either the SystemMonitor class, or the SystemMonitorJNI.dll Maybe for general use of JNI that studio always references a 'clean' Java class that then loads a JNI class, and can wrap and report JNI initialising errors such as LoadLibrary...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#89
|
|||
|
|||
Quote:
BobP. Last edited by BobPhoenix; 02-10-2006 at 06:43 PM. |
#90
|
||||
|
||||
Bob,
I see nothing wrong in the files I asked you to attach so the problem isn't there. I agree that trying the new Java is a good idea. Here is a post by Jeff which shows how you can control which Java Sage uses so you can go back if you wish. Just keep both installs. http://forums.sagetv.com/forums/show...26&postcount=7 |
#91
|
|||
|
|||
According to Filemon, Bob's system is opening, reading, and closing the .class file. It really does look like tis the subsequent "finding" of SystemMonitorJNI.dll thats failing. Based on Filemon its never even looking at it.
I'd say try the latest Java and see what happens. I've installed the trial version on another computer I have and I'll leave the version of java that gets installed with sage on it and then try the plugin. |
#92
|
||||
|
||||
I just installed this as well and it worked right away for me too. Didn't even have to restart Sage. I am not using the latest Java but it is a 1.5 based ver (1.5.0_02).
Sidenote for anyone not wanting to mess with the Studio parts of the instructions. If you have nielm's Dynamic Menu import installed you can simply add the System Monitor menu via the Dynamic Menus after you import the System Monitor STVi. |
#93
|
|||
|
|||
Quote:
BobP. Last edited by BobPhoenix; 11-19-2005 at 03:12 PM. |
#94
|
|||
|
|||
Aha.
On my third computer (built from spare parts this morning!) I can finally reproduce the problem. I left the old version of Java, and it failed. I'll play around a bit and see what happens before I try the new version of Java. I'll be interested to hear if the new version of java solves the problem for Bob. |
#95
|
|||
|
|||
I'm behind the times. I missed your post above Bob.
I'm pleased to hear that it works with the newer version of Java. I'm hazy on why it wouldn't also work with the older version -- I was under the impression that once compiled there should be no trouble running it in any Java environment of your choosing. I guess not. I'm going to install the J2SE SDK 1.4.2_10 on my other system and see if compiling the .class file there results in it working on 1.4.x systems. |
#96
|
|||
|
|||
Quote:
BobP. |
#97
|
||||
|
||||
Quote:
(I am also running in java 1.5)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#98
|
|||
|
|||
Well, I think this problem is solved now.
Here is what I found; a Java 1.4.x class will run fine under both Java 1.4.x and Java 1.5.x but a Java 1.5.x class will -only- run on Java 1.5.x (as Nielm mentions in his post above). I'm also going to include instructions regarding copying BasicSystemMonitor.dll to c:\windpws\system32 if for some reason it does not work in the default SageTV directory. I'll also change the archive format so that the files aren't in a folder by default and so that the .stvi is placed automatically in a useful location within the SageTV tree so that people don't have to navigate to find it. Finally, instead of posting in a message thread I'll put the download on the Sage customizations site. Bob, here is a .class file I compiled with 1.4.2_10. If you can try this on your 1.4.x installation, you should be able to use the disk monitor without having to risk messing up your FSE experience. |
#99
|
|||
|
|||
Quote:
Edit: Forgot to mention I also deleted the copies of the DLL's in the Windows\System32 directory and the NativeLibPath registry setting before I did this test BobP. Last edited by BobPhoenix; 11-19-2005 at 05:00 PM. |
#100
|
||||
|
||||
What a nasty way JRE has of telling you that you have a version mismatch! Just report that methods aren't found. Yikes.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|