Infra -Red via Java

Right, here goes!
I am looking to program an infra red transmitter to do various tasks. Initially (to get me started) I would like to be able to send TV remote control commands (e.g. change channel!). So where do I begin?!
I've seen a USB infra-red transmitter, but it looks as though USB programming in Java isn't so straightforward.
The end game is to be able to send signals via my web site, but that seems a long way off right now!
Thanks
Richard

Right, here goes!
I am looking to program an infra red transmitter to do
various tasks. Initially (to get me started) I would
like to be able to send TV remote control commands
(e.g. change channel!). So where do I begin?!
I've seen a USB infra-red transmitter, but it looks as
though USB programming in Java isn't so
straightforward.
The Java USB API is still in the public draft stage of the Java Community Process, so many aspects of the API are not very clear. The intent of the Java USB API is to provide a unified specification API that would allow developers and vendors to create drivers for their own application. This specification strives to provide a standard library for all platforms and is targeted for the J2ME and J2SE platforms. However we can hope that by the end of the JCP the specification team will provide a good API for USB access. It could throw open a wide range of devices and services into the market.
But, in the meantime you can search for any third party implementation for usb communication, if there is any.
good luck!!
>
The end game is to be able to send signals via my web
site, but that seems a long way off right now!
Thanks
Richard

