The Artima Developer Community
Sponsored Link

Java Answers Forum
some mp3 work only on one pc

4 replies on 1 page. Most recent reply: May 26, 2011 3:44 AM by Claus-Dieter Jacob

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Claus-Dieter Jacob

Posts: 6
Nickname: cottnwood
Registered: May, 2011

some mp3 work only on one pc Posted: May 15, 2011 1:21 PM
Reply to this message Reply
Advertisement
My program plays all mp3 properly on my notebook. On two other pc it plays most of the mp3. Only a few mp3 that are absolutely identical with the same that works on the notebook are starting but never ending. Only the sound stops at different time.

There is no error announced to my program. Only a crc message goes to sysout.

What I found out is that the notebook uses the com.sun.media.content.audio.mpeg.Handler and the other pc are using the com.sun.media.content.unknown.Handler.

I think that that could be the reason. How can I change this behaviour?

This is my absolutely first Java project. So I'm not that familiar with Java. I already tried it with Ken Larson's PackageManagerTest. But that didn't help. Or I did something wrong with that test.

Here is my testversion of Ken Larson's PackageManagerTest.
import java.util.Vector;
 
import javax.media.PackageManager;
 
import junit.framework.TestCase;
 
/**
 * 
 * @author Ken Larson
 *
 */
public class JukeContentHandler extends TestCase
{
	private static boolean testsw;
	private static Exception except=null;
 
	public void setProtocol()
	{
		testsw=Parameters.retrieveBoolean("JukeContentHandler.testsw");
 
		try {
			Class.forName("com.sun.media.content.audio.mpeg.Handler");
		} catch (ClassNotFoundException e) {except=e;
		} catch (Exception e) {except=e;
		} finally {
			if (except!=null) {
				System.out.println(except.toString());
				System.out.println("Error: Class com.sun.media.content.audio.mpeg.Handler not found");
				except=null;
				System.exit(-1);
			}else{
				if (testsw) System.out.println("com.sun.media.content.audio.mpeg.Handler found");
			}
		}
		try {
			Class.forName("com.sun.media.content.unknown.Handler");
		} catch (ClassNotFoundException e) {except=e;
		} catch (Exception e) {except=e;
		} finally {
			if (except!=null) {
				if (testsw) System.out.println(except.toString());
				except=null;
				return;
			}else{
				if (testsw) System.out.println("com.sun.media.content.unknown.Handler found");
			}
		}
		synchronized (PackageManager.class)
		{
			assertTrue(PackageManager.getProtocolPrefixList().contains("javax"));
			assertTrue(PackageManager.getProtocolPrefixList().contains("com.sun"));
			assertTrue(PackageManager.getProtocolPrefixList().contains("com.ibm"));
			{
				final Vector v = new Vector();
				v.add("javax");
				v.add("com.sun.media.content.audio.mpeg.Handler");
				v.add("com.sun");
				v.add("com.ibm");
				PackageManager.setProtocolPrefixList(v);
 
				System.out.println("result should be ...");
				dumpStringVector(PackageManager.getProtocolPrefixList());
			}
 
			assertTrue(PackageManager.getContentPrefixList().contains("javax"));
			assertTrue(PackageManager.getContentPrefixList().contains("com.sun"));
			assertTrue(PackageManager.getContentPrefixList().contains("com.ibm"));
			{
				final Vector v = new Vector();
				v.add("javax");
				v.add("com.sun.media.content.audio.mpeg.Handler");
				v.add("com.sun");
				v.add("com.ibm");
				PackageManager.setContentPrefixList(v);
				System.out.println("result should be ...");
				dumpStringVector(PackageManager.getContentPrefixList());
			}
		}
	}
	private void dumpStringVector(Vector v1)
	{
		for (int i = 0; i < v1.size(); ++i)
		{	String s = (String) v1.get(i);
		System.out.println(s);
		}
	}
}


Claus-Dieter Jacob

Posts: 6
Nickname: cottnwood
Registered: May, 2011

