JMF - unkown protocol exception

I'm a new jmf developer. In my Linux box i have a
Exception in thread "main" java.net.MalformedURLException: unknown protocol: v4l
at java.net.URL.<init>(URL.java:544)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
My video in card is correctly configured with jmfinit.
Do you help me?
Thanks!

Could this problem be caused by some multi-threading issues? The problem only occurs on a html page which uses two frames. Both frames execute sql/jdbc statements. The jdk1.2.2, uses green threads whereas the jdk1.3 uses native threads. So the errors does not happen for green threads, only for native threads.
Regards,
Andrej

Similar Messages

  • Protocol Exception while using getGeneratedKeys() method

    Hi,
    I am getting the below Exception. I am using the Oracle Database 10.2.0.3. JDBC Driver ojdbc14.jar. This exception is thrown, when I am trying to use the getGeneratedKeys() method on the PreparedStatement. I used to get the Unsupported Exception, but after upgrading the Driver, I am getting this Error.
    java.sql.SQLException: Protocol violation
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:207)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:765)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:215)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:965)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1169)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3338)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3444)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:169)
    I am able to run the same code on other remote machine, which contains the replica of the above database. Please help me to get the solution to the above exception. Thanks in advance

    Hello prasadmn,
    I am getting a similar issue with a customer using 10.2.0.3 and using ojdbc5.jar (Oracle JDBC Driver version - "11.1.0.7.0-Production")
    Did you need to upgrade as Ashok mentioned? Did that resolve your problem?
    I tried looking for the bug that Ashok mentioned but I could not find it anywhere.
    Any assistance or direction would be great.
    Thanks

  • WSDL2Java Protocol Exception

    The exception is throwing when WSDL2Java file is used to create the client java files. The same is working before in a different system. The exception is :
    C:\tomcat\webapps\Trail\WEB-INF\classes>java org.apache.axis.wsdl.WSDL2Java http://localhost/ReportServer/ReportExe
    cution2005.asmx?wsdl
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment
    support is disabled.
    java.net.ProtocolException: Server redirected too many times (5)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
            at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
            at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
            at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
            at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
            at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
            at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
            at java.lang.Thread.run(Unknown Source)
    C:\tomcat\webapps\Trail\WEB-INF\classes>java org.apache.axis.wsdl.WSDL2Java http://localhost/ReportServer/ReportSer
    ver2005.asmx?wsdl
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment
    support is disabled.
    java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost/ReportServer/ReportServer200
    5.asmx?wsdl
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
            at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
            at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
            at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
            at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
            at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
            at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
            at java.lang.Thread.run(Unknown Source)

    It sounds like the classpath is different and it is unable to locate some of the classes
    Unable to find required classes (javax.activation.DataHandler

  • Unsupported Protocol Exception

    Hi,
    I've a weblogic portal application which is deployed fine. Im trying to login to the portal locally.
    Getting the following exception while making a webservice call as part of login.
    ** soapMessage: weblogic.xml.saaj.SOAPMessageImpl@137cd12
    RESPONSE MESSAGE BEING CACHED : <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Failed to receive message java.net.ProtocolException: unsupported protocol: httpunsupported protocol: http</faultstring><detail><bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.net.ProtocolException: unsupported protocol: http
    Thanks for reply in advance.
    Regards
    Karthic

    I have configured the SSL in admin console to to use https. But for some reason request is being formed by http. And so it is saying "unsupported protocol: http"
    Any help much appreciated.

  • Protocol Exception

    Hi all
    I had a problem with the ftp transfer. I am making use of "sun.net.ftp" package and iam getting the following exception. I am connecting to the remote system thru my application using "PASV" (passive mode).
    I have the applcation deployed on "solaris" box and accessing the application thru URL from windows machine. My application consists of a funcationality where i can click on a link to upload/download the files online.
    I get the following exception when i perform upload or download.
    EXCEPTION :
    sun.net.Ftp.FTPProtocolException : 501 PORT not allowed after EPSV ALL
    If any of u have encountered this exception please reply asap.
    Valuable suggestions are appreciated.
    regards
    karthik

    sun.net.Ftp.FTPProtocolException : 501 PORT not
    allowed after EPSV ALLI think the 'EPSV ALL' command instructs the server that the
    data connection command syntax outlined in RFC2428 should
    only be accepted by the server. That is, you should use the
    EPSV command instead of the PASV command, and the EPRT commmand
    instead of the PORT command, otherwise the server
    will reject the connection attempt. So it looks like the
    'EPSV ALL' command is being sent to the server, and then the
    'PORT' command is being sent, which would not be allowed after
    'EPSV ALL' is sent.
    There is more information about this here:
    http://www-ece.engr.ucf.edu/~jza/classes/4781/FTP/
    Alpha75

  • DnD: hello world gives strange "no protocol" exception

    experienced DnD hacker, can't get around this:
    I want to support cross-JVM and cross-application DnD to apps like Mozilla NVU or other more complicated target apps.
    First task: simple plain text drag drop - how to implement this? any example codes available?
    Text drag/drop works best when you do it yourself, so I subclasses TransferHandler and Transferable (all this works) but when doing a transferable with only "text/plain" support, it automatically creates hundreds of flavors, also application/x-java-url.
    This is one of the flavor that gets DROPPED into the other JVM
    =======
    getMimeType: application/x-java-url; class=java.net.URL
    getHumanPresentableName: application/x-java-url
    getDefaultRepresentationClassAsString: java.io.InputStream
    getPrimaryType: application
    getSubType: x-java-url
    getRepresentationClass: java.net.URL
    getRepresentationClassString: class java.net.URL
    ERROR: java.awt.dnd.InvalidDnDOperationException: no protocol: hello world=======
    but what I dragged is only text/plain.
    why does this thing add hundreds of other flavors?
    Error I get (and many other apps also get) when reading the value using transferable.getTransferData(flavor): java.awt.dnd.InvalidDnDOperationException: no protocol: hello world

    user589898 ,
    Search on old threads before posting issues. Search on keyword CacheLoaderNotFoundException and you will find this issue has been discussed earlier.
    --Shiv                                                                                                                                                                                                                                                                                                                                                           

  • Protocol Exception using Hibernate on Ingres

    Hey everybody,
    Been getting this problem and can't seem to find any answers to it. Trying to load an object out of my Ingres DB that HIbernate put there for me a couple of days ago and i keep getting this
    Hibernate: select first 1 earlywarni0_.EarlyWarningID as UID0_, earlywarni0_2_.critical as critical0_, earlywarni0_2_.corePoolSize as corePool3_0_, earlywarni0_2_.keepAliveTime as keepAliv4_0_, earlywarni0_2_.maximumPoolSize as maximumP5_0_, earlywarni0_2_.queueSize as queueSize0_, earlywarni0_2_.jndiName as jndiName0_, earlywarni0_1_.host as host5_, earlywarni0_1_.interval as interval5_, earlywarni0_1_.port as port5_, earlywarni0_1_.reciever as reciever5_ from EarlyWarning earlywarni0_ inner join WebBasedProcessors earlywarni0_1_ on earlywarni0_.EarlyWarningID=earlywarni0_1_.WebBased_ID inner join ProcessingService earlywarni0_2_ on earlywarni0_.EarlyWarningID=earlywarni0_2_.UID
    EDBC-Connect[5].prepareStatement( select first 1 earlywarni0_.EarlyWarningID as UID0_, earlywarni0_2_.critical as critical0_, earlywarni0_2_.corePoolSize as corePool3_0_, earlywarni0_2_.keepAliveTime as keepAliv4_0_, earlywarni0_2_.maximumPoolSize as maximumP5_0_, earlywarni0_2_.queueSize as queueSize0_, earlywarni0_2_.jndiName as jndiName0_, earlywarni0_1_.host as host5_, earlywarni0_1_.interval as interval5_, earlywarni0_1_.port as port5_, earlywarni0_1_.reciever as reciever5_ from EarlyWarning earlywarni0_ inner join WebBasedProcessors earlywarni0_1_ on earlywarni0_.EarlyWarningID=earlywarni0_1_.WebBased_ID inner join ProcessingService earlywarni0_2_ on earlywarni0_.EarlyWarningID=earlywarni0_2_.UID )
    EDBC-PreparedStatement[250]: 'select first 1 earlywarni0_.EarlyWarningID as UID0_, earlywarni0_2_.critical as critical0_, earlywarni0_2_.corePoolSize as corePool3_0_, earlywarni0_2_.keepAliveTime as keepAliv4_0_, earlywarni0_2_.maximumPoolSize as maximumP5_0_, earlywarni0_2_.queueSize as queueSize0_, earlywarni0_2_.jndiName as jndiName0_, earlywarni0_1_.host as host5_, earlywarni0_1_.interval as interval5_, earlywarni0_1_.port as port5_, earlywarni0_1_.reciever as reciever5_ from EarlyWarning earlywarni0_ inner join WebBasedProcessors earlywarni0_1_ on earlywarni0_.EarlyWarningID=earlywarni0_1_.WebBased_ID inner join ProcessingService earlywarni0_2_ on earlywarni0_.EarlyWarningID=earlywarni0_2_.UID'
    EDBC-Connect[5].prepareStatement(): EDBC-PreparedStatement[250]
    EDBC-PreparedStatement[250].executeQuery()
    EDBC-Connect[5].isReadOnly(): false
    EDBC-PreparedStatement[250].executeQuery(): EDBC-ResultSet[497]
    EDBC-ResultSet[497].next()
    SQLException: SQLState(40003) vendor code(15532034)
    ca.edbc.util.EdbcEx: Connection aborted due to a communications protocol error.
            at ca.edbc.util.EdbcEx.get(EdbcEx.java:195)
            at ca.edbc.jdbc.RsltFtch.readData(RsltFtch.java:844)
            at ca.edbc.jdbc.EdbcObj.readResults(EdbcObj.java:661)
            at ca.edbc.jdbc.RsltFtch.load(RsltFtch.java:358)
            at ca.edbc.jdbc.RsltCurs.load(RsltCurs.java:245)
            at ca.edbc.jdbc.EdbcRslt.next(EdbcRslt.java:573)
            at org.hibernate.loader.Loader.doQuery(Loader.java:685)
            at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223)
            at org.hibernate.loader.Loader.doList(Loader.java:2147)
            at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026)
            at org.hibernate.loader.Loader.list(Loader.java:2021)
            at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:369)
            at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:298)
            at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1020)
            at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
            at meta.system.SystemResurector.load(SystemResurector.java:500)
            at meta.system.SystemResurector.loadEarlyWarning(SystemResurector.java:492)
            at meta.system.SystemResurector.main(SystemResurector.java:374)
    SQLException: SQLState(40003) vendor code(15532034)
    ca.edbc.util.EdbcEx: Connection aborted due to a communications protocol error.
            at ca.edbc.util.EdbcEx.get(EdbcEx.java:195)
            at ca.edbc.io.DbConnIn.receive(DbConnIn.java:540)
            at ca.edbc.jdbc.EdbcObj.readResults(EdbcObj.java:643)
            at ca.edbc.jdbc.RsltFtch.closeCursor(RsltFtch.java:454)
            at ca.edbc.jdbc.RsltCurs.closeCursor(RsltCurs.java:290)
            at ca.edbc.jdbc.RsltFtch.shut(RsltFtch.java:509)
            at ca.edbc.jdbc.RsltFtch.load(RsltFtch.java:362)
            at ca.edbc.jdbc.RsltCurs.load(RsltCurs.java:245)
            at ca.edbc.jdbc.EdbcRslt.next(EdbcRslt.java:573)
            at org.hibernate.loader.Loader.doQuery(Loader.java:685)
            at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223)
            at org.hibernate.loader.Loader.doList(Loader.java:2147)
            at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026)
            at org.hibernate.loader.Loader.list(Loader.java:2021)
            at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:369)
            at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:298)
            at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1020)
            at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
            at meta.system.SystemResurector.load(SystemResurector.java:500)
            at meta.system.SystemResurector.loadEarlyWarning(SystemResurector.java:492)
            at meta.system.SystemResurector.main(SystemResurector.java:374)
    EDBC-ResultSet[497].next(): error loading data
    EDBC-ResultSet[497].close()Some people have said this might be due to the SQl statement being to long, but i find this a little hard to believe as the statement is quite little! I'm using the lastest version of Ingres and Hibernate and yep i've dloaded and rebuilt with the ingres dialect. This is the most informative error i can find for this as nothing apart of the usual 'somethings wrong' error appears in the Ingres logs.
    Any ideas/thoughts/anecdotes welcome!
    Cheers
    Tom

    The critical part of the stack trace is:
    ca.edbc.util.EdbcEx: Connection aborted due to a communications protocol error.
            at ca.edbc.util.EdbcEx.get(EdbcEx.java:195)
            at ca.edbc.jdbc.RsltFtch.readData(RsltFtch.java:844)
            at ca.edbc.jdbc.EdbcObj.readResults(EdbcObj.java:661)
            at ca.edbc.jdbc.RsltFtch.load(RsltFtch.java:358)
            at ca.edbc.jdbc.RsltCurs.load(RsltCurs.java:245)
            at ca.edbc.jdbc.EdbcRslt.next(EdbcRslt.java:573)
            at org.hibernate.loader.Loader.doQuery(Loader.java:685)This suggests that the SQL query has already executed without error and Hibernate is attempting to do ResultSet.next() at this point. I don't know anything about Hibernate or Ingres, so my guesses are theoretical:
    1. bug in the driver; get a new driver
    2. mismatch between the driver version and the DB version; get a new driver
    3. something disrupting the network connection, e.g. firewall only allows connections of n seconds long and reading the resultset is taking n + 2 sconds
    4. bug in the database software
    5. bug in hibernate; sometimes somehow it calls next() when it shouldn't
    6. bug in your code; you're not using hibernate properly
    I've no information to suggest which is more likely... Normally, I keep my mouth shut when I know as little ontopic as this, but you've been stuck here for 4 days, which suggests you're focused on the wrong part of the problem.

  • Unable to send mailSmtp protocol Exception

    i wrote the code for sending mail but iam unable to send mail.Iam
    getting the following error please help me from this problem.
    sun.net.smtp.SmtpProtocolException:
         at sun.net.smtp.SmtpClient.issueCommand(SmtpClient.java:48)
         at sun.net.smtp.SmtpClient.closeServer(SmtpClient.java:38)
         at sun.net.NetworkClient.openServer(NetworkClient.java:117)
         at sun.net.smtp.SmtpClient.openServer(SmtpClient.java:111)
         at sun.net.smtp.SmtpClient.<init>(SmtpClient.java:156)
         at com.nsc.aep.util.SendMail.mailTest(SendMail.java:14)
         at com.nsc.aep.util.SendMail.main(SendMail.java:39)
    : sun.net.smtp.SmtpProtocolException: 550 error.. llo,
    I am writing a small scriptlet in jsp to send a mail to a specified email address. Here is the code...
    <%@ page import="sun.net.smtp.SmtpClient, java.io.*" %>
    <%
    String from="[email protected]";
    String to="[email protected]";
    try{
    SmtpClient client = new SmtpClient("203.197.175.3"); //This is the SMTP server address
    client.from(from);
    client.to(to);
    PrintStream message = client.startMessage();
    message.println("To: " + to);
    message.println("Subject: Sending email from JSP!");
    message.println("This was sent from a JSP page!");
    message.println();
    message.println("Cool beans! :-)");
    message.println();
    message.println();
    client.closeServer();
    catch (IOException e){    
    System.out.println("ERROR SENDING EMAIL:"+e);
    %>
    thanx in advance
    Message was edited by:
    k-@.

    The java file is not executing the SmtpClient class there only iam getting the problem .The end user is having mail account can u plz
    clarify
    thanx in advance

  • Blank screen due to protocol exception

     

    You did mention the ver of WLS & SP?
    BTW, production issues cannot be addressed /resolved via newsgroups.
    Provide more info, we will see if we can narrow down the problem or else contact support.
    -K
    suchak jani wrote:
    Hi ,
    Due the folowing error a couple of the jsp's in our application are
    coming up blank.
    Fri Mar 09 12:21:20 EST 2001:<E> <HTTP> Servlet request terminated with
    IOException:
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote:
    '0' bytes instead of stated: '656' bytes.
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutputStreamImpl.java:381)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:254)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
    This is in a system in production. Need to urgently address this.
    Regards
    Suchak Jani

  • Protocol exception 403 during logon

    Hi,
    Let me ask very premitive question, sorry.
    I have recieved an error message (as attatched) when I tried to login to the system.
    The user and password should be correct.
    Could anyone kindly help?
    Kind regards,
    Yasuko

    Hello Yasuko,
    I encountered the same problem when I tried to log in the first time with the SAP Cloud Application Studio.
    I solved this issue on my side by removing the 'http://' from my link, making it :
    myXXXXXX.crm.ondemand.com in the hostname instead of http://myXXXXXX.crm.ondemand.com.
    Hope it helps,
    Allan

  • JMF with Native Libraries as Signed Applet

    Hello
    After spending a few days hunting through forums, digging into JMF source code and hacking in the dark I'm about to give up, but thought I'd start yet another thread on this. It's a long, sad story...
    Problem: Deploying a JMF based program that relies on native libraries (in this case the FOBS4JMF bindings) as an applet: how to get jmf.properties and the native libraries loaded properly.
    Partial Solution: the native libraries packaged in a signed jar file, added to the applet's archive property, extracted using getResourceAsStream(), and loaded using System.load(). This is how FOBS4JMF loads it's native library anyway (via the com.moesol.NativeLibraryFinder):
    Class classInApplet; // name of a class loaded by the applet
    File outputFile; // location for extracted library
    InputStream is = classInApplet.getResourceAsStream(resource);
    copyStream(is, outputFile);
    System.load(outputFile.getAbsolutePath());Why this doesn't really work:
    (a) JMF (com.media.util.Registry) only searches for jmf.properties (which contains the instructions to use the FOBS4JMF plugin) in real folders (i.e. not jars) on the classpath of the local machine. I could extract the jmf.properties to a folder on the local machine, but have no way of making sure that folder would be on the classpath. Calls to "System.getProperty("java.class.path") give varying results - including an empty string on FF/OSX. Even if i could get the classpath somehow, chances are that it wouldn't contain any folders writable under Vista's UAC, which would leave me out of luck.
    JMF also looks for a file called ".jmfdir" in various platform specific locations, and appends the contents of this file to the classpath, so if i could write to that file i'd be golden. This seems like it would work on non windows platforms, because JMF looks for that in "user.home"). However, from what i can tell, on windows, JMF uses a native call to a function called nGetUserHome() to determine where to find .jmfdir - which leads to the second problem...
    (b) the JMF native libraries are loaded through calls to System.loadLibrary(), not System.load(), which means that they have to be on the "java.library.path" in order to be found - and again, I have no way of extracting the libraries to a directory on that path (at least not one writable under Vista UAC). This wouldn't be a problem, as I could pre-load the libraries myself with System.load(), except that JMF throws an exception if it can't find one, and stops trying to do whatever it thinks it needs the library for. Again, not a problem if I use only the FOBS4JMF native code (though i would like to use the DirectAudio renderer on windows) - except that the nGetUserHome() function described above is in a native library (jmutil.dll). So, when com.media.util.Registry.getJMFDir() tries to find ".jmfdir" it first tries to load "jmutil.dll" using System.loadLibrary(). This throws an exception inf "jmutil.dll" is not on the "java.library.path", and com.media.util.Registry.getJMFDir() returns null. Here's the relevant code from com.media.util.Registry.getJMFDir() - with my annotations
    All of these problems are fixable by relatively minor tweaks to the JMF source - but I don't think that's allowed under the SCSL. So if anyone has any, i mean ANY other suggestions, please BRING 'EM ON.
    thanks
    -chris
    EDIT: just for kicks, i checked to see where JMF expects to find .jmfdir on windows - ie the result of nGetUserHome(). At least on XP this seems to be c:\WINDOWS. if it's the same on Vista, then fixing the loadLibrary problem won't help bc I still won't be able to write to this file.
    Edited by: wodenx on May 7, 2010 9:46 AM

    Hi-
    Thanks for responding so quickly.
    As far as the natives go, you might try using the new JNLP embedded applet ability in the plugin2 architecture.I was going to look into that, but decided it wasn't necessary since I can get the FOBS native code to link properly. It's really the registry that's the problem, since without solving that I can't get JMF to USE the FOBS code.
    Can you get it all to work if the JMF installer is invoked? If so, perhaps if you add an installer-desc that calls the normal JMF setup.exe (though that final warning to reboot is both unnecessary and odious).I don't think it would work even with the JMF installer, bc I need to point JMF at the FOBS specific jmf.properties. I might be get it to work by invoking my own installer though, to place my jmf.properties somewhere in the native class path, so that's worth looking at. Thank you. Problem there is that on Vista users would have to elevate to run the applet, which is not ideal.necessary and odious).
    Why do you particularly want to embed media in a web page?The customer may want it. I might be able to convince them to go with JNLP/WebStart, but I think I might have the same problem there. Please correct me if I'm wrong...
    I've also read that there are problems with JMF and JNLP owing to the fact that JMF doesn't recognize the security manager invoked by JNLP, and so gives your program no permissions. Haven't tried it myself yet.
    Thanks again!
    Edited by: wodenx on May 7, 2010 12:07 PM

  • Servlet failed with Exception

    I have a servlet that read Swing Applet input stream. It works on my JBuilder6 with HTML very fine. But It can't work on browser(such as IE). I have error message: Please someone help me!
    Mon May 19 10:00:28 EDT 2003:<E> <ServletContext-General> Servlet failed with Exception
    java.net.SocketException: Connection aborted by peer: socket write error
    at java.net.SocketOutputStream.socketWrite(Native Method)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
    at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:88)
    at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:121)
    at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputStreamImpl.jav
    a:444)
    at weblogic.servlet.ClasspathServlet.sendResource(ClasspathServlet.java:114)
    at weblogic.servlet.ClasspathServlet.doGet(ClasspathServlet.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:
    247)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Mon May 19 10:00:28 EDT 2003:<E> <HTTP> Servlet request terminated with IOException:
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '4096' bytes instead of stated
    : '16093' bytes.
    at weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutputStreamImpl.java:372
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:
    249)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    Hi, did you get any solution for the protocol exception? I have the same problem too....
    Thanks
    Suresh

  • InetAddress posting Unknown Host Exception

    Hello,
    I am relatively new to java and I am running into an Unknown Host Exception when attempting to return the IP's for valid host names. The strange part is that the first host name returns an address however every entry after the first returns the Unkown Host Exception. Here is the snippet of code that the problem is occuring in.
    Inet address as declared earlier in the code:
         private InetAddress Address = null;Code reporting errors:
              StringBuffer sb0 = new StringBuffer();
              int chr;
              // Read until the end of the stream     
              while ((chr = inputStream0.read()) != -1)
                      sb0.append((char) chr);
              String display = sb0.toString();
              String temp = display.replace("Giant ", "g0");
              String[] words = temp.split("\\|");
              StringBuffer db = new StringBuffer();
              for (int i=0; i < words.length; i++)
                      String many = (words[i] +"wu1");
                      try
                              Address = InetAddress.getByName(many);
                   db.append(words[i] + "wu1|" + Address);
                      catch(NullPointerException e)
                              db.append(words[i] + "wu1 - Null Pointer - ");
                      catch(UnknownHostException e)
                              db.append(words[i] + "wu1 - Unknown Host - ");
              String yay = db.toString();
              log.append(yay);
                                    catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
                                    catch (IOException e)
              // TODO Auto-generated catch block
              e.printStackTrace();
              }I have attempted setting Address back to null after the address was appended but it didn't make any difference.
    Edited by: mudbuggle on Aug 4, 2008 7:19 PM

    I made the adjustments however I am still experiencing the same problem.
    www.yahoo.com returns an ip address but the rest return Unknown Host Exceptions.
    www.yahoo.comjava.net.UnknownHostException:
    forums.sun.com
         at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
         at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
         at java.net.InetAddress.getAddressFromNameService(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
    forums.sun.com     at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getByName(Unknown Source)
         at IP$1.actionPerformed(IP.java:83)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    java.net.UnknownHostException:
    www.google.com
         at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
         at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
         at java.net.InetAddress.getAddressFromNameService(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getByName(Unknown Source)
         at IP$1.actionPerformed(IP.java:83)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • Including JMF libraries in an applet

    I am trying to include JMF libraries in my applet, so anybody who opens a URL in his navigator can see me through my webcam.
    To do this, I included customizer.jar, jmf.jar, mediaplayer.jar, multiplayer.jar and sound.jar in my jar distribution to make a test.
    The clients run properly, however the just see the movie if they have JMF installed. If they have not JMF installed, no exception is throwed, but still they do not see anything.
    Am I missing something? Does JMF uses native libraries?
    Any help is welcome. Thanks!!!

    I did that already
    i.e. what is written in
    Q: Can I capture audio or video from within an Applet with JMF 2.1.1?
    By default (for security reasons), JMF 2.1.1 does not allow capture from an applet. The user can turn this on by using JMFRegistry.
    Run "java JMFRegistry", select the UserSettings tab and check "Allow Capture From Applets". If the browser's security permits loading native libraries, then you will now be able to capture audio/video from an applet.
    but the program lines
    try
    player = Manager.createRealizedPlayer(ml);
    FormatControl formatControl = (FormatControl)player.getControl("javax.media.control.FormatControl");
    Component co = formatControl.getControlComponent();
    Thread.sleep(2000);
    player.start();
    give always the same error
    java.lang.RuntimeException: No permission to capture from applets
    java.lang.RuntimeException: No permission to capture from applets
    why?
    I am working inside the netbeans 6.9.1 editor

  • Web Services are protocols independent?

    Hi Guys,
    I want to know that Web Services are protocol independent? if yes, can i develop a web service in other protocols excepts HTTP and SOAP. Please describe in details.

    Hello,
    I will say it depends how you are qualifying Web Services and related technologies.
    Historically, Web services have been build to use protocol and technologies that will work using Internet technologies and be compliant with Firewall and other internet layers...
    So the network protocols were HTTP/HTTPS.Also, because the service has to be decoupled from the implementation, so we use XML and data representation using Schemas, all define in a wire protocol SOAP.
    So initially Web Services are based on SOAP over HTTP/HTTPS, and the description of the services, the different message types is done in the WSDL, that is itself an XML document. Since the message is an XML document, it is possible to send it using any protocol, the idea being you send the SOAP request to a server the server deal with it and send a response all using SOAP representation. This is why for example in the Oracle Web Service stack in addition to HTTP/HTTPS, you can use JMS as the communication protocol.
    But I also want to add some information about WSIF (Web Services Invocation Framework), where in addition to SOAP, you can use "native" layer to call a Web Service. The idea being that for example if you are building a service where the clients are either hosted on the same server as the service, or remote and outside the firewall... You want in this case to be able to call your java implementation class from the container when you are local, and when a customer wants to call the service from the internet uses the SOAP/HTTP protocol. To learn more about WSIF take a look to this OTN Article: Web Services—Anyhow, Anywhere
    So as you can see Web Services are protocol intependent.
    Regards
    [urlhttp://blog.grallandco.com]Tugdual Grall

Maybe you are looking for

  • Is there anyone who can help me out in this!!!!

    Trying this for the fourth time........ Hi gurus, I have posted this thread earlier also but didnt get any response, so I was just wondering did I ask something unrealistic? Hi gurus, I am working on an interface where I will be getting the productio

  • ITunes 9 - 'last played' and 'play count' still do not sync on manual

    Tonight I upgraded to iTunes 9 and my iPod Touch to v3.1.1 but the 'improved' sync doesn't seem to have improved to what I need. Alright, basically I have a lot of rare songs and live recordings in my library. My iPod Touch is only 16gb and my music

  • Error in creating table

    Hi, i'm creating the following table and having this error: ERROR at line 8: ORA-00907: missing right parenthesis This is the sql: CREATE TABLE baditemlist ( idbaditemlist NUMBER(16), idproducttypelist NUMBER(3), item VARCHAR2(20), CONSTRAINT pk_idba

  • Aggregates table name for an infocube ?

    May I know the aggregate table name for an infocube ? I want to see the loaded aggregate for an infocube, is there a physical table name created when we have aggregate for an infocube ? or the aggregates are created from the existing fact table of th

  • Source editor preferences.

    empty