Similar Messages

  • Logging variable value to log via Java Invocation

    Hi,
    I'm trying to log a variable value to log file via Java Invocation.
    This are my imports:
      <bpelx:exec import="java.util.logging.Logger"/>
      <bpelx:exec import="java.util.logging.Level"/>
      <bpelx:exec import="oracle.fabric.logging.LogFormatter"/>
      <bpelx:exec import="org.w3c.dom.*"/>
      <bpelx:exec import="oracle.xml.parser.v2.XMLElement"/>
      <bpelx:exec import="java.util.*"/>
      <bpelx:exec import="java.lang.*"/>
      <bpelx:exec import="java.math.*"/>
      <bpelx:exec import="java.io.*"/>
      <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>If I do this, my bpel compiles fine:
            <bpelx:exec name="Java_Embedding_1" version="1.5" language="java">
              <![CDATA[
                  Logger logger = Logger.getLogger("oracle.soa.Logger");
                  LogFormatter.configFormatter(logger);]]>
            </bpelx:exec>Now, if I do this (in order to cast the getVariableData(...) to Element or String, to get it logged):
            <bpelx:exec name="Java_Embedding_1" version="1.5" language="java">
              <![CDATA[
                  Logger logger = Logger.getLogger("oracle.soa.Logger");
                  LogFormatter.configFormatter(logger);
                  getVariableData("sendMessage_InputVariable","body","/ns2:sendMessageInput/ns2:invocationId");]]>
            </bpelx:exec>my BPEL won't compile. I get the error
    Error(55,33): Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "BPELProcess" of composite "default/JDeveloper_BPEL_Project!1.0"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    Not much help in my scac.log. No error, just warning:
    2012-11-13 14:59:40 com.collaxa.cube.CubeLogger info
    INFO: LibClasspath=/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/commonj.sdo_2.1.0.jar:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-thirdparty.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-exts.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-validator.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-client.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/oracle.soa.fabric.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/soa-infra-tools.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-ext.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.ext_11.1.1/classes/:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar
    2012-11-13 14:59:40 com.collaxa.cube.CubeLogger info
    INFO: validating "BPELProcess.bpel" ...
    2012-11-13 14:59:41 com.collaxa.cube.CubeLogger warn
    WARNING: CubeProcessor.compileGeneratedClasses() classpath is: /opt/Oracle_Middleware_Home/jdeveloper/jdev/extensions/oracle.sca.modeler.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:/opt/Oracle_Middleware_Home/oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.mediator_11.1.1/mediator_client.jar:/opt/Oracle_Middleware_Home/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar:/opt/Oracle_Middleware_Home/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:/opt/Oracle_Middleware_Home/oracle_common/modules/oracle.xdk_11.1.0/xml.jar::/home/veronica/myProject/myProject_Repozytorium/Asynchronic_BPEL/JDeveloper_Asynchronic_BPEL/JDeveloper_BPEL_Project/SCA-INF/classes:/home/veronica/myProject/myProject_Repozytorium/Asynchronic_BPEL/JDeveloper_Asynchronic_BPEL/JDeveloper_BPEL_Project/SCA-INF/classes:/home/veronica/myProject/myProject_Repozytorium/Asynchronic_BPEL/JDeveloper_Asynchronic_BPEL/JDeveloper_BPEL_Project/SCA-INF/gen-classes:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/commonj.sdo_2.1.0.jar:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-thirdparty.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-exts.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-validator.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-client.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/oracle.soa.fabric.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/soa-infra-tools.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-ext.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.ext_11.1.1/classes/:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jarIs it missing something? What it is missing?

    Actually I got it to work, and I'm not sure why it hasn't worked before.
    Where are the compiler complaints stored?

  • New to infra red

    I was asked to write a server apps that uses infra red
    to receive information. the information is sent using an
    imbedded device (sends strings outside to anyone listens).
    Where should I start ? my device supports java, is there a package
    for implementing irda ? Can any midlet have access to the irda port ?
    if not is there another way to use the low level API to do so ?
    I stil don't know on which device I will activate the midlet ? is
    this important ?
    thanks
    Chanan

    15-Nov-2006
    11:43 AM
    manta wrote:
    YOU can battery boot the n80 and try again.
    If you success, you need to propably reset the phone to factory settings with *#7370#, confirmation code by default 12345 and then try the sync again
    Thanks for the help BUT although your advice does work (I can synchronise after resetting phone), subsequent requests to sync fail for the same reasons given previously. There seems to be many similar problems on this forum - is this a fault with the phone and do I just have to put up with it?

  • Infra red communication

    Hi,
    This is my first wireless java assignment so I'm new at this...
    I need to write a java application which will implement an infra red game between 2 pocket pc users (or any cell phones) which ever is simpler to implement. Is it possible? where can I find some more info? should I use J2ME? are there infra red emulators?
    Thanks in Advance !!
    Tom.

    Hi all
    I am presently working on j2me. i wish to establish the irport communication between my mobile and my own pc in order to send info from pc to mobile and viceversa.
    i came to know that nokia is not providing low level API in doing this is there any other solution to do this and any proof for erlier

  • Will an Infra-Red Adapter work with a macbook pro retina display so I can use the apple TV remote for presentations?

    I have always used the apple TV remote for my presentations.  I bought a retina display last year for the betterment of my presentations and now I have to stand near my computer and hit a button to change my slides where as before I used my remote.  Will a infra-red adapter work with the apple TV remote in the macbook pro retina display?  Love my computer, but very disappointed not to have a remote for presentations that does not need the internet.  Does anyone have any ideas?

    Yes, I used that and it works great if you have wireless connection.  Im looking for  a remote that worked like the apple TV remote.  My questions is, "Is there a USB infra-red remote that works with mac.  I have found this one: Keyspan EZ1 easy presenter.  It claims with works with PC and Mac and the reviews are good.  Does anyone know anything about it or if it works with retina display macs?

  • How to open and validate the tif images via java?

    Is it possible to open and validating the photoshop images via java. Kindly advise me.
    Thanks for looking into this.
    Maria Prabudass

    I have recently looked at athe code for Image Processor.
    To avoid bailing on errors it uses two techniques.
    1) It turns off all PS error reporting in addition to just turning off dialogs with:     app.displayDialogs = DialogModes.NO;  (it restores the original settings when exiting)
    2) It uses the Javascript construct  Try.....Catch around the basic body of the code so "any" error will not abort the script but just jump to the "Catch" code.
    Hope that is useful

  • How to open-up a pdf file to a particular page via java? (file and page number from another program)

    I have created an Access 2003 Form. Data is entered. The data can be viewed once entered in the same form format, with one addition. The addition is a link to another program where we store files. The files stored are pdf documents. Each document is a scanned file (500+ pages). The link can open-up the pdf file. I want the link to open-up the pdf file to a particular page. I will supply the page number from the database.
    I am aware of Adobe Acrobat 7.0 PDF Open Parameters using a URL that specifies the file to be opened plus actions to be performed once the file is openend (i.e. http://example.org/doc.pdf#page=3). However, the 3rd party program transfers a file from a server to the client via java. The file does not go via a web browser. The java code transfer the file directly from the file server to the the client.
    Any idea how to accomplish the task of viewing a particular page with the process flow described?
    I am using Adobe Acrobat 7.0 Professional.

    So you are reading this file in a standalone version of Acrobat? If so then use the PDF Open Parameters /a option via the command line.
    Sabian
    Example:
    C:\Program Files\Adobe\Acrobat 7.0\Acrobat>Acrobat.exe /A "zoom=1000=OpenActions" "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\SimpleSubmit.pdf"
    Where:
    Path to Acrobat: C:\Program Files\Adobe\Acrobat 7.0\Acrobat>Acrobat.exe
    Note: The example starts in the Acrobat application directory
    Switch: /A
    Parameter Syntax: "zoom=1000=OpenActions"
    Path to file: "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\SimpleSubmit.pdf"
    Note: The quotes are very important for the syntax to work appropriately.

  • Scheduling webi reports via Java SDK in BI 4.1

    Hi,
    Has anyone been able to schedule a Webi report containing date prompts via Java SDK in BI 4.1? I have tried doing so but it doesn't work when date prompts are involved, I get the exception raised: java.lang.NullPointerException error. Though the scheduled instance is created and the date prompt appears to be correctly populated the report fails with the above mentioned error message. The code is working for other text prompts but fails when I have a date prompt in the report. I am using the populateWebiPrompts() method to populate the prompts.
    CF

    Hi Christopher,
    Try adding the following line in your code before scheduling:
    iWebi.setUserInputLocaleName(documentInstance.getProperties().getProperty(PropertiesType.BASE_LOCALE));
    Also as an FYI, please refer below details.
    For scheduling webi reports with prompts, the only supported way is to use Restful webservices SDKs.
    The feature of scheduling a webi report with prompts were deprected from release BI 4.x and introduced in the new restfull webservices. Restful is the future which SAP is focussing and would be great to have your application on supported terms with SAP.
    You can get details about the restful webservices from the documents and blogs available at below forum
    http://scn.sap.com/community/restful-sdk
    Thanks,
    Prithvi

  • How to create table in interactive form via Java Web Dynpro

    Hi,
    How to create table in interactive form via Java Web Dynpro ?
    Any online tutorial / example ?
    Thank you.
    Regards,
    Eric

    Hi Eric,
    Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
    Hope it will solve your query.
    Regards,
    Vaibhav Tiwari.

  • Access local disk via Java Web Start??

    HI all ,
    I had saw the JWS document.
    It indicate we can't access local disk via JWS in that Security.
    If I need to access local disk by command, does anyone have better suggestion.
    And can I run *.bat via Java Web Start?
    Thanks very much for your help.
    Morris

    I do the both thing but still don't access to Local disk.
    I just write a simple test class within extend another that create a file (and of course sign it)but still can't create a file Local disk. this MAKE ME MAD and LOOSE MY JOB .
    here is my JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Pensionsrechner -->
    <jnlp
    spec="1.0+"
    codebase="file:///d:/"
    href="test.jnlp">
    <information>
    <title>Me</title>
    <vendor>myself</vendor>
    <homepage href="http://www.me.com"/>
    <description> test test test</description>
    <description kind="short">Test creatin of log file on client </description>
    </information>
    <offline-allowed/>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4"/>
    <jar href="test2.jar"/>
    </resources>
    <application-desc main-class="secMan.Test"/>
    </jnlp>

  • Canvas background via Java

    Is there a way to set the background color of a canvas via Java. I am using FocusLost and FocusGained to change the background color of textfields to be able to better show where the cursor is on a form. I have a couple of forms that have multiple canvases showing at the same time and the user wants the canvas color to change when the cursor is in a field on that canvas.
    Is there a focus event associated with a canvas? Is there a way to control the canvas color via Java?

    Hi Dave,
    Is there a reason you don't use SET_CANVAS_PROPERTY(BACKGROUND_COLOR, ...)?
    In Java on the client, the canvas is not one of the objects we expose. However you can do what you want in Java and using some getParents() to get to the canvas, and then do a setBackground() on that. But note that this isn't supported, and the hierarchy could change at any time...
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Calling stored procedure via java

    Hi all,
    i have a problem calling a stored procedure in my java code. I found an example at OTN which seems not to be correct. I know there had been a lot of posting regarding this isue but i did not find the solution.
    I had the following VB-code to translate to java:
    Set k = Server.CreateObject("ADODB.command")
    With k
    .activeconnection = Db
    .CommandType = 4
    .CommandText = "Get_SK"
    Set vret = .createparameter("vRet", 131, 2) 'Output
    .Parameters.append vret
    .Execute
    End With
    In my java code:
    CallableStatement sproc_stmt = null;
    try {
    sproc_stmt = lsession.connection().prepareCall("{ ? = call TCSDBOWNER.Get_SK}");
    sproc_stmt.registerOutParameter(1,OracleTypes.NUMERIC);
    sproc_stmt.setFetchSize(10);
    sproc_stmt.execute();
    The call generates an id for inserting new rows in the DB. executing the code shown above i got the following error:
    wrong number or types of parameter/arguments
    Is there anybody who can help me? Best regards,
    ak

    Hi again,
    this was really ugly:
    Re: Executing stored procedure via java
    Thanks all, regards,
    ak

  • How to close external files opened via java via java itself?

    hi,
    I am using jdk1.6 so I've used the Desktop Class to run the .bat file for some purposes via java with the open(File f) method. Now, what I want is to close those opened .bat files but had no idea so I would appriciate any help.
    thank you,
    Jay

    Okay, now I've used the ProcessBuilder class for that
    approach. Now I can find the destroy() method in the
    Process class but it didn't help me. Here's how I
    tried:
    public class Main extends JFrame implements
    ActionListener
    Command com;
    public Main()
    super();
    com=new Command(1,this); // this class
    class implements ActionListener and handles the
    actions happening in the Main class.
    a_button.addActionListener(com);
    /* from the Command class the ProcessBuilder is
    der is started returning the instance proc of the
    class Process.*/
    public void windowClosing(WindowEvent evt)
    com.proc.destryo(); //<------ does the API really have a typo in it?
    System.exit(0);
    public void window.....(WindowEvent evt){}....
    }regards,
    Jay

  • L'infra rouge n'est plus reconnu sur mon Mac / infra red is not recognized

    Bonjour,
    j'ai récemment installé les derniers updates de OS 10.4.8. Depuis, je ne peux plus utiliser Front View et la remote : mon mac réagit comme s'il n'avait pas d'infra rouge.
    J'ai vu différents sujets de discussion à ce propos, mais tous disent d'aller dans les préférences system > onglet sécurité, et de sélectionner activer l'IR. Mais le problème, dans mon cas, c'est que comme le mac considère qu'il n'a pas d'infra rouge, et bien je n'ai pas accès à cette option !!!
    J'ai essayé de réinstaller Front view, en vain : il ne veut pas car il considère que cette application n'est pas compatible avec mon system !!!!
    Pouvez vous me donner un coup de main s'il vous plaît ???
    Merci !!
    Hello, I recently installed the last updates of OS 10.4.8. Since, I
    cannot use any more Front View and the remote: my mac reacts as if it
    did not have infra red.
    I saw various subjects of discussion on this subject, but all say to go in the preferences system > security tab, and to select activate IR. But the problem, in my case, is that my mac considers that it does
    not have infra red, and well I do not have access to this
    option!!!
    I tried to reinstall front view, in vain: it does not want because
    it considers that this application is not compatible with my system! !
    Can you give me a blow of hand please??? Thank you!!

    Hello Nitrau,
    Go to Apple > About this Mac > More Info - Click on USB on the left hand side and make that IR Receiver is listed.
    If it is listed then pair your remote:
    http://docs.info.apple.com/article.html?artnum=302545
    If it is not then the computer is not identifiying the receiver.
    Reset the PRAM - > http://docs.info.apple.com/article.html?artnum=2238
    For Intel based machines:
    From the Apple menu, choose Shut Down (or if the computer is not responding, hold the power button until it turns off).
    Unplug all cables from the computer, including the power cord and any display cables.
    Wait at least fifteen seconds.
    Plug the power cord back in, making sure the power button is not being pressed at the time. Then reconnect your keyboard and mouse to the computer.
    Press the power button to start up your computer.
    For PPC based machines:
    Turn off the computer by choosing Shut Down from the Apple menu, or by holding the power button until the computer turns off.
    Unplug all cables from the computer, including the power cord.
    Wait 10 seconds.
    Plug in the power cord while simultaneously pressing and holding the power button on the back of the computer.
    Let go of the power button.
    Press the power button once more to start up your iMac.
    If the IR still does not show up then run Apple Hardware Test from the disks that came with your computer to make sure that the IR receiver is detected.
    If not then you should contact Apple for repair.
    Hope that helps!
    Bonjour Nitrau,
    Vont à Apple > au sujet de cet imper > plus d'information -
    Cliquez sur l'USB du côté de main gauche et faites que le
    récepteur IR est énuméré.
    S'il est énuméré alors appareillez votre périphérique :
    http://docs.info.apple.com/article.html?artnum=302545
    S'il n'est pas puis l'ordinateur pas identifiying le
    récepteur.
    Remettez à l'état initial le LANDAU - >
    http://docs.info.apple.com/article.html?artnum=2238 pour les machines
    basées par Intel :
    Du menu de Apple, choisissez arrêté (ou si l'ordinateur ne répond
    pas, tenez le bouton de puissance jusqu'à ce qu'il s'éteigne). En
    débranchez tous les câbles à partir de l'ordinateur, y compris le
    cordon de secteur et des câbles d'affichage. Attendez au moins quinze
    secondes. Branchez le dos de cordon de secteur, en s'assurant que le
    bouton de puissance n'est pas appuyé sur alors. Rebranchez alors
    votre clavier et souris à l'ordinateur. Appuyez sur le bouton de
    puissance pour mettre en marche votre ordinateur.
    Pour PPC basé machines :
    Arrêtez l'ordinateur par le choix arrêté du menu de Apple, ou en
    tenant le bouton de puissance jusqu'à l'ordinateur s'éteint.
    Débranchez tous les câbles à partir de l'ordinateur, y compris le
    cordon de secteur. Attendez 10 secondes. Branchez le cordon de secteur
    tout en simultanément appuyant sur et en tenant le bouton de
    puissance sur le dos de l'ordinateur. Laissez aller du bouton de
    puissance. Appuyez sur le bouton de puissance une fois de plus pour
    commencer vers le haut votre iMac.
    Si le distillateur IR ne révèle pas l'essai alors exécuté de
    matériel de Apple à partir des disques qui sont venus avec votre
    ordinateur pour s'assurer que le récepteur IR est détecté.
    Si pas alors vous contactez Apple pour la réparation.
    Espérez que des aides !

  • Nfs mount point does not allow file creations via java.io.File

    Folks,
    I have mounted an nfs drive to iFS on a Solaris server:
    mount -F nfs nfs://server:port/ifsfolder /unixfolder
    I can mkdir and touch files no problem. They appear in iFS as I'd expect. However if I write to the nfs mount via a JVM using java.io.File encounter the following problems:
    Only directories are created ? unless I include the user that started the JVM in the oinstall unix group with the oracle user because it's the oracle user that writes to iFS not the user that creating the files!
    I'm trying to create several files in a single directory via java.io.File BUT only the first file is created. I've tried putting waits in the code to see if it a timing issue but this doesn't appear to be. Writing via java.io.File to either a native directory of a native nfs mountpoint works OK. ie. Junit test against native file system works but not against an iFS mount point. Curiously the same unit tests running on PC with a windows driving mapping to iFS work OK !! so why not via a unix NFS mapping ?
    many thanks in advance.
    C

    Hi Diep,
    have done as requested via Oracle TAR #3308936.995. As it happens the problem is resolved. The resolution has been not to create the file via java.io.File.createNewFile(); before adding content via an outputStream. if the File creation is left until the content is added as shown below the problem is resolved.
    Another quick question is link creation via 'ln -fs' and 'ln -f' supported against and nfs mount point to iFS ? (at Operating System level, rather than adding a folder path relationship via the Java API).
    many thanks in advance.
    public void createFile(String p_absolutePath, InputStream p_inputStream) throws Exception
    File file = null;
    file = new File(p_absolutePath);
    // Oracle TAR Number: 3308936.995
    // Uncomment line below to cause failure java.io.IOException: Operation not supported on transport endpoint
    // at java.io.UnixFileSystem.createFileExclusively(Native Method)
    // at java.io.File.createNewFile(File.java:828)
    // at com.unisys.ors.filesystemdata.OracleTARTest.createFile(OracleTARTest.java:43)
    // at com.unisys.ors.filesystemdata.OracleTARTest.main(OracleTARTest.java:79)
    //file.createNewFile();
    FileOutputStream fos = new FileOutputStream(file);
    byte[] buffer = new byte[1024];
    int noOfBytesRead = 0;
    while ((noOfBytesRead = p_inputStream.read(buffer, 0, buffer.length)) != -1)
    fos.write(buffer, 0, noOfBytesRead);
    p_inputStream.close();
    fos.flush();
    fos.close();
    }

Maybe you are looking for

  • How can I use any website on the internet with my apple tv?

    How Can I use internet or the web on my apple tv?

  • 'serious error' when creating a new project in adobe premiere elements 10

    Hello, I saw similar questions on the forums but not quite what is happening with me. First off I should say i've never had this working however the copy of premiere elements 7 we had worked perfectly fine. I am a technician in a school and i'm tryin

  • Problem in reading the form parameter.

    Hi All, I have made a HTML with Following Tag <form name="uploadForm" action="upload.jsp" enctype="multipart/form-data" method="post"> as i made the enctype="multipart/form-data" i am not able to read the Form parameter that i got in the File tag of

  • Number of Threads Question

    Hi, I'm working on a pretty big program and i need a lot of threads to make it run well (it's an audio player and, of course, i don't need people to wait when, for example, they save a playlist). So, i put some of these tasks on different threads, pl

  • Looking for the best hard drive digital camcorder!!

    I was in the store today and asked a couple sales reps, each giving me their opinions that personally didn't sound like "educated" opinions.  I want a hard drive camcorder with 60 GB and that is the "best" meeting that criteria.  Should I look at Can