Re: some mp3 work only on one pc Posted: May 18, 2011 4:04 PM
Reply to this message Reply
Meanwhile I have a protocol of all the file- and registry accesses from the pc where the program works and that one where the unknown.Handler id used. But until now I couldn't find out the reason for the problem I have.

Essential seemed to me to filter out the lines with the string "mp3". So I did. However, I removed the lines with the filename of the title itself. Here the result of the notebook, where it's working:

"QueryDirectory","C:\WINDOWS\system32","SUCCESS","0: wscsvc.dll, 1: wscui.cpl, 2: wsfwDS.dll, 3: wshatm.dll, 4: wshbth.dll, 5: wshcon.dll, 6: wshde.dll, 7: wshext.dll, 8: wship6.dll, 9: wshisn.dll, 10: wshnetbs.dll, 11: wshom.ocx, 12: WshRm.dll, 13: wshtcpip.dll, 14: wsimd.cat, 15: wsimd.dll, 16: wsimd.inf, 17: wsimd.sys, 18: wsimdp.cat, 19: wsimdp.inf, 20: wsnmp32.dll, 21: wsock32.dll, 22: wstdecod.dll, 23: wtsapi32.dll, 24: wuapi.dll, 25: wuapi.dll.mui, 26: wuauclt.exe, 27: wuauclt1.exe, 28: wuaucpl.cpl, 29: wuaucpl.cpl.manifest, 30: wuaucpl.cpl.mui, 31: wuaueng.dll, 32: wuaueng.dll.mui, 33: wuaueng1.dll, 34: wuauserv.dll, 35: wucltui.dll, 36: wucltui.dll.mui, 37: wupdmgr.exe, 38: wups.dll, 39: wups2.dll, 40: wuweb.dll, 41: wzcdlg.dll, 42: wzcsapi.dll, 43: wzcsvc.dll, 44: x3daudio1_0.dll, 45: x3daudio1_1.dll, 46: X3DAudio1_2.dll, 47: X3DAudio1_3.dll, 48: X3DAudio1_4.dll, 49: X3DAudio1_5.dll, 50: X3DAudio1_6.dll, 51: xactengine2_0.dll, 52: xactengine2_1.dll, 53: xactengine2_10.dll, 54: xactengine2_2.dll, 55: xactengine2_3.dll, 56: xactengine2_4.dll, 57: xactengine2_5.dll, 58: xactengine2_6.dll, 59: xactengine2_7.dll, 60: xactengine2_8.dll, 61: xactengine2_9.dll, 62: xactengine3_0.dll, 63: xactengine3_1.dll, 64: xactengine3_2.dll, 65: xactengine3_3.dll, 66: xactengine3_4.dll, 67: xactengine3_5.dll, 68: xactsrv.dll, 69: XAPOFX1_0.dll, 70: XAPOFX1_1.dll, 71: XAPOFX1_2.dll, 72: XAPOFX1_3.dll, 73: XAudio2_0.dll, 74: XAudio2_1.dll, 75: XAudio2_2.dll, 76: XAudio2_3.dll, 77: XAudio2_4.dll, 78: XAudio2_5.dll, 79: xcopy.exe, 80: xenroll.dll, 81: xinput1_1.dll, 82: xinput1_2.dll, 83: xinput1_3.dll, 84: xinput9_1_0.dll, 85: xircom, 86: xmllite.dll, 87: xmlprov.dll, 88: xmlprovi.dll, 89: xolehlp.dll, 90: xpob2res.dll, 91: xpsp1res.dll, 92: xpsp2res.dll, 93: xpsp3res.dll, 94: xpsp4res.dll, 95: xpsshhdr.dll, 96: xpssvcs.dll, 97: XPSViewer, 98: zipfldr.dll, 99: zkasigct.dll"
"QueryDirectory","D:\java","SUCCESS","0: ., 1: .., 2: anmerkung.txt, 3: applet.KeyListenerTest.java, 4: Aufgabe.txt, 5: Auslieferung, 6: blkid.tab.txt, 7: blkid.txt, 8: CatFile.java, 9: Clock.java, 10: collectData.java, 11: eclipse, 12: Eingabe-applet.java, 13: Eingabe.html, 14: Everest-Report.txt, 15: hello.java, 16: java.txt, 17: JavaPlayer.txt, 18: javaSources.zip, 19: JSoft, 20: JSoft-PopupMenu.zip, 21: JSoft-vorAufräumen.zip, 22: JSoft.doc, 23: JSoft.doc.zip, 24: JSoft_20110407-0215.zip, 25: JSoft_20110407-2300.zip, 26: JSoft_20110408-0215.zip, 27: JSoft_20110408-1256.zip, 28: JSoft_20110409-0150.zip, 29: JSoft_20110410-0118.zip, 30: JSoft_20110410-0253.zip, 31: JSoft_20110411-0510.zip, 32: JSoft_20110411-2005.zip, 33: JSoft_20110412-0303.zip, 34: JSoft_20110412-2348.zip, 35: JSoft_20110417-1553.zip, 36: JSoft_20110423-1358.zip, 37: JSoft_20110501-0122.zip, 38: JSoft_20110503-0100.zip, 39: JSoft_20110503-0112.zip, 40: JSoft_20110503-2351.zip, 41: JSoft_20110505-0049.zip, 42: JSoft_20110507-0225.zip, 43: JSoft_20110514-0029.zip, 44: JSoft_20110514-0932.zip, 45: JSoft_20110515-1656.zip, 46: KeyboardPiano.java, 47: KeyTest.java, 48: Knoppix, 49: lwjgl, 50: lwjgl.zip, 51: MidiInstrument.java, 52: music, 53: MusicSystem.java, 54: nr-help-kdo.doc, 55: Player.java, 56: programmersbase.net, 57: readme.txt, 58: StringComparison.java, 59: StringOperationen.java, 60: tasten.txt, 61: TCP-IP, 62: Temp, 63: temporary1.mp3, 64: tutorialJavaPlayer.txt, 65: Verschlüsseln von Datenströmen.txt, 66: Verschlüsselung, 67: VideoVerleih.java"
"RegOpenKey","HKCU\Software\Classes\Media Type\Extensions\.mp3","NAME NOT FOUND","Desired Access: Read"
"RegOpenKey","HKCR\Media Type\Extensions\.mp3","SUCCESS","Desired Access: Read"
"RegQueryKey","HKCR\Media Type\Extensions\.mp3","SUCCESS","Query: Name"
"RegOpenKey","HKCU\Software\Classes\Media Type\Extensions\.mp3","NAME NOT FOUND","Desired Access: Maximum Allowed"
"RegQueryValue","HKCR\Media Type\Extensions\.mp3\Source Filter","SUCCESS","Type: REG_SZ, Length: 78, Data: {E436EBB5-524F-11CE-9F53-0020AF0BA770}"
"RegQueryKey","HKCR\Media Type\Extensions\.mp3","SUCCESS","Query: Name"
"RegOpenKey","HKCU\Software\Classes\Media Type\Extensions\.mp3","NAME NOT FOUND","Desired Access: Maximum Allowed"
"RegQueryValue","HKCR\Media Type\Extensions\.mp3\Media Type","SUCCESS","Type: REG_SZ, Length: 78, Data: {E436EB83-524F-11CE-9F53-0020AF0BA770}"
"RegQueryKey","HKCR\Media Type\Extensions\.mp3","SUCCESS","Query: Name"
"RegOpenKey","HKCU\Software\Classes\Media Type\Extensions\.mp3","NAME NOT FOUND","Desired Access: Maximum Allowed"
"RegQueryValue","HKCR\Media Type\Extensions\.mp3\Subtype","SUCCESS","Type: REG_SZ, Length: 78, Data: {E436EB87-524F-11CE-9F53-0020AF0BA770}"
"RegCloseKey","HKCR\Media Type\Extensions\.mp3","SUCCESS",""
"RegOpenKey","HKCU\Software\Classes\Media Type\Extensions\.mp3","NAME NOT FOUND","Desired Access: Read"
"RegOpenKey","HKCR\Media Type\Extensions\.mp3","SUCCESS","Desired Access: Read"
"RegQueryKey","HKCR\Media Type\Extensions\.mp3","SUCCESS","Query: Name"
"RegOpenKey","HKCU\Software\Classes\Media Type\Extensions\.mp3","NAME NOT FOUND","Desired Access: Maximum Allowed"
"RegQueryValue","HKCR\Media Type\Extensions\.mp3\Source Filter","SUCCESS","Type: REG_SZ, Length: 78, Data: {E436EBB5-524F-11CE-9F53-0020AF0BA770}"
"RegQueryKey","HKCR\Media Type\Extensions\.mp3","SUCCESS","Query: Name"
"RegOpenKey","HKCU\Software\Classes\Media Type\Extensions\.mp3","NAME NOT FOUND","Desired Access: Maximum Allowed"
"RegQueryValue","HKCR\Media Type\Extensions\.mp3\Media Type","SUCCESS","Type: REG_SZ, Length: 78, Data: {E436EB83-524F-11CE-9F53-0020AF0BA770}"
"RegQueryKey","HKCR\Media Type\Extensions\.mp3","SUCCESS","Query: Name"
"RegOpenKey","HKCU\Software\Classes\Media Type\Extensions\.mp3","NAME NOT FOUND","Desired Access: Maximum Allowed"
"RegQueryValue","HKCR\Media Type\Extensions\.mp3\Subtype","SUCCESS","Type: REG_SZ, Length: 78, Data: {E436EB87-524F-11CE-9F53-0020AF0BA770}"
"RegCloseKey","HKCR\Media Type\Extensions\.mp3","SUCCESS",""


