Re: Problem with AVTransmit & AVReceive Examples

Is there a way to be able to test transmission and reception on the same machine? Yes.
In AVTransmit2, take a look at the createTransmitter() function, specificlly the following 2 lines:
localAddr = new SessionAddress( InetAddress.getLocalHost(), port);
destAddr = new SessionAddress( ipAddr, port);The local address is what the transmitter is going to bind to for it's send operations. The destination address is what the transmitter is going to address outgoing packets to.
Think about what that means in the case of ipAddr being localhost...
localAddr = new SessionAddress( InetAddress.getLocalHost(), SessionAddress.ANY_PORT );
destAddr = new SessionAddress( ipAddr, port);Try that, and think about why that works and why the original lines didn't.

If I change the reference, I'm left with the following:
                    //SessionAddress localAddress = new SessionAddress(InetAddress.getLocalHost(),SessionAddress.ANY_PORT);
                    SessionAddress localAddress = new SessionAddress(InetAddress.getByName("127.0.0.1"),SessionAddress.ANY_PORT);
                    //Initialize RTP Manager
                    rtpManager.initialize(localAddress);
                    SessionAddress destinationAddress = new SessionAddress(InetAddress.getByName("127.0.0.1"),port);
                    rtpManager[i].addTarget(destinationAddress);And I get the following error:javax.media.rtp.InvalidSessionAddressException: Local Data AddressDoes not belong to any of this hosts local interfaces                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Problem with AVTransmit

    Hello,
    I am new to jmf and I'm trying to develop a simple streaming mp3 server. The problem is that when I start AVTransmit with the following parameters
    file:/z:/vivi/stauroula/project/Server/src/server/kantina.mp3 195.134.65.181 1022
    it seems to work OK. I get the following messages:
    Track 0 is set to transmit as:
    mpegaudio/rtp, 22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 10000.0 frame rate, FrameSize=32768 bits
    Created RTP session: 195.134.65.181 1022
    Start transmission for 60 seconds...
    ...transmission ended.
    The problem is that JMFStudio does not receive the data. I open an rtp session with port number 1024 (portbase + 2) and I get a message " Waiting for data".
    Am I doing something obviously wrong here??
    Thank you,
    Akrivi Katifori

    Hi!
    You were right... I thought that the first track would use destportbase+2 and not just destportbase...
    But trying in a different machine this time a get the following message from JMF Studio:
    Controller Error [...] Failed to handle a data format change!
    What could this mean?
    I tried with different mp3s but no success...
    Thank you,
    Aktivi

  • Problems with sound convertion example

    Hi
    Below is my code for a soundconverter (or atleast the beginning of one). By now i have only gotten to the sound convertion example in the java tutorials.
    I keep getting this error:
    Error: failure attempting to read /home/carsten/Desktop/1-welcome.wav!
    I have given the file a chmod 777 permission.
    im on linux, but i guess that shouldnt matter.
    Hope you can help me out
    the problems are in the convertFile method
    Thanks
    Carsten
    * SoundConverterGUI.java
    * Created on 23. april 2007, 13:05
    package soundconverter;
    import java.io.File;
    import java.io.IOException;
    import javax.sound.sampled.AudioFileFormat;
    import javax.sound.sampled.AudioInputStream;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.UnsupportedAudioFileException;
    import javax.swing.JFileChooser;
    import javax.swing.filechooser.FileNameExtensionFilter;
    * @author  carsten
    public class SoundConverterGUI extends javax.swing.JFrame {
        /** Creates new form SoundConverterGUI */
        public SoundConverterGUI() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            loadFileBtn = new javax.swing.JButton();
            loadFileLabel = new javax.swing.JLabel();
            loadFileField = new javax.swing.JTextField();
            fileFormatLabel = new javax.swing.JLabel();
            fileFormatCombo = new javax.swing.JComboBox();
            convertBtn = new javax.swing.JButton();
            seperator = new javax.swing.JSeparator();
            jSeparator1 = new javax.swing.JSeparator();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setResizable(false);
            loadFileBtn.setText("Browse");
            loadFileBtn.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    chooseFile(evt);
            loadFileLabel.setText("File to convert:");
            fileFormatLabel.setText("File format to convert to:");
            fileFormatCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "AIFF" }));
            convertBtn.setText("Convert");
            convertBtn.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    convertFile(evt);
            jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(loadFileLabel)
                                .addComponent(seperator, javax.swing.GroupLayout.DEFAULT_SIZE, 584, Short.MAX_VALUE)
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(loadFileField, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(fileFormatCombo, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(fileFormatLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 343, Short.MAX_VALUE)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(convertBtn, 0, 0, Short.MAX_VALUE)
                                        .addComponent(loadFileBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(310, 310, 310)
                            .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(loadFileLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(loadFileField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(loadFileBtn))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(fileFormatLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(fileFormatCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(convertBtn))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(seperator, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)
                    .addContainerGap())
            pack();
        }// </editor-fold>                       
        private void convertFile(java.awt.event.ActionEvent evt) {                            
            //The format to be converted from
            AudioFileFormat inFileFormat;
            try {
                outFile = new File(inFile.getParent()+"/"+
                        inFile.getName().substring(0, inFile.getName().lastIndexOf("."))+"."+
                        fileFormatCombo.getSelectedItem());
                System.out.println(outFile);
            } catch (NullPointerException ex) {
                System.out.println("Error: one of the parameters is null!");
                return;
            try {
                // query file type
                inFileFormat = AudioSystem.getAudioFileFormat(inFile);
                System.out.println(AudioSystem.getAudioFileFormat(inFile));
                if (inFileFormat.getType() != AudioFileFormat.Type.AIFF) {
                    // inFile is not AIFF, so let's try to convert it.
                    AudioInputStream inFileAIS =
                            AudioSystem.getAudioInputStream(inFile);
                    inFileAIS.reset(); // rewind
                    if (AudioSystem.isFileTypeSupported(
                            AudioFileFormat.Type.AIFF, inFileAIS)) {
                        // inFileAIS can be converted to AIFF.
                        // so write the AudioInputStream to the
                        // output file.
                        AudioSystem.write(inFileAIS,
                                AudioFileFormat.Type.AIFF, outFile);
                        System.out.println("Successfully made AIFF file, "
                                + outFile.getPath() + ", from "
                                + inFileFormat.getType() + " file, " +
                                inFile.getPath() + ".");
                        inFileAIS.close();
                        return; // All done now
                    } else
                        System.out.println("Warning: AIFF conversion of "
                                + inFile.getPath()
                                + " is not currently supported by AudioSystem.");
                } else
                    System.out.println("Input file " + inFile.getPath() +
                            " is AIFF." + " Conversion is unnecessary.");
            } catch (UnsupportedAudioFileException e) {
                System.out.println("Error: " + inFile.getPath()
                + " is not a supported audio file type!");
                return;
            } catch (IOException e) {
                System.out.println("Error: failure attempting to read "
                        + inFile.getPath() + "!");
                return;
        private void chooseFile(java.awt.event.ActionEvent evt) {                           
            //Melder fejl hvis man fortryder
            //Lav en check om man har valgt en fil
            FileNameExtensionFilter fileFilter = new FileNameExtensionFilter(
                    "Allowed file formats", "wav");
            JFileChooser fileChooser = new JFileChooser();
            fileChooser.setFileFilter(fileFilter);
            int returnVal = fileChooser.showOpenDialog(this);
            inFile = fileChooser.getSelectedFile();
            loadFileField.setText(inFile.getName());
        // Variables declaration - do not modify                    
        private javax.swing.JButton convertBtn;
        private javax.swing.JComboBox fileFormatCombo;
        private javax.swing.JLabel fileFormatLabel;
        private javax.swing.JSeparator jSeparator1;
        private javax.swing.JButton loadFileBtn;
        private javax.swing.JTextField loadFileField;
        private javax.swing.JLabel loadFileLabel;
        private javax.swing.JSeparator seperator;
        // End of variables declaration                  
        //Fields
        private File inFile;
        private File outFile;
    }

    In case looking it up didn't help you as much:
    catch(Exception ex) {
      ex.printStackTrace();
    }is lots better than printing some message. It's like going to the doctor and telling him "body part xyz hurts with a stinging pain whenever I do the following..." instead of saying "Doc, there's something wrong".

  • Problems with Running the Examples in J2ee tutorial-asant utility

    Hello,
    I am just working on the examples given in the J2EE tutorials given by SUN.
    When trying to build the examples using the asant utility,I encounter an error message saying
    "BUILD FAILED"
    and it says some error with the build.xml file (C:\lib not found)
    I think i have all my CLASSPATH settings and PATH setting right.Can anyone suggets me a solution to this problem,so that i can go ahead with the details.
    Thanks
    Sandeep

    did you set the build.properties settings properly ?

  • Problems with basic authentication example

    I am trying to run the basic authentication example from the Professional JSP book (Chapter 16) although for some reason I continue to get "AUTHENTICATION MECHANISM NULL" instead of "AUTHENTICATION MECHANISM BASIC". I do not even get the pop-up window with the prompt for Username and Password. I am running Tomcat 4.0-dev and have tried to access the login window by pointing the browser to the appropriate file:
    //localhost:8080/ch16-basic/index.jsp
    Still not login window???
    I have added the extra user and password to the tomcat-users.xml file (username="projsp" password="projsp" roles="superuser")
    Still no luck????
    Could someone please let me know what could possibly be going wrong.
    Thank you!!!!

    The index.jsp is:
    <html>
    <head>
    <title>Protected Area Page</title>
    </head>
    <body>
    <%
    out.println("<H2>Authentication Mechanism "+ request.getAuthType() +" </H2>" );
    %>
    </body>
    </html>
    The tomcat-users.xml is:
    <!--
    NOTE: By default, no user is included in the "manager" role required
    to operate the "/manager" web application. If you wish to use this app,
    you must define such a user - the username and password are arbitrary.
    -->
    <tomcat-users>
    <user name="tomcat" password="tomcat" roles="tomcat" />
    <user name="role1" password="tomcat" roles="role1" />
    <user name="both" password="tomcat" roles="tomcat,role1" />
    <user name="projsp" password="projsp" roles="superuser" />
    </tomcat-users>
    And the web.xml is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
    <web-app>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>ProJSP Authentication Example</realm-name>
    </login-config>
    </web-app>
    WHY ISN"T THIS WORKING!!!!

  • Problems with deploying cmproster example using ms sql server as database

    hi to all,
    im new to ejb and i like to learn by doing the examples given in the j2ee tutorial. i want to deploy the cmproster with a bit of modification...i want to use ms sql server as the database..i have configured the data source and connection pools correctly..and when i run the Client Application there is no error. The database seems fine it was populated correctly..only some of the values become null..
    Here is the sample output from the client app:
    P7 null null 777.0
    P8 null null 65.0
    P10 null null 100.0
    P6 null null 555.0
    P9 null null 100.0
    The two columns should be strings...i look at the server.log and there where errors:
    Error while getting value from resultset at index 2 as resultType 21columnSqlType=JDO76: 12.Exception java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
    I think thats the culprit...Can anyone help me on this? tnx
    Note:
    By the way im using sun.jdbc.odbc.JdbcOdbcDriver for the jdbc driver
    Thanx
    -oyam

    Hi Michael,
    At this time SQL Server 2000 is not certified for WLCS 3.5. Since the
    schema has changed between 3.2 and 3.5, running the 3.2 scripts is not a
    good idea.
    I can tell you that certification is in progress for SQL Server 2000. Your
    best bet is to contact your Sales Representative to get an idea of when
    certification might be coming.
    I hope this helps.
    - Ginny
    "Michael Schulz" <[email protected]> wrote in message
    news:[email protected]..
    I'm using WebLogic 6.0sp1 with Commerce Server 3.5 and I've successfully
    installed the demo. I would like to create another commerce server
    installation, this time using Microsoft SQL Server 2000 as the database
    instead of Cloudscape. I've downloaded and installed the BEA jDriver
    for MS SQL 7/2000 and tested it using dbping. My question is: where are
    the db scripts for creating and populating the commerce database? I've
    found the WLCS_320_DB_DDL_1.1.zip file on the BEA downloads site, but
    I'm concerned that this schema is for Version 3.20 of Commerce Server.
    Is there a similar file for WLCS 3.50? If not, is it safe to use this
    one?
    If this is posted in the wrong place, please let me know and I'll repost
    to the appropriate newsgroup as required.
    Sincerely,
    Michael Schulz

  • Problem with mail connector example included in Sun ONE application server

    Hi,
    I am trying to deploy the sample application "mail connector" provided with the Sun One Application Server 8. the application has a MDB which polls for new messages for a user on the mail server. This application deploys successfully, but while connecting to the fastmail IMAP server, it gives the following exception :
    ERROR when attempting to open this mailbox: [email protected]
    Error in allocating a connection. Cause: Connection refused: no further information; nested exception is: java.net.ConnectException: Connection refused: no further information javax.resource.spi.ResourceAllocationException: Error in allocating a connection. Cause: Connection refused: no further information; nested exception is: java.net.ConnectException: Connection refused: no further information at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:283) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:193) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:122) at samples.connectors.mailconnector.ra.outbound.JavaMailConnectionFactoryImpl.createConnection(Unknown Source) at samples.connectors.mailconnector.servlet.MailBrowserServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:767) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55) Caused by: com.sun.enterprise.resource.PoolingException: Connection refused: no further information; nested exception is: java.net.ConnectException: Connection refused: no further information at com.sun.enterprise.resource.NoTxConnectorAllocator.createResource(NoTxConnectorAllocator.java:89) at com.sun.enterprise.resource.IASNonSharedResourcePool.createResourceAndAddToPool(IASNonSharedResourcePool.java:1111) at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:488) at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:166) at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:312) at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:250) at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:211) at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:172) at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:245) ... 34 more
    Review the values you entered and try again.
    Just wanted to know, whetehr someone out there had tried deploying and running this sample application?
    the changes that i made to the ejb-jar.xml file are as follows:
    servername : fastmail.fm
    username : "my username "
    password : "my password"
    folder :Inbox
    protocol :imap
    Please let me know the probable reasons it is not able to connect to the mail server.

    Did you exhaust the pool-size for the DB; i.e., max-pool-size=32? Can you get a Connection?

  • Problems with  File Upload Example

    Hi,
    I follwed all the steps as in File Upload Example, still I am getting this exception,
    Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment Error -- Error loading deployment descriptors for _linnfdb -- There is no web component by the name of uploadFile here.
    Has any one got a clue???????????
    Any help will be greatly appreciated.
    cheers
    kush

    Hi,
    There is a relevant topic on EA discussion.
    Topic:mini-mini FileUpload tutorial
    https://feedbackprograms.sun.com/project/forum/thread.html?cap={3F4DA363-16D3-4D4C-920C-992ECB054B6D}&forid={CC6B8562-F896-4A44-ACB6-4684BDD05E19}&topid={7EDEB723-F414-4DE5-9B8E-A4A4C625474E}
    Hope this helps.
    Please post messages related to Creator 2 EA at the feedbacks programs portal. The URL is:
    https://feedbackprograms.sun.com/login.html
    Thanks,
    RK.

  • Problem with interputting  accessframe  example please help!!!

    A use code bellow to access every frame in the movie :
    import java.awt.*;
    import javax.media.*;
    import javax.media.control.TrackControl;
    import javax.media.Format;
    import javax.media.format.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    import java.awt.Color.*;
    import java.awt.image.*;
    import java.util.*;
    import java.awt.image.*;
    import javax.media.util.*;
    import javax.swing.JFrame;
    public class Film2ramki implements ControllerListener {
    Processor p;
    Object waitSync = new Object();
    boolean stateTransitionOK = true;
    public boolean alreadyPrnt = false;
    public void zakoncz(){
         p.stop();
         p.close();
         p.deallocate();
    public boolean open(MediaLocator ml) {
    try {
    p = Manager.createProcessor(ml);
    } catch (Exception e) {
    System.err.println("Failed to create a processor from the given url: " + e);
    return false;
    p.addControllerListener(this);
    // Put the Processor into configured state.
    p.configure();
    if (!waitForState(p.Configured)) {
    System.err.println("Failed to configure the processor.");
    return false;
    // So I can use it as a player.
    p.setContentDescriptor(null);
    // Obtain the track controls.
    TrackControl tc[] = p.getTrackControls();
    if (tc == null) {
    System.err.println("Failed to obtain track controls from the processor.");
    return false;
    // Search for the track control for the video track.
    TrackControl videoTrack = null;
    for (int i = 0; i < tc.length; i++) {
    if (tc.getFormat() instanceof VideoFormat) {
    videoTrack = tc[i];
    break;
    if (videoTrack == null) {
    System.err.println("The input media does not contain a video track.");
    return false;
    System.err.println("Video format: " + videoTrack.getFormat());
    // Instantiate and set the frame access codec to the data flow path.
    try {
    Codec codec[] = { new PreAccessCodec(),
    new PostAccessCodec()};
    videoTrack.setCodecChain(codec);
    } catch (UnsupportedPlugInException e) {
    System.err.println("The process does not support effects.");
    // Realize the processor.
    p.prefetch();
    if (!waitForState(p.Prefetched)) {
    System.err.println("Failed to realize the processor.");
    return false;
    p.start();
    return true;
    boolean waitForState(int state) {
    synchronized (waitSync) {
    try {
    while (p.getState() != state && stateTransitionOK)
    waitSync.wait();
    } catch (Exception e) {}
    return stateTransitionOK;
    public void controllerUpdate(ControllerEvent evt) {
    if (evt instanceof ConfigureCompleteEvent ||
    evt instanceof RealizeCompleteEvent ||
    evt instanceof PrefetchCompleteEvent) {
    synchronized (waitSync) {
    stateTransitionOK = true;
    waitSync.notifyAll();
    } else if (evt instanceof ResourceUnavailableEvent) {
    synchronized (waitSync) {
    stateTransitionOK = false;
    waitSync.notifyAll();
    } else if (evt instanceof EndOfMediaEvent) {
         p.stop();
         p.close();
         System.exit(0);
    Film2ramki(){}
    public void startnow (String plik) {
         //this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    String url = "file:"+plik;
    if (url.indexOf(":") < 0) {
    prUsage();
    System.exit(0);
    MediaLocator ml;
    if ((ml = new MediaLocator(url)) == null) {
    System.err.println("Cannot build media locator from: " + url);
    System.exit(0);
    if (!open(ml))
    System.exit(0);
    static void prUsage() {
    System.err.println("Usage: java Film2ramki <url>");
    * Inner class.
    * A pass-through codec to access to individual frames.
    public class PreAccessCodec implements Codec {
    * Callback to access individual video frames.
    void accessFrame(Buffer frame) {
    // For demo, we'll just print out the frame #, time &
    // data length.
    long t = (long)(frame.getTimeStamp()/10000000f);
    System.err.println("Pre: frame #: " + frame.getSequenceNumber() +
    ", time: " + ((float)t)/100f +
    ", len: " + frame.getLength());
    * The code for a pass through codec.
    // We'll advertize as supporting all video formats.
    protected Format supportedIns[] = new Format [] {
    new VideoFormat(null)
    // We'll advertize as supporting all video formats.
    protected Format supportedOuts[] = new Format [] {
    new VideoFormat(null)
    Format input = null, output = null;
    public String getName() {
    return "Pre-Access Codec";
    // No op.
    public void open() {
    // No op.
    public void close() {
    // No op.
    public void reset() {
    public Format [] getSupportedInputFormats() {
    return supportedIns;
    public Format [] getSupportedOutputFormats(Format in) {
    if (in == null)
    return supportedOuts;
    else {
    // If an input format is given, we use that input format
    // as the output since we are not modifying the bit stream
    // at all.
    Format outs[] = new Format[1];
    outs[0] = in;
    return outs;
    public Format setInputFormat(Format format) {
    input = format;
    return input;
    public Format setOutputFormat(Format format) {
    output = format;
    return output;
    public int process(Buffer in, Buffer out) {
    // This is the "Callback" to access individual frames.
    accessFrame(in);
    // Swap the data between the input & output.
    Object data = in.getData();
    in.setData(out.getData());
    out.setData(data);
    // Copy the input attributes to the output
    out.setFlags(Buffer.FLAG_NO_SYNC);
    out.setFormat(in.getFormat());
    out.setLength(in.getLength());
    out.setOffset(in.getOffset());
    return BUFFER_PROCESSED_OK;
    public Object[] getControls() {
    return new Object[0];
    public Object getControl(String type) {
    return null;
    public class PostAccessCodec extends PreAccessCodec {
    // We'll advertize as supporting all video formats.
    public PostAccessCodec() {
    supportedIns = new Format [] {
    new RGBFormat()
    * Callback to access individual video frames.
    void accessFrame(Buffer frame) {
    // For demo, we'll just print out the frame #, time &
    // data length.
    if(!alreadyPrnt)
    BufferToImage stopBuffer = new BufferToImage((VideoFormat)frame.getFormat());
    System.out.println(stopBuffer.toString());
    System.out.println("CreatedBuffer");
    System.out.println("Created stopImage");
    Image stopImage = stopBuffer.createImage(frame);
    System.out.println("stopImage is full");
    if(stopImage == null)
    System.out.println("stopImage is null");
    try
    BufferedImage outImage = new BufferedImage (320, 240,BufferedImage.TYPE_INT_RGB);
    Graphics og = outImage.getGraphics();
    og.drawImage(stopImage,0,0,320,240,null);
    //prepareImage(outImage,rheight,rheight, null);
    Iterator writers = ImageIO.getImageWritersByFormatName("jpg");
    ImageWriter writer = (ImageWriter)writers.next();
    //Once an ImageWriter has been obtained, its destination must be set to an ImageOutputStream:
    File f = new File("frames\\"+frame.getSequenceNumber() + ".jpg");
    ImageOutputStream ios = ImageIO.createImageOutputStream(f);
    writer.setOutput(ios);
    //Finally, the image may be written to the output stream:
    //BufferedImage bi;
    //writer.write(imagebi);
    writer.write(outImage);
    ios.close();
    catch(IOException e)
    System.out.println("Error :" + e);
    //alreadyPrnt = true;
    long t = (long)(frame.getTimeStamp()/10000000f);
    System.err.println("Post: frame #: " + frame.getSequenceNumber() +
    ", time: " + ((float)t)/100f +
    ", len: " + frame.getLength());
    if(frame.getLength()==0){p.stop();p.close();p.deallocate();}
    public String getName() {
    return "Post-Access Codec";
    this code capture every frame from movie but it never ends running and i can't invoke any metod after grabing frames becouse its still running. How Can I stop this to enter the next metod.
    Please help me
    thx

    Answering sam04 question Yes this make that every frame is captured
    Back to my problem :
    I invoke caputre frames class from other class like this:
    Film2ramki f2r=new Film2ramki();
    f2r.startnow(pathtomov);
    System.out.println("End of capture");...........................
    So when capturing frames ends it should print "End of caputre" but I get something like this :
    JPEG, 320x240, FrameRate=13.0, Length=18198
    Video format: JPEG, 320x240, FrameRate=13.0, Length=18198
    Pre: frame #: 1, time: 0.0, len: 16282
    Post: frame #: 1, time: 0.0, len: 230400
    End of capture
    Pre: frame #: 2, time: 0.07, len: 16471
    Post: frame #: 2, time: 0.07, len: 230400
    Pre: frame #: 3, time: 0.15, len: 16620
    Post: frame #: 3, time: 0.15, len: 230400
    Pre: frame #: 4, time: 0.23, len: 16541
    Post: frame #: 4, time: 0.23, len: 230400
    Pre: frame #: 5, time: 0.3, len: 16749
    Pre: frame #: 18, time: 1.3, len: 15708
    Post: frame #: 18, time: 1.3, len: 230400
    Pre: frame #: 18, time: 1.3, len: 0
    Post: frame #: 18, time: 1.3, len: 0this is strange becouse it captures 1 frame end print "End of capture" and then its capures other frames. Why ?????

  • Problem with Photoshop SDK example plugins

    Hi,
    I would like to write a filter plugin. So I have downloaded the Photoshop CS2 SDK and I have compiled all the example filter plugins from it. Now when I use an additional directory for loading the plugins to the Photoshop CS2. Only 3 of 7 show up. I am using Windows Vista.
    Does somebody know what I am doing wrong?
    Thanks
    Lucie

    Apart from the obvious, no.
    Vista brings a bunch of new headaches for people using plugins, including "entry point not found" and memory bugs which XP/OS X users don't encounter.
    An upgrade to a different operating system is recommended.

  • Problem with seeded extension example - adding supplier site

    Hi,
    I am currently doing the exercises mentioned in topic "Exercise: Extending OA Framework Applications", I am currently doing exercise 1 i.e adding supplier site to the Purchase Orders page.
    I was successfully able to build the ExtendLab.jpr but while launching the SunilPoSummaryCreatePG.xml for "Step 2.8 Personalize the UI to Display Your New Attribute", i am getting the following error, please suggest?
    ERROR
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT SupplierSiteEO.SUPPLIER_SITE_ID,
         SupplierSiteEO.SITE_NAME,
         PurchaseOrderHeaderEO.HEADER_ID,
    PurchaseOrderHeaderEO.DESCRIPTION,
    PurchaseOrderHeaderEO.STATUS_CODE,
    PurchaseOrderHeaderEO.SUPPLIER_ID,
    PurchaseOrderHeaderEO.CURRENCY_CODE,
    PurchaseOrderHeaderEO.CREATION_DATE,
    SupplierEO.NAME AS SUPPLIER_NAME,
    SupplierEO.SUPPLIER_ID AS SUPPLIER_ID1,
    EmployeeEO.FULL_NAME AS BUYER_NAME,
    EmployeeEO.EMPLOYEE_ID,
    PurchaseOrderHeaderEO.BUYER_ID,
    EmployeeEO.EMAIL_ADDRESS AS BUYER_EMAIL,
    (select sum(nvl(line.quantity, 0) * nvl(line.unit_price, 0))
    from fwk_tbx_po_lines line
    where line.header_id = PurchaseOrderHeaderEO.HEADER_ID) AS ORDER_TOTAL,
    decode(PurchaseOrderHeaderEO.STATUS_CODE,
    'APPROVED', 'okind_status.gif',
    'COMPLETE', 'completeind_status.gif',
    'REJECTED', 'criticalind_status.gif', 'inprogressind_status.gif') AS STATUS_IMAGE,
    LookupCodeEO.MEANING AS STATUS_DISPLAY,
    decode(PurchaseOrderHeaderEO.STATUS_CODE,
    'COMPLETE', 'DeleteDisabled',
    'APPROVED', 'DeleteDisabled', 'DeleteEnabled') AS DELETE_IMAGE,
    decode(PurchaseOrderHeaderEO.STATUS_CODE,
    'COMPLETE', 'UpdateDisabled',
    'APPROVED', 'UpdateDisabled', 'UpdateEnabled') AS UPDATE_IMAGE,
    decode(PurchaseOrderHeaderEO.STATUS_CODE,
    'COMPLETE', 'Y',
    'APPROVED', 'Y', 'N') AS APPROVE_DISABLED
    FROM FWK_TBX_PO_HEADERS PurchaseOrderHeaderEO,
    FWK_TBX_SUPPLIERS SupplierEO,
    FWK_TBX_EMPLOYEES EmployeeEO,
    FWK_TBX_LOOKUP_CODES_VL LookupCodeEO,
    FWK_TBX_SUPPLIER_SITES SupplierSiteEO
    WHERE PurchaseOrderHeaderEO.SUPPLIER_ID = SupplierEO.SUPPLIER_ID
    AND PurchaseOrderHeaderEO.BUYER_ID = EmployeeEO.EMPLOYEE_ID
    AND PurchaseOrderHeaderEO.STATUS_CODE = LookupCodeEO.LOOKUP_CODE
    AND LookupCodeEO.LOOKUP_TYPE = 'FWK_TBX_ORDER_STATUS'
    AND SupplierEO.SUPPLIER_ID = SupplierSiteEO.SUPPLIER_ID) QRSLT ORDER BY HEADER_ID ASC
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:597)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1095)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2298)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1711)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01722: invalid number
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2487)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
         at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryDataInternal(OAWebBeanBaseTableHelper.java:1077)
         at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryData(OAWebBeanBaseTableHelper.java:964)
         at oracle.apps.fnd.framework.webui.beans.table.OATableBean.queryData(OATableBean.java:728)
         at oracle.apps.fnd.framework.toolbox.tutorial.webui.PoSummaryCO.processRequest(PoSummaryCO.java:97)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1095)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2298)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1711)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: ORA-01722: invalid number
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2487)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
         at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryDataInternal(OAWebBeanBaseTableHelper.java:1077)
         at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryData(OAWebBeanBaseTableHelper.java:964)
         at oracle.apps.fnd.framework.webui.beans.table.OATableBean.queryData(OATableBean.java:728)
         at oracle.apps.fnd.framework.toolbox.tutorial.webui.PoSummaryCO.processRequest(PoSummaryCO.java:97)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1095)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2298)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1711)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Thanks & Regards,
    Sunil

    Hi,
    Thank for the advice.
    I executed following query used in "ABCPoSummaryVO extending PoSummaryVO as per documentation" in Toad & it returned 15 rows successfully, so it seems that there could be some other issue please let me know for any clue?
    Query
    SELECT SupplierSiteEO.SUPPLIER_SITE_ID,
         SupplierSiteEO.SITE_NAME,
         PurchaseOrderHeaderEO.HEADER_ID,
    PurchaseOrderHeaderEO.DESCRIPTION,
    PurchaseOrderHeaderEO.STATUS_CODE,
    PurchaseOrderHeaderEO.SUPPLIER_ID,
    PurchaseOrderHeaderEO.CURRENCY_CODE,
    PurchaseOrderHeaderEO.CREATION_DATE,
    SupplierEO.NAME AS SUPPLIER_NAME,
    SupplierEO.SUPPLIER_ID AS SUPPLIER_ID1,
    EmployeeEO.FULL_NAME AS BUYER_NAME,
    EmployeeEO.EMPLOYEE_ID,
    PurchaseOrderHeaderEO.BUYER_ID,
    EmployeeEO.EMAIL_ADDRESS AS BUYER_EMAIL,
    (select sum(nvl(line.quantity, 0) * nvl(line.unit_price, 0))
    from fwk_tbx_po_lines line
    where line.header_id = PurchaseOrderHeaderEO.HEADER_ID) AS ORDER_TOTAL,
    decode(PurchaseOrderHeaderEO.STATUS_CODE,
    'APPROVED', 'okind_status.gif',
    'COMPLETE', 'completeind_status.gif',
    'REJECTED', 'criticalind_status.gif', 'inprogressind_status.gif') AS STATUS_IMAGE,
    LookupCodeEO.MEANING AS STATUS_DISPLAY,
    decode(PurchaseOrderHeaderEO.STATUS_CODE,
    'COMPLETE', 'DeleteDisabled',
    'APPROVED', 'DeleteDisabled', 'DeleteEnabled') AS DELETE_IMAGE,
    decode(PurchaseOrderHeaderEO.STATUS_CODE,
    'COMPLETE', 'UpdateDisabled',
    'APPROVED', 'UpdateDisabled', 'UpdateEnabled') AS UPDATE_IMAGE,
    decode(PurchaseOrderHeaderEO.STATUS_CODE,
    'COMPLETE', 'Y',
    'APPROVED', 'Y', 'N') AS APPROVE_DISABLED
    FROM FWK_TBX_PO_HEADERS PurchaseOrderHeaderEO,
    FWK_TBX_SUPPLIERS SupplierEO,
    FWK_TBX_EMPLOYEES EmployeeEO,
    FWK_TBX_LOOKUP_CODES_VL LookupCodeEO,
    FWK_TBX_SUPPLIER_SITES SupplierSiteEO
    WHERE PurchaseOrderHeaderEO.SUPPLIER_ID = SupplierEO.SUPPLIER_ID
    AND PurchaseOrderHeaderEO.BUYER_ID = EmployeeEO.EMPLOYEE_ID
    AND PurchaseOrderHeaderEO.STATUS_CODE = LookupCodeEO.LOOKUP_CODE
    AND LookupCodeEO.LOOKUP_TYPE = 'FWK_TBX_ORDER_STATUS'
    AND SupplierEO.SUPPLIER_ID = SupplierSiteEO.SUPPLIER_ID
    Best Regards,
    Sunil.

  • Problems with Duke's Bookstore Examples (Chapter 3 of the J2EE 1.4 Tut)

    Hi
    Please help me, I am going through the J2EE tutorial (I have the Sun App Server 8 installed on a Win XP Service Pack 2 machine) but am running into problems.
    I'm having a problem with the
    1. asant build and
    2. asant create-db_common
    commands.
    1. asant build
    ===========
    When trying to use the command asant build I get the following problems:
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>asant build
    Buildfile: build.xml
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\common\targets.xml could not be found
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\web\common\targets.xml could not be found
    init:
    prepare:
    build:
    [javac] Compiling 11 source files to D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\booksto
    re\build
    BUILD FAILED
    file:D:/P.Files%20Ext/MJ%20Ext/J2EE%201.4%20Tutorial%20EXT/j2eetutorial14/examples/web/bookstore/build.xml:54: D:\lib not found.
    Total time: 8 seconds
    I then created an empty folder = D:\lib
    It then seemed to work?? but still could not find targets.xml as below
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>asant build
    Buildfile: build.xml
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\common\targets.xml could not be found
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\web\common\targets.xml could not be found
    init:
    prepare:
    build:
    [javac] Compiling 11 source files to D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore\build
    BUILD SUCCESSFUL
    Total time: 18 seconds
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>
    2. asant create-db_common
    ======================
    When trying to use the command asant create-db_common I get the following problems (I had to create an empty folder - D:\pointbase\lib to get this far)
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>asant create-db_common
    Buildfile: build.xml
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\common\targets.xml could not be found
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\web\common\targets.xml could not be found
    init:
    create-db_common:
    [java] java.lang.NoClassDefFoundError: com/pointbase/tools/toolsCommander
    [java] Exception in thread "main"
    [java] Java Result: 1
    BUILD SUCCESSFUL
    Total time: 8 seconds
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>
    Now I know that creating empty folders is not the solution so if anyone has any ideas as to what is wrong PLEASE tell me. I think there is something I need to add to a configuration file or something. I have re-installed the App Server but I still get the same problems. Thanks for your time!!

    Hi
    I have the same problem with the hello2 example, in the tutorial... You didnt??
    anyway maybe you are not setting the j2ee.home.
    somebody named " Jennifer " give me this advise ( i told you this to recognice that i was helped before)
    " Hello,
    You are probably not setting j2ee.home correctly. Please go to the following page and read section Building The Examples. Pay special attention to the Note in that section.
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/About.html
    thanks,
    Jennifer "
    good luck, see ya

  • Problem with java, ASCII and Linux

    Hi Friends,
    I has a Linux RedHat 9.0 with a jre1.5.0_04 (rpm package of Sun).
    I has a problem with ASCII , for example :
    import java.io.*;
    public class HolaMundo
    public static void main (String[] args)
    System.out.println("Hol� M�ndo");
    this programs runs ok on my windows jdk so it prints "Hol� M�ndo", but when i run the same HolaMundo.class program on my linux redhat it prints "Hol�� M��ndo"
    I think the problem is with the ASCII table that uses the linux version of jre, but i dont know how to solve this problem. I need a Spanish-European ASCII table on my application but i think it is working with a US-ASCII table.
    Then i has installed a kaffe 1.0 (rpm) java machie on this linux and this solve the problem but i has another problems of compatibility with this old version of java kaffe.
    Do you know whats happening?
    Thanks in advance.

    The problem doesn't have to do anything with Java or Linux as far as i can see. It's more likely a problem with Windows XP and IE. Be assured that normally downloading the Linux JDK in windows is not a problem.

  • How do I correct lines of text bleeding together on some websites (e.g.MSNBC)? I don't have the problem with Explorer.

    The headings and subheadings on some (but not all) sites bleed together into one line of text or the text appears but all or partially outside of the box in which it is intended to reside. I have this problem with MSNBC, for example. The headings at the top of the webpage (TODAY, for example) combine with the next line of subheadings (World, for example) after appearing separately for 1 or 2 seconds. At the same moment, a message appears saying that Firefox has prevented the page from automatically reloading. When I respond to that message by clicking the Allow button next to the message, Firefox appears to reboot the web page and the same message of preventing automatic reloading reappears. I experience the same problem with the New York Daily News website and some others but with other websites such as the BBC I experience no problem.

    The headings and subheadings on some (but not all) sites bleed together into one line of text or the text appears but all or partially outside of the box in which it is intended to reside. I have this problem with MSNBC, for example. The headings at the top of the webpage (TODAY, for example) combine with the next line of subheadings (World, for example) after appearing separately for 1 or 2 seconds. At the same moment, a message appears saying that Firefox has prevented the page from automatically reloading. When I respond to that message by clicking the Allow button next to the message, Firefox appears to reboot the web page and the same message of preventing automatic reloading reappears. I experience the same problem with the New York Daily News website and some others but with other websites such as the BBC I experience no problem.

  • Subtitle problems with Encore CS4 and BD/Blu-ray -- here is a solution!

    Do you have problems with subtitles: for example they vanish completely after doing fast forward or turn them off and on again. Then here you can find one possible solution.
    I am using Windows Vista 32bit. Thus Encore CS4 is the last version which I can use. Because Adobe will never provide a solution for this version, I was looking for another solution.
    At least I found a workaround for my subtitle problems.
    Now I am doing the following steps:
    1. Create the blu-ray disk in a folder without subtitles
    2. Create the subtitles with a program like "subtitle workshop"
    3. Save the subtitles in the .srt format.
    4. Use the program SubConverter Express v1.5.0 to convert the subtitles in the .sup format. Here you must choose a suitable font & font size.
    5. Add the .sup to the blu-ray folder structure with the program BDFix Express v1.7.3. When doing that, you can also choose the language i.g. "deu" for german. You will find a detailed description in the forum on www.defsoft.com. It is very easy to understand.
    6. BDFix will create a new folder with all necessary files to burn a blu-ray disk. Nothing changes in comparison to the folder which was createt by Encore except that subtitles were added.
    7. You can burn this folder with a tool like imgburn.
    With this workaround you will have the following advantages:
    1. It seems that these subtitles were added in a blu-ray specification conform way. Fast forward/backward, switching on/off, chapter jump still work perfectly.
    2. The subtitle fonts are rendered in a much more smooth way than Encore does.
    3. The 5 frames gap between subtitles is not longer necessary.
    4. This solution ist quite fast (about 20 minutes for a 25 GByte disc).
    5. You can use these programs also for other blu-rays to add or remove subtitles.
    6. You do not need Encore to add/change or remove subtitles. You can do that also years later. You only need the burned blu-ray disc.
    To be honest, there is one disadvantage:
    - The two programs (SubConverter & BDFix) cost about 200 US Dollar. But to cure my nerves that was worth it.
    Hint: You can do a first test with the freeware versions. But there are two limitations. SubConverter can only import 30 subtitle lines and BDFix will only create 3 minutes of subtitles.
    Greetings,
    Ralf

    FLV and F4V use different codecs for Flash video. H.264 in case of F4V and On2 VP6 for FLV. There's a difference of bitrate between different quality presets. You can check the bitrates of files generated using some tool. Your video might be very static to feel the different be the two quality settings.
    F4V is the new format and need a newer version of Flash Player. Please update your Flash player and try again to play the F4V files.
    Playstream doesnt support F4V format. You can only export FLV files to Playstream.
    It might also be an issue of low bandwidth while playing a streaming video. Are you playing is locally or from a web server.

Maybe you are looking for

  • Open file in excel from labview

    I need a way to open an existing Excel file, that may or may not be open already.  I am using the attached "Open Specific WorkBook.vi" from the examples.  My LabVIEW program must be able to either open a specifc Excel workbook and worksheet even if i

  • How to insert more items for each tab in WAD  7.0

    Hello to everyone, My problem is confined to the WAD 7.0 I would like to insert 4 different queries into a new Web Template. Two of them have to stay in one page and the others in one page each; therefore, the result would be a Web Template with thre

  • Importing HTML with CSS in Flash

    I've tried all the tutorials, searched the web for tuts, downloaded files and I am still not getting it. So this is what I want to do: First the names: Dynamic text field name: htmwelcome HTML file name: welcome.html CSS file name: style1.css How sho

  • How to create production version for multiple BOM & Routing ?

    If I have 3 BOMs ( A, B & C ) and 2 Routing ( 1 & 2 ) for material XYZ then how then production version will be created ? I feel that there will be 6 PVs. combination of A1, A2, B1, B2, C1 & C2. but some one told me that  I have to create duplicate r

  • Secure Empty Trash Problem After Installing Security Update 2010-005

    Some items in trash were locked, selected option to remove all items and nothing was deleted. Rebooted twice, no change. Unsecure empty trash works fine. Any ideas?