Video is not captured in Applet under redhat linux.
Hi!
uname -a
Linux 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux
and whenever i m running my code for start and stop the webcam, i m finding a error/exception as:
javax.media.NotRealizedError: Cannot get visual component on an unrealized player
at com.sun.media.BasicPlayer.getVisualComponent(BasicPlayer.java:491)
at com.sun.media.MediaProcessor.getVisualComponent(MediaProcessor.java:50)
at CamSource.getVComponent(Complete.java:156)
at Complete.actionPerformed(Complete.java:71)
at java.awt.Button.processActionEvent(Button.java:382)
at java.awt.Button.processEvent(Button.java:350)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
javax.media.NotRealizedError: Cannot get visual component on an unrealized player
at com.sun.media.BasicPlayer.getVisualComponent(BasicPlayer.java:491)
at com.sun.media.MediaProcessor.getVisualComponent(MediaProcessor.java:50)
at CamSource.getVComponent(Complete.java:156)
at Complete.actionPerformed(Complete.java:71)
at java.awt.Button.processActionEvent(Button.java:382)
at java.awt.Button.processEvent(Button.java:350)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.lang.NullPointerException
at java.awt.Container.remove(Container.java:762)
at Complete.stop(Complete.java:53)
at sun.applet.AppletPanel.run(AppletPanel.java:442)
at java.lang.Thread.run(Thread.java:534)
AND THIS CODE IS RUNNING SUCCESSFULLY UNDER WINDOWS ENVIRONMENT IN APPLET.
Wht is the problem ? and how to solve it.
This is what I did:
import java.awt.*;
import java.applet.*;
public class BookmarkApplet extends Applet {
public void init() {
//String fileName = this.getParameter("gx26187") + ".ser";
String fileName = "gx26187" + ".ser";
Bookmark bookmark = new Bookmark(fileName);
LinkHolder linkHolder = new LinkHolder();
for(int i = 0; i < 10; i++) {
linkHolder.add(new Link("url"+i, "link"+i));
if(bookmark.save(linkHolder)) {
linkHolder = bookmark.retrieve();
Link[] retreivedLinks = linkHolder.getLinks();
if(retreivedLinks != null && retreivedLinks.length > 0) {
Link [] trimmedLinks = new Link[linkHolder.getSize()];
System.arraycopy(retreivedLinks, 0, trimmedLinks, 0, trimmedLinks.length);
for(int i = 0; i < trimmedLinks.length; i++) {
add(new Button(trimmedLinks.getDescription()));
LinkHolder is a wrapper class in which I used Link[] to store objects.
Link is a class that stores 2 strings: links and description.
I tested this on JBuilder ==> worked fine.
I tested on IE ==> applet is running but nothing shown up.
Thanks if any ideas.
Tom
Yeah I do.
If its anything like my problems you will find Treeset
is from JDK 1.2+
IE's virtual machine runs using the == of jdk 1.1
This means with out using plugins you HAVE to use
features of 1.1 Im sure you could use another
datastructure instead.
Hope this helps.
U can extract the Treeset files from rt.jar but im
still unable to determine if thats legal
Similar Messages
-
When i installing oracle, after copying the files, it telled me "install successfully" , but when it in the procedure: "Linking Oracle9i Database 9.2.0.1.0", it stop and auto exit.
But I think i should have installed finish. So I try to start it. As below:
sqlplus /nolog
SQL> connect / as sysdba
ERROR:
ORA-09925: Unable to create audit trail file
Linux Error: 2: No such file or directory
Additional information: 9925
ORA-01031: insufficient privileges
How can I start it?
Is that because I hadn't set the value of "/proc/sys/kernel/sem" before I install oracle? It's original value is "250 3200 32 128", I don't know what it should be under Redhat Linux 8.0.
Can anybody help me?
thanks.I followed the directions here
http://www.puschitz.com/OracleOnLinux.shtml
Using this I was able to get 9201 installed on both SuSE8.1 and RedHat8.0.
On RH8, You have to hand modify the ins_ctx.mk per his instructions and up the value in /proc/sys/kernel/shmmax per his instructions. I did not hit the binutils issue. Other failures are probably missing rpms, as he describes. -
Audio transmit problem under redhat linux 9
Hi !!
I have already compiled J2sdk1.4.2 and JMF2.1.1e performance pack for linux and they both work alright under Redhat linux 9. JMStudio works fine to playback audio files. The problem I'm having is when I try to transmit and receive audio files through AVTransmit2, AVReceive2 and JMStudio!! They just don't work!!
AVTransmit2 and JMStudio just starts to transmit but on the receiving end both jmstudio and avreceiver2 just waits for rtp data but none arrives!!
Can anyone help me with this problem?? I've already tried spending a whole day cranking my brain about this!!
Thanks in advancemake sure your hostname is somehostname.com , and make sure you have your IP mapped to your hostname in /etc/hosts file.
-
My camcorder videos are not capturing properly
The same thing is happening to all the video that I capture from my video camera: Once or twice every second, there is a "pop" in the audio, and then the audio skips ahead by a fraction of a second. Sometimes the video skips ahead too, but not as frequently. I've made several capture attempts, and sometimes the audio and video get out of sync and sometimes not. But it always does that popping and skipping ahead thing.
The first time this happened, I got an error dialog that said something about the sample rate, but then I never got that message again, so I really can't say exactly what it said.
I used to capture video from this camera all the time with no problem, a couple years ago. But now, no dice. I've tried it on both of my computers and the same thing happens. I've also tried iMovie -- again, same deal.
My first thought was that maybe I had changed the audio sample rate setting on my video camera, but I've searched the manual and it looks like my only options are 12bit and 16bit. I tried both and got the same result.
I'd sure appreciate any help you can provide, cause I'm completely stuck until I figure this out. Thank you!At first I thought you might be a newcomer doing something terribly wrong but it appears you have successfully used FCP and that camera on previous occasions.
Does the camera still playback correctly?
What version of FCP have you got and have you updated your OS recently as there may be an incompatibility?
As this is an apparent mystery the first thing you could try is to trash your preferences exactly as described here:-
http://www.fcpbook.com/Misc1.html -
Graphics Card not enabling while i install REDHAT LINUX 5.
I use HP PAVILLION MODEL DV5-1106AX. It contains AMD processor and ATI graphics card.While i try to install REDHAT LINUX SERVER 5 in my laptop, the graphics card not enabling.Why it happen?
please reply to <text removed for privacy>
Message Edited by WendyM on 11-18-2009 12:51 PMMisterAnderson wrote:Does the same happen with the opensource radeon drivers? (xf86-video-ati)
Thanks for the reply!
The open source driver doesn't support my card yet. I tried installing it first since its the recommended driver, but Xorg couldn't detect any display at all.
It seems the PCI BusID is not being read from the xorg.conf file. There's auto detection everytime the PC boots.
Last edited by hdhiman (2012-10-04 00:43:52) -
Why is java.util.TreeSet not seen in applet under IE5.5?
Hi,
I developed an applet to read a serialized file and tested on JBuilder; it worked fine. However, when I tested on IE5.5, an error message displayed: "ClassNotFoundException: class java.util.TreeSet is not found".
I used TreeSet to store data.
Anyone has any ideas of how to fix this?
Thanks,
TomThis is what I did:
import java.awt.*;
import java.applet.*;
public class BookmarkApplet extends Applet {
public void init() {
//String fileName = this.getParameter("gx26187") + ".ser";
String fileName = "gx26187" + ".ser";
Bookmark bookmark = new Bookmark(fileName);
LinkHolder linkHolder = new LinkHolder();
for(int i = 0; i < 10; i++) {
linkHolder.add(new Link("url"+i, "link"+i));
if(bookmark.save(linkHolder)) {
linkHolder = bookmark.retrieve();
Link[] retreivedLinks = linkHolder.getLinks();
if(retreivedLinks != null && retreivedLinks.length > 0) {
Link [] trimmedLinks = new Link[linkHolder.getSize()];
System.arraycopy(retreivedLinks, 0, trimmedLinks, 0, trimmedLinks.length);
for(int i = 0; i < trimmedLinks.length; i++) {
add(new Button(trimmedLinks.getDescription()));
LinkHolder is a wrapper class in which I used Link[] to store objects.
Link is a class that stores 2 strings: links and description.
I tested this on JBuilder ==> worked fine.
I tested on IE ==> applet is running but nothing shown up.
Thanks if any ideas.
Tom
Yeah I do.
If its anything like my problems you will find Treeset
is from JDK 1.2+
IE's virtual machine runs using the == of jdk 1.1
This means with out using plugins you HAVE to use
features of 1.1 Im sure you could use another
datastructure instead.
Hope this helps.
U can extract the Treeset files from rt.jar but im
still unable to determine if thats legal -
Cannot running applet in redhat linux
I got this message "Java Applet is not loaded.(Java interpreter disbled)". I have installed j2re1.4.1_02 and jdk1.3.1_07 . Do i have to set any environmental viarable?
Thank you1. Present a well constructed argument /document for your client. It shouldn't be hard to make it compelling enough.
2. Force IE to use the JVM on the PC's with the 'embed' tag and java's 'html converter' -
HELP:link error under redhat linux 9.0(oracle 9.2.0)
i link the demo shipped with oracle 9.2.0,but failed.
error message shows:
/usr/bin/g++ -L/home/oracle/product/9.2.0/lib/ -L/home/oracle/product/9.2.0/rdbm
s/lib/ -o occiproc occiproc.o -locci -lclntsh `cat /home/oracle/product/9.2.0/
lib/sysliblist` -ldl -lm
occiproc.o(.gcc_except_table+0x70): undefined reference to `typeinfo for oracle:
:occi::SQLException'
occiproc.o(.gcc_except_table+0x88): undefined reference to `typeinfo for oracle:
:occi::SQLException'
occiproc.o(.gnu.linkonce.t._ZN8occiprocC1ESsSsSs+0x14): In function `occiproc::o
cciproc[in-charge](std::basic_string<char, std::char_traits<char>, std::allocato
r<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char>
, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::o
cci::Environment::Mode, void*, void* (*)(void*, unsigned), void* (*)(void*, void
*, unsigned), void (*)(void*, void*))'
occiproc.o(.gnu.linkonce.t._ZN8occiprocD1Ev+0x2e): In function `occiproc::~occip
roc [in-charge]()':
: undefined reference to `oracle::occi::Environment::terminateEnvironment(oracle
::occi::Environment*)'
collect2: ld returned 1 exit statusOCCI 9.2 is not supported with gcc3.2. Please search this forum for more details.
-
Fast installation for oracle db under redhat linux 4 update 3
dear sirs...
i know little about linux, however, i create a simple script that will preform pre-installation operations for linux 4 update 3. it will update the files, create oracle user, and so on. you will find its source. if possible i hope someone can upgrade this script such that there it will check the OS packages, and stop the changes if any of the packages is missing.
thanks for any help and best regards.
notes:
1- to use this script, type the text in linux gedit. save it in a file and put the file in a safe place so that every time you want to install the db, you can find it ready.
2- do not use notepad to create the file, it will not work.
3- before you run the script, be sure that all packages needed by the db exists.
4- the script assumes that you have just installed linux for running the database only.
5- to run the script in linux , login as root user, and type . scriptfilename
6- the script should be executed only once.
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -m -g oinstall -G dba oracle
passwd oracle
mkdir -p /home/oracle
chown -R oracle:oinstall /home/oracle
chmod -R 775 /home/oracle
cat >> /etc/sysctl.conf <<EOF
# the following lines are added by a script
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_max = 262144
EOF
/sbin/sysctl -p
cat >> /etc/security/limits.conf <<EOF
# the following lines are added by a script
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
cat >> /etc/pam.d/login <<EOF
# the following lines are added by a script
session required /lib/security/pam_limits.so
EOF
cat >> /etc/profile <<EOF
# the following lines are added by a script
if [ \$USER = "oracle" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
EOF
cat >> /etc/csh.login <<EOF
# the following lines are added by a script
if ( \$USER == "oracle" ) then
limit maxproc 16384
limit descriptors 65536
umask 022
endif
EOFNice.
A fair chunk of additional work would go into this to ensure that existing settings are not clobbered, but it should be OK on a new install of Linux.
Why not require that they use the DVD (so you have all RPMs on one media), cd to the RPMS directory and simply 'rpm -i' all the prereq packages? Then you don't need to 'rpm -q' and inspect the status. -
Help! datafile deleted on oracle 9i under redhat linux
Please help me, i delete a datafile from a test tablespace and i don't know
how to fix it on 9i, in 8i is very documented but 9i is a real pain, here
is the error when 'dbstart'ing the db:
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> Connected to an idle instance.
SQL> ORACLE instance started.
Total System Global Area 353440004 bytes
Fixed Size 450820 bytes
Variable Size 167772160 bytes
Database Buffers 184549376 bytes
Redo Buffers 667648 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 28 - see DBWR trace file
ORA-01110: data file 28: '/oradata/alumnos/tablespaces/test2.dbf'
Thank you in advance,
Otto SolaresCan you perform a Tablespace Point In Time Recovery on the specific tablespace?
-
Ios 7.1 Update Issue. Camera Video not capturing Audio
Hello Every One, I have Updated ios 7.1 after the Update the Camera Video is not capturing the audio.Please help me with the SolutionIo
Hi Aniruuthan,
Thanks for visiting Apple Support Communities.
If your iPhone is not recording sound along with video, I recommend these troubleshooting steps:
Make sure nothing is plugged in to the jack connector.
Make sure nothing is blocking any of the microphones (see the pictures below to locate the microphones on your device)
Make sure none of the microphones is obstructed by dirt or debris.
Turn the iPhone off and then on.
If necessary, find general iPhone hardware troubleshooting suggestions.
For further assistance, contact Apple Support.
You can find the article with these steps here:
iPhone: Microphone issues
http://support.apple.com/kb/ts5183
Best Regards,
Jeremy -
I have some music videos on my i-pad. when I play one, the music plays but the video does not. I go under "music video" play list select and play, i get music but no video. Can someone be so kind as to help me. this problem just started today.
Thanks Johnathan for trying to assist. I purchased these music videos from i-tunes, in the past I just had to go into "Music" on the I-pad and select "music videos" then the one I wanted to play and it would just start playing with video. I don't see any "VIDEO" app. These music videos was downloaded from i-tunes and shold play through the i-pad music app. Any further suggestion?
-
Maximum number of nodes in a Weblogic cluster on RedHat Linux?
Is there a limitation of the number of nodes in a weblogic cluster
running under RedHat Linux?
Can I start with 5 nodes and in a year scale up to 500 or 5000 nodes?
Thanks!
Ralf.
Ralf,
> Is there a limitation of the number of nodes in a weblogic cluster
> running under RedHat Linux?
A realistic limit, of course.
> Can I start with 5 nodes and in a year scale up to 500 or 5000 nodes?
If your app is completely stateless, then it can scale to 40 maybe 80
servers.
The problem is that stateless apps typically manage state that sits behind
them, and there's basically no database in the world that can handle the
load that 40 servers can put on it. Depending on the app, you can easily
saturate 4 database CPUs per 1 app server CPU, but usually the factor is
closer to 1:1, and with agressive caching in the app tier even less.
Things like stateful session bean replication and HTTP session replication
in a cluster ... well, YMMV ... but I would hypothesize that it won't scale
up anywhere close to 40 servers under load.
Peace,
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com/coherence.jsp
Tangosol Coherence: Clustered Replicated Cache for Weblogic
"Ralf Reddin" <[email protected]> wrote in message
news:[email protected]..
>
-
Just set up advanced calling 1.0 and restarted my phone but "Video Calling" is not in my groups under contacts
iphone 6/6P do not support AC 1.0 HD video calling at this time. It does support HD voice, but there is no HD indicator, but you can immediately hear the difference.
-
Finally.... Video captured from applet in Vista!!
Hello!
Hurray!! finally I can see myself smiling and waving back in browser in Vista.
I mentioned in another thread just a day earlier that I will post a new topic if I succeed in capturing from applets in Vista, so thats what I am doing.... This thread is all about how achieved it.
I have seen many posts mentioning problems in capturing from applets in vista. I was also one of the sufferer. And most people including me blamed that on restricted sandbox of Vista. But surprisingly it was all about classpath.
I think I mentioned in some earlier thread that the 'Java console' shows the classpath to be *"{JREHOME}/classes"* instead of the classpath specified in CLASSPATH environment variable. You can check that by pressing 's' which *'dumps system and deployment properties'* in the Java Console. You can check the classpath by noting the value of *"java.class.path"* field which for my case was"C:\\PROGRA~1\\Java\\jre6\\classes". This turned out to be the main problem. The applet was not accessing any classes from the real CLASSPATH instead it was considering the classpath to be jrehome/classes. So, now I had enough hint what to do next. I simply created a folder 'classes' in {JREHOME} and copied the jmf registry files to that folder. By registry files I mean *'jmf.properties'* and *'jmf.properties.orig'* files in *'{JMF Install}/lib'* folder (actually i don't which among them has got some thing to do with the registry but I copied them both). So, after doing this, all my capture applets, whether signed or unsigned started running. Earlier they all were throwing *"java.lang.RuntimeException: No permission to capture from applets"* exception even after I have allowed capture from applets in JMF registry. That was perhaps not taking affect because of classpath issues. So, thats the story.... if someone faces the same problem he can use this workaround or you can say hack ;-)
Some questions which can be asked from me would be:
1- Did you set your CLASSPATH environment variable correctly?
ans: Yes, infact all my jmf applications were running correctly, the problem was only with the applets.
2- What classpath other systems (e.g. XP) mention in the Java console ?
ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also.
3- Is this problem really Vista specific?
ans: Can't say... but it can be. It maybe the case that Vista does not allow access to real CLASSPATH, but this problem can easily be my system specific, it would be called a general vista problem if this happens on all Vista systems, I need volunteers for this test. captfoss, can you please test this on your system? :)
4- Is this problem JMF specific?
ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific.
Drawbacks of this work around:
1- This can be a pain for ordinary users , copying registry files from JMF/lib to JRE/classes.
2- Whatever you change in JMF registry would not be effective to the applets. As the old registry files are to be replaced with new registry files every time JMF registry is changed for changes to take effect in applets.
The real big question:
How can we force Vista to look in the real CLASSPATH? this is the real question, if this can be done just by changing some settings then all this workaround is useless :) I am looking forward to the answer of this question.....
captfoss, I would highly appreciate your comments.
Thanks for reading this rather long post.... :)
Thanks!A couple of comments here...the answer is, in fact, no, you didn't set your classpath correctly. One, you're probably using a JAR file to run your applet from (I'm not an applet programmer but I do believe that a JAR is required) which do not use the environment's classpath, they use their manifest classpath. No, the applet was not jared.
Second, I believe that the browser itself specifies its own classpath, which you cannot modify. I believe this would be considered a security feature...Both IE7 and firefox3 fail.
"You have little control over the CLASSPATH used by a browser for an Applet"
[http://mindprod.com/jgloss/classpath.html]
Ok this maybe the reason, I will go through the link....
2- What classpath other systems (e.g. XP) mention in the Java console ?
ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also. There isn't a "real" CLASSPATH, there is just the classpath stored as an environmental variable. It's no more or less real than the one in the browser.Thats what I thought.... but I think {JREHOME}/classes is the default class path used by the jre whether we set any CLASSPATH variable or not it would be there, something of that sort.....
Lots of possibilities, but my best guess is that Vista doesn't let code running in the browser read environmental variables.Yes, I fully agree with this. I think I should file a bug report.
4- Is this problem JMF specific?
ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific. Definately not. It would apply to any code that wants to access something on the classpath. You are right... as I said I would test it, I tested by making a small library, added it to classpath, made an application and an applet. As expected, the aplication worked while the applet failed.
Any application with a custom classpath would be affected.I don't understand what you mean here, do you mean 'Class-path' header in jar manifest?
I like the "installation requirement" part. I'd suggest looking into that. Alternately, there may be something in the security settings to allow access to environmental variables.I will try to look into both.
I just tried this statement in applet:
System.out.println( System.getProperty( "java.class.path" ) );It threw this exception:
Exception: java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read)
I don't know what conclusion should I draw from this... this does mean applet has no right to know what the classpath is.... but this doesn't mean even jre plugin responsible for running applet does not know what the classpath is :)
Finally, I want to say that due to some problems I could not post earlier, and I may not post for few more days. But I appreciate your comments and would appreciate more of them.
Thanks!
Maybe you are looking for
-
I need a midi to mp3 converter...
where can i find a free one for mac OSX leopard (10.5.1) ?
-
Backing Bean constructor getting called multiple times
I have a List of records in the Table with a link Add. When i click Add i show a popup dialog which is attached to the dialogListener. On clicking OK on the dialog i want to add a record in the List in the backing Bean, but the Bean constructor is ge
-
The Ajax auto-complete component showed client side error messages for certain auto complete values returned. I noticed that the error message was caused by return values that had angle brackets in it. Removing the angle brackets in the retun values
-
Review Not Being Posted?
I love my WP7 and went to review the device and put in a good word for how much I like the OS and the phone. However, my review has never been posted and it's been several days since I posted. As a matter of fact NO reviews for the device have been
-
I cannot attach files says Missing Plug in, what do I do?
I cannot download pdfs and keep getting message that I am missing plug in. What can I do?