And here the result of the pc, where it's not working:
"QueryDirectory","C:\Dokumente und Einstellungen\Admin","SUCCESS","0: ., 1: .., 2: .ExcelsiorJET, 3: Anwendungsdaten, 4: Cookies, 5: Desktop, 6: Druckumgebung, 7: Eigene Dateien, 8: Favoriten, 9: IETldCache, 10: Juke2010.png, 11: Juke2010_Musikliste.txt, 12: Juke2010_Parameters.txt, 13: juke2010_protokoll.txt, 14: jukeWindowSize, 15: Lokale Einstellungen, 16: Netzwerkumgebung, 17: NTUSER.DAT, 18: ntuser.dat.LOG, 19: ntuser.ini, 20: PrivacIE, 21: Recent, 22: SendTo, 23: Startmenü, 24: temporary.mp3, 25: temporary1.mp3, 26: temporary2.mp3, 27: v1.5.067 MusicPlayerClient, 28: Vorlagen, 29: WINDOWS, 30: workspace"
"QueryDirectory","C:\Programme\Java\jre6\lib\ext","SUCCESS","0: ., 1: .., 2: dnsns.jar, 3: jmf.jar, 4: localedata.jar, 5: meta-index, 6: mp3plugin.jar, 7: sound.jar, 8: sunjce_provider.jar, 9: sunmscapi.jar, 10: sunpkcs11.jar"
"CreateFile","C:\Programme\Java\jre6\lib\ext\MP3PLUGIN.JAR","SUC CESS","Desired Access: Read Data/List Directory, Read Attributes, Disposition: Open, Options: Non-Directory File, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened"
"CreateFileMapping","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUC CESS","SyncType: SyncTypeCreateSection, PageProtection: PAGE_READWRITE"
"QueryStandardInformationFile","C:\Programme\Java\jre6\lib\ext\ mp3plugin.jar","SUCCESS","AllocationSize: 86.016, EndOfFile: 82.415, NumberOfLinks: 1, DeletePending: False, Directory: False"
"CreateFileMapping","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCC ESS","SyncType: SyncTypeOther"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCE SS","Offset: 0, Length: 82.415, I/O Flags: Non-cached, Paging I/O"
"CloseFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS",""
"Q ueryDirectory","C:\Programme\Java\jre6\lib\ext","SUCCESS","0: .., 1: dnsns.jar, 2: jmf.jar, 3: localedata.jar, 4: meta-index, 5: mp3plugin.jar, 6: sound.jar, 7: sunjce_provider.jar, 8: sunmscapi.jar, 9: sunpkcs11.jar"
"QueryDirectory","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar", "SUCCESS","Filter: mp3plugin.jar, 1: mp3plugin.jar"
"QueryOpen","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCC ESS","CreationTime: 13.05.2011 00:46:53, LastAccessTime: 13.05.2011 15:06:25, LastWriteTime: 16.08.2004 11:48:46, ChangeTime: 18.05.2011 12:08:48, AllocationSize: 86.016, EndOfFile: 82.415, FileAttributes: N"
"QueryOpen","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Creati onTime: 13.05.2011 00:46:53, LastAccessTime: 13.05.2011 15:06:25, LastWriteTime: 16.08.2004 11:48:46, ChangeTime: 18.05.2011 12:08:48, AllocationSize: 86.016, EndOfFile: 82.415, FileAttributes: N"
"CreateFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Desir ed Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened"
"QueryBasicInformationFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.j ar","SUCCESS","CreationTime: 13.05.2011 00:46:53, LastAccessTime: 13.05.2011 15:06:25, LastWriteTime: 16.08.2004 11:48:46, ChangeTime: 18.05.2011 12:08:48, FileAttributes: N"
"CloseFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS",""
"Cre ateFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened"
"QueryStandardInformationFile","C:\Programme\Java\jre6\lib\ext\mp3plugi n.jar","SUCCESS","AllocationSize: 86.016, EndOfFile: 82.415, NumberOfLinks: 1, DeletePending: False, Directory: False"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Off set: 82.287, Length: 128"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 79.457, Length: 2.936"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Off set: 79.516, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 61, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 111, Length: 71"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 79.582, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 79.516, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 61, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 111, Length: 71"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 79.457, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 79.516, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 61, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 111, Length: 71"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 80.295, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 80.359, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 18.103, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 16.384, Length: 4.096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 18.190, Length: 49"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 80.462, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 18.255, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 18.351, Length: 57"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 79.582, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 198, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 275, Length: 3.386"
"QueryDirectory","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS ","Filter: mp3plugin.jar, 1: mp3plugin.jar"
"QueryOpen","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCC ESS","CreationTime: 13.05.2011 00:46:53, LastAccessTime: 13.05.2011 15:06:25, LastWriteTime: 16.08.2004 11:48:46, ChangeTime: 18.05.2011 12:08:48, AllocationSize: 86.016, EndOfFile: 82.415, FileAttributes: N"
"QueryOpen","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Creati onTime: 13.05.2011 00:46:53, LastAccessTime: 13.05.2011 15:06:25, LastWriteTime: 16.08.2004 11:48:46, ChangeTime: 18.05.2011 12:08:48, AllocationSize: 86.016, EndOfFile: 82.415, FileAttributes: N"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset: 80.925, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 24.337, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 20.480, Length: 4.096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 24.399, Length: 577"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 24.576, Length: 4.096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 80.633, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 18.467, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 18.525, Length: 871"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 80.707, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 19.412, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 19.468, Length: 3.443"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Off set: 82.105, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 59.364, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 57.344, Length: 4.096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 59.414, Length: 425"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 80.779, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 22.927, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 22.983, Length: 436"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 81.709, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 43.540, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 40.960, Length: 4.096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 43.590, Length: 520"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 81.379, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 33.887, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 32.768, Length: 4.096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 33.937, Length: 956"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 82.039, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 59.030, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 59.080, Length: 268"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 81.313, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 33.566, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 33.616, Length: 255"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 81.445, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 34.909, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 34.959, Length: 7.520"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Off set: 36.864, Length: 4.096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 81.242, Length: 160"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 31.051, Length: 30"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offset : 28.672, Length: 4.096, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O"
"ReadFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS","Offse t: 31.106, Length: 2.444"
"CloseFile","C:\Programme\Java\jre6\lib\ext\mp3plugin.jar","SUCCESS",""


What attracts attention is, that the notebook makes registry accesses and no file access. That's completely contrariwise to what the pc does. There you can find only file access to the mp3plugin.jar. These are missing on the notebook where the music plays without problems.


You can find the complete access lists here:
Notebook: http://www.c-d-j.de/java/Logfile-filtered-mp3.CSV.txt
PC: http://www.c-d-j.de/java/Logfile-eee-filtered-mp3.CSV.txt

Claus-Dieter Jacob

Posts: 6
Nickname: cottnwood
Registered: May, 2011

Re: some mp3 work only on one pc Posted: May 20, 2011 11:04 AM
Reply to this message Reply
That was an act. But now I have a solution. It wouldn't have been possible for me if I wouldn't have a working Version on the Notebook.

The differences between the file- and registry accesses leaded to the solution:
1) Deinstallation of all Java components
2) Installation of Winanp remote
3) Update of the registry with the patch below
4) Installation of JRE/JDK and JMF, no Installation of JavaMPE extension!!!

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]
"midi1"="wdmaud.drv"
"midi2"="wdmaud.drv"
"midi3"= "wdmaud.drv"
"mixer1"="wdmaud.drv"
"mixer2"="wdmaud.drv"
"mixer3"="wdmaud.drv"
" wave1"="wdmaud.drv"
"wave2"="wdmaud.drv"
"wave3"="wdmaud.drv"

Claus-Dieter Jacob

Posts: 6
Nickname: cottnwood
Registered: May, 2011

Re: some mp3 work only on one pc Posted: May 20, 2011 11:06 AM
Reply to this message Reply
Sorry, but there is no space in front of wave1.

Claus-Dieter Jacob

Posts: 6
Nickname: cottnwood
Registered: May, 2011

Re: some mp3 work only on one pc Posted: May 26, 2011 3:44 AM
Reply to this message Reply
As long as the JavaMP3 extension (JLayer) uses the com.sun.media.content.unknown.Handler there are problems playing all mp3 I have. And with the RealMediaSplitter.ax from Winamp Remote instead of JLayer Java uses the com.sun.media.content.audio.mpeg.Handler which works properly. If you want to know which one is used you can find it out with a printout in the ControllerListener.

player.addControllerListener(new ControllerAdapter() {

You just need a printout like this i.e. in the following event handling routine:

public void transition(TransitionEvent e) {
System.out.println(Thread.currentThread().getName());


I posted the following also in the Oracle forum. The result was that the thread became deleted: http://forums.oracle.com/forums/message.jspa?messageID=9605655#9605655

The only necessary file from the Winamp Remote installation is "Winamp Remote\bin\RealMediaSplitter.ax" with 328kB of size and from 2006-11-06. You can copy it to a different directory and deinstall Winamp Remote if you don't need it. In this case you have to modify the registry patch below so that the value of @ points to the copy of the file.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID{E21BE468-5C18-43EB-B0CC-DB93A847D769}\InprocServer32]
@="C:\\Programme\\xxxxxxxx\\yyyyyyyy\\RealMediaSplitter.ax"




Maybe you'll have to start your Java program two times before the change takes effect. This seems to be necessary very often after registry changes.

The name and structure of the chosen directory should be regardless. For me it worked first with the structure within the patch. But the reason therefor may be that I at that time didnt'n know about the need of starting the application twice.

The complete deinstallation of all Java components may also not be necessary with this knowledge. But I'm not sure for that whether the JavaMP3 extension (JLayer) installation was done. It could be that JLayer leaves registry entries behind that stay in effect until a complete new installation of Java is done.

I would be very pleased if I would get any reply if I could help with these and the above informations. Thanks in advance.

Flat View: This topic has 4 replies on 1 page
Topic: sorting linked list Previous Topic   Next Topic Topic: Java - Javascript

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use