MIDP2.0,MMAPI::illeagal argument exception

Hi,
I am trying to play mpg file on my emmulator but getting the following exception:
java.lang.illegalargument exception
inputstream is empty
the code is as follws:
import java.io.*;
//import javax.media.Player;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import javax.microedition.midlet.*;
public class VideoMIDlet extends MIDlet implements CommandListener,Runnable
     private Form minform;
     private Display mdisp;
     private Item mVideoItem;
     private VideoControl mvidc;
     private Command mplayComm;
     private Player mPlayer=null;
          protected void pauseApp() {
          // TODO Auto-generated method stub
     protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
          if(mPlayer!=null)
               mPlayer.close();
     public void commandAction(Command arg0, Displayable arg1) {
          // TODO Auto-generated method stub
          if(arg0.getCommandType()==Command.EXIT)
               try {
                    destroyApp(true);
               } catch (MIDletStateChangeException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               notifyDestroyed();
          else
               Form waitForm=new Form("LODING.....");
               mdisp.setCurrent(waitForm);
               Thread t=new Thread(this);
               t.start();
     public void run() {
          // TODO Auto-generated method stub
          playFormResource();
     private void playFormResource() {
          // TODO Auto-generated method stub
          try{
               InputStream in=getClass().getResourceAsStream("/Asha Bhosale - Do Labjo Ki Hay.mpg");
               mPlayer=Manager.createPlayer(in,"video/mpg");
               mPlayer.realize();
               if((mvidc=(VideoControl)mPlayer.getControl("VideoControl"))!=null)
                    mVideoItem=(Item)mvidc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE,null );
                    minform.append(mVideoItem);
               mPlayer.start();
               minform.removeCommand(mplayComm);
               mdisp.setCurrent(minform);
          catch(Exception e)
               showExp(e);
               return;
     private void showExp(Exception e) {
          Alert a=new Alert("EXCEPTION",e.toString(),null,null);
          a.setTimeout(Alert.FOREVER);
          mdisp.setCurrent(a,minform);
     protected void startApp() throws MIDletStateChangeException {
          mdisp=Display.getDisplay(this);
          if(minform==null)
               minform=new Form("Video MIDlet");
               minform.addCommand(new Command("Exit",Command.EXIT,0));
               mplayComm=new Command("PLAY",Command.SCREEN,0);
               minform.addCommand(mplayComm);
               minform.setCommandListener(this);
          mdisp.setCurrent(minform);
where:
/Asha Bhosale - Do Labjo Ki Hay.mpg file is in res folder in my apps/<project>/ location
plz help me out it's urgent my e-mail id id::
[email protected]

Hi,
I am trying to play mpg file on my emmulator but getting the following exception:
java.lang.illegalargument exception
inputstream is empty
the code is as follws:
import java.io.*;
//import javax.media.Player;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import javax.microedition.midlet.*;
public class VideoMIDlet extends MIDlet implements CommandListener,Runnable
     private Form minform;
     private Display mdisp;
     private Item mVideoItem;
     private VideoControl mvidc;
     private Command mplayComm;
     private Player mPlayer=null;
          protected void pauseApp() {
          // TODO Auto-generated method stub
     protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
          if(mPlayer!=null)
               mPlayer.close();
     public void commandAction(Command arg0, Displayable arg1) {
          // TODO Auto-generated method stub
          if(arg0.getCommandType()==Command.EXIT)
               try {
                    destroyApp(true);
               } catch (MIDletStateChangeException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               notifyDestroyed();
          else
               Form waitForm=new Form("LODING.....");
               mdisp.setCurrent(waitForm);
               Thread t=new Thread(this);
               t.start();
     public void run() {
          // TODO Auto-generated method stub
          playFormResource();
     private void playFormResource() {
          // TODO Auto-generated method stub
          try{
               InputStream in=getClass().getResourceAsStream("/Asha Bhosale - Do Labjo Ki Hay.mpg");
               mPlayer=Manager.createPlayer(in,"video/mpg");
               mPlayer.realize();
               if((mvidc=(VideoControl)mPlayer.getControl("VideoControl"))!=null)
                    mVideoItem=(Item)mvidc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE,null );
                    minform.append(mVideoItem);
               mPlayer.start();
               minform.removeCommand(mplayComm);
               mdisp.setCurrent(minform);
          catch(Exception e)
               showExp(e);
               return;
     private void showExp(Exception e) {
          Alert a=new Alert("EXCEPTION",e.toString(),null,null);
          a.setTimeout(Alert.FOREVER);
          mdisp.setCurrent(a,minform);
     protected void startApp() throws MIDletStateChangeException {
          mdisp=Display.getDisplay(this);
          if(minform==null)
               minform=new Form("Video MIDlet");
               minform.addCommand(new Command("Exit",Command.EXIT,0));
               mplayComm=new Command("PLAY",Command.SCREEN,0);
               minform.addCommand(mplayComm);
               minform.setCommandListener(this);
          mdisp.setCurrent(minform);
where:
/Asha Bhosale - Do Labjo Ki Hay.mpg file is in res folder in my apps/<project>/ location
plz help me out it's urgent my e-mail id id::
[email protected]

Similar Messages

  • Invalid Argument Exception on Java API's DB Close

    When closing the database via the Java API's close method, I am getting an invalid argument exception... how can this be fixed... subsequent access to the DB causes the JVM to crash??
    ERROR: An exception has occurred: java.lang.IllegalArgumentException: Invalid argument
    java.lang.IllegalArgumentException: Invalid argument
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_close0(Native Method)
    at com.sleepycat.db.internal.DbEnv.close0(DbEnv.java:217)
    at com.sleepycat.db.internal.DbEnv.close(DbEnv.java:77)
    at com.sleepycat.db.Environment.close(Environment.java:39)
    at com.sleepycat.dbxml.XmlManager.closeInternal(XmlManager.java:301)
    at com.sleepycat.dbxml.XmlManager.delete(XmlManager.java:33)
    at com.sleepycat.dbxml.XmlManager.close(XmlManager.java:310)
    at com.iconnect.data.adapters.BerkleyXMLDBImpl.insert(BerkleyXMLDBImpl.java:827)
    at com.iconnect.data.DataManagerFactory.insert(DataManagerFactory.java:182)
    at Xindice2Berkley.main(Xindice2Berkley.java:99)

    I had the same problem. I could fix it by carefully calling the delete() function on all those DBXML Xml..xyz objects that you create when you perform queries etc. It seems that those Java objects have some 'shadow' object in the underlying DLL and by calling delete() you free resources that remain otherwise assigned (maybe somebody with a C++ background who programmed this stuff?). Call delete() before the Java object gets out of scope. For instance:
    results = mgr.query(collection,context,null);
    XmlValue value;
    try {
    while ((value = results.next()) != null) {
    XmlValue c = value.getFirstChild();
    String ref = c.getNodeValue();
    c.delete(); c = null;
    value.delete(); value = null;
    catch (Exception e) {
    finally {
    if (results != null) {
    results.delete();
    results = null;
    Once i did this on all possible dbxml objects i used in my code, the java.lang.IllegalArgumentException: Invalid argument disappeared.
    Message was edited by:
    user562374

  • URGENT: Illegal Argument Exception for  RAW data type in Web Dynpro

    I am getting this error in the following scenario.
    I want to save the text fields from an interactive form to SAP through RFC enabled function module. The type in the model and controller is byte[]. I have converted the string attribute from view to save to the model. But the model dictionary in Web Dynpro project (model) has this type as Binary (meta data model through EFC). The type in SAP is RAW. I am going nuts since a week to solve this.
    IS this a bug? I am using NW04s - SP12. and NWDS 7.0.9
    Exception Details:
    The initial exception that caused the request to fail, was:
    java.lang.IllegalArgumentException
    at com.sap.dictionary.runtime.DdTypeBinary.format(DdTypeBinary.java:60)
    at com.sap.dictionary.runtime.DdTypeBinary.toString(DdTypeBinary.java:64)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.doFormat(DataContainer.java:1405)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1098)
    at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderAttributes(XfdRenderer.java:370)
    ... 41 more

    Issue with the RAW data types is resolved now. I have changed the data type of the field into String in the dictionary (web dynpro).. I have changed the corresponding getters and setter functions from byte[] to string. And everything working fine now. I got the Illegal Argument exception initially because I was trying to display the binary data type fields on the adobe form or view which I am not supposed to do.
    Also it is better to create separate view attributes in the context to get the values rather than mapping the model attributes directly in the form or view.
    Thank you one and all.
    Regards
    Vasu

  • Adding "window to a container:illegal argument exception".error plz help

    Thanks to Mr.Andrew and sun for developing the following code for a
    mediaplayer which is implemented in jmf.This is working in core java. But
    when i have converted it to Applet it compiles but an error adding "window
    to a container:illegal argument exception".code is given below plz point
    me where is the error;
    import javax.media.*;
    import java.text.DecimalFormat;
    import java.awt.*;
    import java.awt.FileDialog;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    class nwa extends WindowAdapter{
    frameclass frame;
    public nwa(frameclass frame){
    this.frame=frame;
    public void windowClosing (WindowEvent e)
    //User selected close from System menu.
    //Call dispose to invoke windowClosed.
    frame.dispose ();
    public void windowClosed (WindowEvent e)
    //if (player != null)
    //player.close ();
    System.exit (0);
    class frameclass extends JFrame
    frameclass(){
    nwa n=new nwa(this);
    this.addWindowListener(n);                    
    public class PlayerApplet extends JApplet
              implements
    ActionListener,ControllerListener,ItemListener, KeyListener
    frameclass frame=new frameclass();
    Player player;
    Component vc, cc;
    JProgressBar volumeBar;
         JButton fastRewind;
         JButton fastForward;
         JButton play;
    int sizeIncrease = 2;
    boolean invokedStop = false;
         /** Big */
         int progressFontSize=30;
    boolean first = true, loop = false;
    String currentDirectory;
    public void init(){
    JMenu m = new JMenu ("File");
    JMenuItem mi = new JMenuItem ("Open...");
    mi.addActionListener (this);
    m.add (mi);
    m.addSeparator ();
    JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem ("Loop", false);
    cbmi.addItemListener (this);
    m.add (cbmi);
    m.addSeparator ();
    mi = new JMenuItem ("Exit");
    mi.addActionListener (this);
    m.add (mi);
    JMenuBar mb = new JMenuBar ();
    mb.add (m);
    frame.setJMenuBar (mb);
    setSize (200, 200);
         final JPanel p = new JPanel(new GridLayout(1,0,5,5));
              p.setBorder(new EmptyBorder(3,5,5,5) );
              fastRewind = new JButton("<html><body><font size=+"+
    sizeIncrease+ "><<");
              fastRewind.setToolTipText("Fast Rewind");
              fastRewind.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipBack();
                        } else {
    JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file
    first!"));
              fastRewind.addKeyListener(this);
              p.add(fastRewind);
              JButton stop = new JButton("<html><body><font size=+"+
    sizeIncrease+ ">&#9632;");
              stop.setToolTipText("Stop");
              stop.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        invokedStop = true;
                        //player.stop();
                        sp();
              stop.addKeyListener(this);
              p.add(stop);
              play = new JButton("<html><body><font size=+"+
    sizeIncrease+ ">>");
              play.setToolTipText("Play");
              play.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             player.setRate(1);
                             st();
                        } else {
    JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file
    first!"));
              play.addKeyListener(this);
              p.add(play);
              fastForward = new JButton("<html><body><font size=+"+
    sizeIncrease+ ">>>");
              fastForward.setToolTipText("Fast Forward");
              fastForward.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipForward();
                        } else {
    JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file
    first!"));
              fastForward.addKeyListener(this);
              p.add(fastForward);
              p.addKeyListener(this);
              frame.add(p,BorderLayout.CENTER);     
              add(frame);
    // pack ();
    setVisible (true);
    public void start(){
    st();
    public void stop(){
    sp();
    public void destroy(){
    player.stop();
    player.deallocate();
    public void actionPerformed (ActionEvent e)
                   if (e.getActionCommand().equals("Exit"))
                   // Call dispose to invoke windowClosed.
                   frame.dispose ();
                        return;
         FileDialog fd = new FileDialog (frame, "Open File",
    FileDialog.LOAD);
         fd.setDirectory (currentDirectory);
         fd.show ();
         // If user cancelled, exit.
              if (fd.getFile() == null)
         return;
    currentDirectory = fd.getDirectory ();
              if (player != null)
         player.close ();
         try
         player = Manager.createPlayer (new MediaLocator
    ("file:" +
    fd.getDirectory() +
    fd.getFile()));
         catch (java.io.IOException e2)
    System.out.println (e2);
    return;
         catch (NoPlayerException e2)
    System.out.println ("Could not find a player.");
    return;
              if (player == null)
         System.out.println ("Trouble creating a player.");
         return;
    first = false;
    frame.setTitle (fd.getFile ().toString());
    player.addControllerListener (this);
    player.prefetch ();
    public void controllerUpdate (ControllerEvent e)
    if (e instanceof ControllerClosedEvent)
    if (vc != null)
    remove (vc);
    vc = null;
    if (cc != null)
    remove (cc);
    cc = null;
    return;
    if (e instanceof EndOfMediaEvent)
    if (loop)
    player.setMediaTime (new Time (0));
    player.start ();
    return;
    if (e instanceof PrefetchCompleteEvent)
    player.start ();
    return;
    if (e instanceof RealizeCompleteEvent)
    vc = player.getVisualComponent ();
    if (vc != null)
    add (vc);
    cc = player.getControlPanelComponent ();
    if (cc != null){
         this.add (cc, BorderLayout.SOUTH);
                        this.show();
    public void keyReleased(KeyEvent ke) {
    int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyTyped(KeyEvent ke) {
         int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyPressed(KeyEvent ke) {
              int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
              }else if (keycode==KeyEvent.VK_UP) {
                   st();
              }else if (keycode==KeyEvent.VK_DOWN) {
                   sp();
    public void skipForward() {
    double secs=5;
    double playersecs = player.getMediaTime().getSeconds();
    Time settime = new javax.media.Time(playersecs + secs);
    player.setMediaTime(settime);
    public void skipBack() {
              double secs1=5;
    double playersecs1 = player.getMediaTime().getSeconds();
    Time settime1 = new javax.media.Time(playersecs1 - secs1);
    player.setMediaTime(settime1);
         public void st() {
         player.start();
         public void sp() {
         player.stop();
    public void itemStateChanged (ItemEvent e)
    loop = !loop;
    When i comment add(frame) this error goes but i got a null poiter
    exception
    Plz help
    manu

    Hi Andrew,
    Thanks for ur reply.Sorrry that my code not included in the code block.
    My problem have been solved partly.Now playerapplet is working properly.It can play files from local machine(through open menuitem from file menu) as well as local network (through url menuitem from file menu).
    There is no requirement to play file from internet at present.
    I have given arrow keys to forward/backward/open/close.
    I have now completed my first part of project.Now i have to start the second part ie Controlling arrow keys using a joystick like instrument.The instrument and driver will be provided by my co. and the user is using only this device.Plz help me how to do that.
    The code is given below
    import javax.media.*;
    import java.text.DecimalFormat;
    import java.awt.*;
    import java.awt.FileDialog;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    <APPLET CODE=PlayerApplet.class
    WIDTH=320 HEIGHT=300>
    </APPLET>
    class nwa extends WindowAdapter
         frameclass frame;
         Player player;
         public nwa(frameclass frame,Player player)
          this.player=player;
          this.frame=frame;
         public void windowClosing (WindowEvent e)
          //User selected close from System menu.
          //Call dispose to invoke windowClosed.
          frame.dispose ();
          public void windowClosed (WindowEvent e)
              if (player != null)
                   player.stop();
                player.close ();
                   player.deallocate();
          System.exit (0);
    class frameclass extends JFrame
    Player player;
         frameclass(Player player)
         nwa n=new nwa(this,player);
         this.addWindowListener(n);                    
    public class PlayerApplet extends JApplet
               implements ActionListener,ControllerListener,ItemListener, KeyListener
               Player player=null;
               frameclass frame=new frameclass(player);
                 Component vc, cc;
                 Container f;
                 JProgressBar volumeBar;
                 JButton fastRewind;
              JButton fastForward;
              JButton play;
              int sizeIncrease = 2;
              boolean invokedStop = false;
              /** Big */
              int progressFontSize=30;
                 boolean first = true, loop = false;
                 String currentDirectory;
                 public void init()
                          f=frame.getContentPane();
                         JMenu m = new JMenu ("File");
                         JMenuItem mi = new JMenuItem ("Open...");
                         mi.addActionListener (this);
                         m.add (mi);
                         m.addSeparator ();
                         mi = new JMenuItem ("URL");
                         mi.addActionListener (this);
                         m.add (mi);
                         m.addSeparator ();
                         JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem ("Loop", false);
                         cbmi.addItemListener (this);
                         m.add (cbmi);
                         m.addSeparator ();
                         mi = new JMenuItem ("Exit");
                         mi.addActionListener (this);
                         m.add (mi);
                         JMenuBar mb = new JMenuBar ();
                         mb.add (m);
                         frame.setJMenuBar (mb);
                         setSize (500, 500);
                           JPanel p = new JPanel(new GridLayout(1,0,5,5));
                        p.setBorder(new EmptyBorder(3,5,5,5) );
                        fastRewind = new JButton("<html><body><font size=+"+ sizeIncrease+ "><<");
                        fastRewind.setToolTipText("Fast Rewind");
                        fastRewind.addActionListener( new ActionListener(){
                             public void actionPerformed(ActionEvent ae) {
                                  if (player!=null) {
                                       invokedStop = false;
                                       skipBack();
                                  } else {
                                       JOptionPane.showMessageDialog(play,
                                       new JLabel("Open a sound file first!"));
                        fastRewind.addKeyListener(this);
                        p.add(fastRewind);
                        JButton stop = new JButton("<html><body><font size=+"+ sizeIncrease+ ">&#9632;");
                        stop.setToolTipText("Stop");
                        stop.addActionListener( new ActionListener(){
                                  public void actionPerformed(ActionEvent ae) {
                                       invokedStop = true;
                                       sp();
                        stop.addKeyListener(this);
                        p.add(stop);
                        play = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>");
                        play.setToolTipText("Play");
                        play.addActionListener( new ActionListener()
                                  public void actionPerformed(ActionEvent ae) {
                                       if (player!=null) {
                                            invokedStop = false;
                                            player.setRate(1);
                                            st();
                                       } else {
                                            JOptionPane.showMessageDialog(play,
                                            new JLabel("Open a sound file first!"));
              play.addKeyListener(this);
              p.add(play);
              fastForward = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>>");
              fastForward.setToolTipText("Fast Forward");
              fastForward.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipForward();
                        } else {
                             JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file first!"));
              fastForward.addKeyListener(this);
              p.add(fastForward);
              frame.getContentPane().add(p,BorderLayout.CENTER);
              frame.setVisible (true);
              frame.pack();
              frame.setResizable(false);
      public void stop(){
      sp();
      public void destroy(){
       player.stop();
        player.deallocate();
      public void actionPerformed (ActionEvent e)
              if (e.getActionCommand().equals("Exit"))
                             // Call dispose to invoke windowClosed.
                             player.stop();
                             player.close();
                             player.deallocate();
                             frame.dispose ();
                                  return;
              if (e.getActionCommand().equals("Open..."))
                             FileDialog fd = new FileDialog (frame, "Open File",
                                         FileDialog.LOAD);
                              fd.setDirectory (currentDirectory);
                              fd.show ();
                              // If user cancelled, exit.
                              if (fd.getFile() == null)
                             return;
                              currentDirectory = fd.getDirectory ();
                                   if (player != null){
                                       player.close ();
                                       player.deallocate();
                         try
                  player = Manager.createPlayer (new MediaLocator
                                               ("file:" +
                                               fd.getDirectory() +
                                               fd.getFile()));
                              catch (java.io.IOException e2)
                            System.out.println ("file not found :"+e2);
                            return;
                              catch (NoPlayerException e2)
                            System.out.println ("Could not find a player.");
                            return;
                    if (player == null)
                   System.out.println ("Trouble creating a player.");
                   return;
                    first = false;
                    frame.setTitle (fd.getFile ().toString());
                    player.addControllerListener (this);
                    player.prefetch ();
                   return;
              if (e.getActionCommand().equals("URL"))
                             FileDialog fd = new FileDialog (frame, "Open File",
                                         FileDialog.LOAD);
                         fd.setDirectory (currentDirectory);
                         fd.show ();
                         // If user cancelled, exit.
                              if (fd.getFile() == null)
                             return;
                         currentDirectory = fd.getDirectory ();
                              if (player != null){
                                       player.close ();
                                       player.deallocate();
                   try
                        URL url = new URL ("file://"+fd.getDirectory()+fd.getFile());
                    MediaLocator mediaLocator = new MediaLocator (url);
                        player = Manager.createPlayer (mediaLocator);
                   catch (java.io.IOException e2)
                  System.out.println ("file not found :"+e2);
                  return;
                    catch (NoPlayerException e2)
                  System.out.println ("Could not find a player.");
                  return;
                    if (player == null)
                   System.out.println ("Trouble creating a player.");
                   return;
          first = false;
          frame.setTitle (fd.getFile ().toString());
          player.addControllerListener (this);
          player.prefetch ();
              return;
       public void controllerUpdate (ControllerEvent e)
          if (e instanceof ControllerClosedEvent)
              if (vc != null)
                  frame.getContentPane().remove (vc);
                  vc = null;
              if (cc != null)
                  frame.getContentPane().remove (cc);
                  cc = null;
              return;
          if (e instanceof EndOfMediaEvent)
              if (loop)
                  player.setMediaTime (new Time (0));
                  player.start ();
              return;
          if (e instanceof PrefetchCompleteEvent)
              player.start();
              return;
          if (e instanceof RealizeCompleteEvent)
            if (vc != null)
                  remove (vc);
                  vc = null;
              if (cc != null)
                  remove (cc);
                  cc = null;
              vc = player.getVisualComponent ();
              if (vc != null)
                  frame.getContentPane().add(vc,BorderLayout.NORTH);
              cc = player.getControlPanelComponent ();
              if (cc != null){
                       frame.getContentPane().add (cc, BorderLayout.SOUTH);
                     frame.setVisible(true);
                     frame.pack();
    public void keyReleased(KeyEvent ke) {
    int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyTyped(KeyEvent ke) {
         int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyPressed(KeyEvent ke) {
              int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
              }else if (keycode==KeyEvent.VK_UP) {
                   st();
              }else if (keycode==KeyEvent.VK_DOWN) {
                   sp();
    public void skipForward() {
    Time settime;
    double secs=5;
    double playersecs = player.getMediaTime().getSeconds();
    double duration = player.getDuration().getSeconds();
              if((playersecs+secs) < duration){
                      settime = new javax.media.Time(playersecs + secs);
                      player.setMediaTime(settime);
              }else {
                        player.setMediaTime(new Time(duration));
    public void skipBack() {
              double secs1=5;
              double secs2=0;
              double playersecs1 = player.getMediaTime().getSeconds();
              Time settime1;
              if((playersecs1 - secs1) > secs2){
                      settime1 = new javax.media.Time(playersecs1 - secs1);
                      player.setMediaTime(settime1);
              }else {
                        player.setMediaTime(new Time(0));
         public void st() {
         player.start();
         public void sp() {
         player.stop();
       public void itemStateChanged (ItemEvent e)
          loop = !loop;
    With Thanks
    manuEdited by: mm_mm on Nov 27, 2007 11:09 PM

  • Named query gives a null argument exception in JPQL

    Hi all,
    I need your help with a named query which i have which returns a org.apache.openjpa.persistence.ArgumentException: null .
    Here is my named query:
    @NamedQuery(name="user_deactivateUser", query="update UserImpl u SET u.bisdeleted=1,u.dtupdatedate=SYSDATE, u.dtdeletedate=SYSDATE where u.nID=?1" Now when i call this query in my method it gives an null pointer exception at q.executeUpdate().
    public void doDeactivateAllUsers(int userID) throws ServiceException{
      EntityManager em = null;
      em = BaseDAO.getEntityManager();
      Query q = em.createNamedQuery("user_deactivateUser");
                   q.setParameter(1,userID);
                   int count = q.executeUpdate();here is the full stack trace of this exception.
    <openjpa-1.2.1-r752877:753278 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: null
         at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:814)
         at org.apache.openjpa.kernel.QueryImpl.updateAll(QueryImpl.java:884)
         at org.apache.openjpa.kernel.DelegatingQuery.updateAll(DelegatingQuery.java:573)
         at org.apache.openjpa.persistence.QueryImpl.executeUpdate(QueryImpl.java:336)
         at com.forrester.companyadmin.service.DeactivateUserService.doDeactivateUser(DeactivateUserService.java:98)
         at com.forrester.companyadmin.service.DeactivateUserService.doDeactivateAllUsers(DeactivateUserService.java:225)
         at com.forrester.companyadmin.controller.DeactivateUsersController.action(DeactivateUsersController.java:376)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         at javax.faces.component.UICommand.broadcast(UICommand.java:325)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.forrester.companyadmin.filters.CompanyAdminFilter.doFilter(CompanyAdminFilter.java:102)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         at java.lang.Thread.run(Unknown Source).
    Can someone let me know if there is anything wrong in the way iam passing these parameteres
    Edited by: user8769643 on Mar 19, 2010 7:37 AM

    i got this working. I am passing dtupdate=SYSDATE which is incorrect. i added one more parameter "q.setParameter(3,new java.util.Date())" to pass today's date and it worked.
    Thanks

  • Error messessage for software update is NSI Invalid Argument Exception attempt to insert nil value. No other apps work but Safari help?

    I can't get through software update - keep getting this on the thread. How do I fix?

    I would reinstall OS X:
    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install the Combo Updater for the version you prefer from support.apple.com/downloads/.

  • COULD NOT LOAD ARGUMENT EXCEPTION

    PLEASE HELP ME WITH THESE ONE
    I CANT RAN THE PROGRAM HE ALWAYS HAVE AN ERROR I INSTALL/UNINSTALL THE JWS BUT STILL THE SAME.
    IS THER ANY ONE ENCOUNTER THIS YET.

    1.) Don't write in ALL CAPS, it's considered shouting and rude
    2.) When you get an error message, post the complete message here including any stack trace you might get
    3.) provide more details, what program doesn't run? How do you start it?
    4.) Read http://www.catb.org/~esr/faqs/smart-questions.html to learn how to ask questions the smart way

  • Does send redirect work through emulator.

    hi
    i am trying to open a url through sendRedirect(url) method.when i am trying to open the jsp page through browser which uses this sendRedirect(url) and redirects it the url specified it works fine, but when i open the same jsp through emulator it throws illeagal argument exception on sendRedirect(url).
    so sendRedirect() doesnt work in emulator?
    is there any other way to open a url through jsp/servelt using emulator.

    HI Gert,
    The answer to your question is yes. I have verified this in a lab previously. As long as all the conditions for ICMP redirect have been met (source address on same net, best gateway on same net) then ICMP redirects are sent regardless of whether PBR or normal routing is being used.
    Hope that helps - pls rate the post if it does.
    Paresh

  • Handling RAW data types (from SAP) in Adobe forms - Illegal Arg Exception

    Hi,
          I have a scenario where I have to get data of type RAW in SAP to Adobe Forms using web dynpro java. What is the corresponding type in Web Dynpro / Adobe Forms.
    I am using Adaptive RFC and when I get the model from SAP function module, the RAW type is created as Binary type in the data dictionary of Web Dynpro.
    When I map the model context to controller context, the type is taken as byte[].
    I tried to set the attribute for this field and I got the Illegal Argument Exception error.
    I am using NWDS 7.0.9 and NW04s SP12. Pl help. I am working on this since 10 days but could get no solution.
    The initial exception that caused the request to fail, was:
    <b>java.lang.IllegalArgumentException</b>
    at com.sap.dictionary.runtime.DdTypeBinary.format(DdTypeBinary.java:60)
    at com.sap.dictionary.runtime.DdTypeBinary.toString(DdTypeBinary.java:64)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.doFormat(DataContainer.java:1405)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1098)
    at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderAttributes(XfdRenderer.java:370)
    ... 41 more

    Issue with the RAW data types is resolved now. I have changed the data type of the field into String in the dictionary (web dynpro).. I have changed the corresponding getters and setter functions from byte[] to string. And everything working fine now. I got the Illegal Argument exception initially because I was trying to display the binary data type fields on the adobe form or view which I am not supposed to do.
    Also it is better to create separate view attributes in the context to get the values rather than mapping the model attributes directly in the form or view.
    Thank you one and all.
    Regards
    Vasu

  • Getting EJBLocal.remove Exception

    Hi All,
    I am trying to remove using local object.remove method in my session bean. But getting the following Exception.
    TransactionRolledBackException : java.ejb.EJBLocal.remove Exception caused by ......................
    Illegal Argument Exception...........
    I am using Entity Bean and i have an entity Goal containing composite key. And I have set the setters for all fields in this entity except the two primary keys.
    While the getters for these to primary keys are set as local.
    What is the reason behind this error...........
    Appreciate any help......

    Can you post the actual stack trace? Thanks.
    --ken
    Kenneth Saks
    J2EE SDK Team
    SUN Microsytems

  • Marshalling exception

    Hi
    I have encountered an error marshalling arguments exception with some piece of
    code. This happens while a call is made to the session bean method by the client
    program ,( involves passing of two arguments one of which is a serializable data
    object, and the other being a string).
    This occurs only for very large volume of data processed by the client. These
    data objects are stored in a vector and passed to the session bean in a for loop.
    The error occurs randomly after a certain number of data objects are processed.
    The application uses Weblogic 5.1 as the app. server on Solaris platform ,The
    JDK version used is a jdk 1.2.2_08 with service pack 8.
    Thje exception thrown is as follows:
    java.io.UTFDataFormatException
    at java.io.DataOutputStream.writeUTF(DataOutputStream.java, Compiled Code)
    at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java, Compiled
    Code)
    at java.io.ObjectOutputStream.outputString(ObjectOutputStream.java, Compiled
    Code)
    at java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(ObjectOutputStream.java,
    Compiled Code)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java, Compiled
    Code)
    at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java,
    Compiled Code)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java,
    Compiled Code)
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java, Compiled
    Code)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java, Compiled
    Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java:118)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeSpecial(WLObjectOutputStreamBase.java,
    Compiled Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java,
    Compiled Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutputStreamBase.java,
    Compiled Code)
    at weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStream2.java,
    Compiled Code)
    at weblogic.rmi.extensions.AbstractOutputStream.writeObject(AbstractOutputStream.java,
    Compiled Code)
    at net.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_WLStub.updateTasks(ImportEtxAtxSessionBeanEOImpl_WLStub.java:209)
    at net.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_ServiceStub.updateTasks(ImportEtxAtxSessionBeanEOImpl_ServiceStub.java,
    Compiled C
    ode)
    at net.line.ov.beans.etxatx.client.ImportEtxAtxProcessor.startImportingEtxAtx(ImportEtxAtxProcessor.java,
    Compiled Code)
    at net.line.ov.util.MQPollingClient.onMessage(MQPollingClient.java:265)
    at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java, Compiled
    Code)
    at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java, Compiled
    Code)
    --------------- nested within: ------------------
    weblogic.rmi.MarshalException: error marshalling arguments
    - with nested exception:
    [java.io.UTFDataFormatException]
    at net.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_WLStub.updateTasks(ImportEtxAtxSessionBeanEOImpl_WLStub.java:214)
    at net.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_ServiceStub.updateTasks(ImportEtxAtxSessionBeanEOImpl_ServiceStub.java,
    Compiled C
    ode)
    at net.line.ov.beans.etxatx.client.ImportEtxAtxProcessor.startImportingEtxAtx(ImportEtxAtxProcessor.java,
    Compiled Code)
    at net.line.ov.util.MQPollingClient.onMessage(MQPollingClient.java:265)
    at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java, Compiled
    Code)
    at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java, Compiled
    Code)

    It is a little strange that java.io.DataOutputStream.writeUTF simply
    does
    if (utflen > 65535)
    throw new UTFDataFormatException();
    instead of
    if (utflen > 65535)
    throw new UTFDataFormatException("some meaningful message");
    Cameron Purdy <[email protected]> wrote:
    UTF data (String data) is limited to 64k. Find out where you have long
    strings and do custom serialization (externalizable).
    Peace,
    Cameron Purdy
    Tangosol Inc.
    << Tangosol Server: How Weblogic applications are customized >>
    << Download now from http://www.tangosol.com/download.jsp >>
    "Anna" <[email protected]> wrote in message
    news:[email protected]...
    Hi
    I have encountered an error marshalling arguments exception with somepiece of
    code. This happens while a call is made to the session bean method by theclient
    program ,( involves passing of two arguments one of which is aserializable data
    object, and the other being a string).
    This occurs only for very large volume of data processed by the client.These
    data objects are stored in a vector and passed to the session bean in afor loop.
    The error occurs randomly after a certain number of data objects areprocessed.
    The application uses Weblogic 5.1 as the app. server on Solaris platform,The
    JDK version used is a jdk 1.2.2_08 with service pack 8.
    Thje exception thrown is as follows:
    java.io.UTFDataFormatException
    at java.io.DataOutputStream.writeUTF(DataOutputStream.java,Compiled Code)
    at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java,Compiled
    Code)
    atjava.io.ObjectOutputStream.outputString(ObjectOutputStream.java, Compiled
    Code)
    atjava.io.ObjectOutputStream.checkSubstitutableSpecialClasses(ObjectOutputStre
    am.java,
    Compiled Code)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java,Compiled
    Code)
    atjava.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java,
    Compiled Code)
    atjava.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java,
    Compiled Code)
    atjava.io.ObjectOutputStream.outputObject(ObjectOutputStream.java, Compiled
    Code)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java,Compiled
    Code)
    atweblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
    StreamBase.java:118)
    atweblogic.common.internal.WLObjectOutputStreamBase.writeSpecial(WLObjectOutpu
    tStreamBase.java,
    Compiled Code)
    atweblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
    StreamBase.java,
    Compiled Code)
    atweblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutp
    utStreamBase.java,
    Compiled Code)
    atweblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStre
    am2.java,
    Compiled Code)
    atweblogic.rmi.extensions.AbstractOutputStream.writeObject(AbstractOutputStrea
    m.java,
    Compiled Code)
    atnet.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_WLStub.updateTasks(
    ImportEtxAtxSessionBeanEOImpl_WLStub.java:209)
    atnet.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_ServiceStub.updateT
    asks(ImportEtxAtxSessionBeanEOImpl_ServiceStub.java,
    Compiled C
    ode)
    atnet.line.ov.beans.etxatx.client.ImportEtxAtxProcessor.startImportingEtxAtx(I
    mportEtxAtxProcessor.java,
    Compiled Code)
    atnet.line.ov.util.MQPollingClient.onMessage(MQPollingClient.java:265)
    atcom.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java, Compiled
    Code)
    at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java,Compiled
    Code)
    --------------- nested within: ------------------
    weblogic.rmi.MarshalException: error marshalling arguments
    - with nested exception:
    [java.io.UTFDataFormatException]
    atnet.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_WLStub.updateTasks(
    ImportEtxAtxSessionBeanEOImpl_WLStub.java:214)
    atnet.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_ServiceStub.updateT
    asks(ImportEtxAtxSessionBeanEOImpl_ServiceStub.java,
    Compiled C
    ode)
    atnet.line.ov.beans.etxatx.client.ImportEtxAtxProcessor.startImportingEtxAtx(I
    mportEtxAtxProcessor.java,
    Compiled Code)
    atnet.line.ov.util.MQPollingClient.onMessage(MQPollingClient.java:265)
    atcom.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java, Compiled
    Code)
    at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java,Compiled
    Code)
    Dimitri

  • Print PDF to File -- OutOfMemory-Exception

    Hi all,
    versuch gerade mit Acrobat 7/8 Prof. Pdf-Dateien über die SDK in Datei zu drucken, um ein Spoolfile im Format PCL, PS, XPS usw. zu erhalten, je nachdem über welchen Drucker gedruckt wird...
    Bei Acrobat 7 Prof. erhalte ich, sobald der Outputfilename gesetzt ist, eine OutOfMemory-Exception.
    Das gleiche Sample liefert bei Acrobat 8 Prof. allerdings eine InvalidArguments-Exception...
    Lasse ich den Outputfilename-Parameter weg, dann funktioniert der Druck prinzipiell...
    Was muss im PrintParams-Objekt alles gesetzt sein um ein PDF auf einem beliebigen Drucker in Datei auszugeben??
    Für jede Hilfe bin ich dankbar,
    Jo
    Hier nochmals mein Post vom Planet-PDF-Forum, aber da tut sich leider auch nichts... :(
    not sure if this is the right place, but I'll just give it a try...
    currently I'm trying to get this sample to run. It should print a pdf to file without user-interaction. I'm using Adobe Acrobat 7.0 Professional and C#/.NET
    This is the VB-Sample I have found:
    Module Module1
    Sub Main(ByVal CmdArgs() As String)
    Dim oApp As Acrobat.CAcroApp
    Dim oAvDoc As Acrobat.AcroAVDoc
    Dim oDoc As Acrobat.CAcroPDDoc
    Dim oJS As Object
    Dim oPrinterParams As Object
    Dim PRINTER As String
    Dim INPUT As String
    Dim OUTPUT As String
    PRINTER = CmdArgs(0)
    INPUT = CmdArgs(1)
    OUTPUT = "\" + CmdArgs(2).ToString.Trim
    oApp = CreateObject("AcroExch.App")
    oAvDoc = CreateObject("AcroExch.AVDoc")
    oDoc = CreateObject("AcroExch.PDDoc")
    If oAvDoc.Open(INPUT, "") Then
    oDoc = oAvDoc.GetPDDoc()
    oJS = oDoc.GetJSObject()
    oPrinterParams = oJS.getPrintParams()
    oPrinterParams.printerName = PRINTER
    oPrinterParams.interactive = oPrinterParams.constants.interactionLevel.silent
    oPrinterParams.fileName = OUTPUT
    oJS.print(oPrinterParams)
    End If
    oDoc.Close()
    oApp.Exit()
    End Sub
    End Module
    However I always get the error #1001: "OutOfMemoryError: Nicht genug Speicher."
    System.Runtime.InteropServices.COMException wurde nicht behandelt.
    ErrorCode=1001
    Message="OutOfMemoryError: Nicht genug Speicher."
    Source="Acrobat JavaScript"
    StackTrace:
    bei Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
    bei Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
    bei PDFPrintToFile.Module1.Main(String[] CmdArgs) in C:\Projekte_XPS\PDFPrintToFile\Module1.vb:Zeile 28.
    bei System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
    bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    bei System.Threading.ThreadHelper.ThreadStart()
    When I use the same example without printing to file it works fine, but not when printing to file... why??? anyone got an idea??
    thanx for any help...
    I have tried it right now with Acrobat 8 Prof. and I even can't get it to run with that version!??
    I'll get either "invalid arguments"-Exception (Must be the 'fileName' parameter - when I comment that one out, at least it shows a SaveAs-Dialog)
    or a RPC_E_SERVERFAULT error...

    or a RPC_E_SERVERFAULT error...
    System.Runtime.InteropServices.COMException was unhandled
    ErrorCode=-2147417851
    Message="Ausnahmefehler des Servers. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"
    Source="Microsoft.VisualBasic"
    StackTrace:
    at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
    at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
    at PDFPrintToFile.Module1.Main(String[] CmdArgs) in C:\Dokumente und Einstellungen\Administrator\Desktop\PDFPrintToFile\Module1.vb:line 28
    at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    System.Reflection.TargetInvocationException was caught
    Message="Exception has been thrown by the target of an invocation."
    Source="mscorlib"
    StackTrace:
    at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
    at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
    at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
    at PdfPrintTestApp.Form1.PrintWithAcrobatSDK(String pdfFile) in C:\Dokumente und Einstellungen\Administrator\Desktop\PdfPrintTestApp\Form1.cs:line 99
    InnerException -> {"InvalidArgsError: Ungültige Argumente."}
    what am I doing wrong here!? anyone got an idea what's going wrong here!?

  • I have just downloaded OSX Mountain Lion. I have Canoscan LiDE 110. I am continuously getting an error message, "MP Navigator EX quit unexpectedly. Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException

    I have just downloaded OSX Mountain Lion 10.8.3 and installed it on my lap top. I have Canoscan LiDE 110. I am continuously getting an error message, "MP Navigator EX quit unexpectedly when ever I try to scan a document. Application Specific Information: *** Terminating app due to uncaught exception 'NS Invalid Argument Exception..."
    Please let me know how to solve this problem.

    LexSchellings wrote:
    According to www.roaringapps.com the MP Navigator EX does not run on Mountain Lion.
    There are different versions of MP Navigator available depending on the Canon device you have. And there are version of this app that do work on 10.8. So www.roaringapps.com would need to amend their statement.
    LexSchellings wrote:
    Instead I use Canon Solution Menu EX, which does even more for you than the MP Navigator. This Solution Menu runs perfectly on Mountain Lion.
    Solution Menu is just a front-end for other Canon applications. When you click on the Use Scanner menu and select Auto Scan, OCR or Attach To E-mail, MP Navigator will open.
    As for the OP, they can obtain the latest version of MP Navigator, which is 10.8 compatible, and the supporting scanner driver via this link.
    http://support-au.canon.com.au/P/search?model=CanoScan+LiDE+110&menu=download&fi lter=0&tagname=g_os&g_os=Mac%20OS%20X%20v10%2E8
    And you don't need to uninstall an older version. The new version will overwrite.

  • Null pointer exception using ImageIO

    Hi all I'm not sure this belongs here or in the applet forum, but if don't belong here I'll move it. Anyway My question is this, I am trying to load an image into an applet before I was just doing this
    public static Image getImage(String filename){
              if (applet == null)
                  return null; // for now
             else
                  return applet.getImage(applet.getDocumentBase(), filename);
         }Since then I've discovered ImageIO and have switched to this
    public static BufferedImage getImage(String filename){
              BufferedImage img = null;
              //File image = new File(filename);
              try{
                   //img = ImageIO.read(applet.getDocumentBase().getClass().getResource(filename));
                   //img = ImageIO.read(image);
                   img = ImageIO.read(ImageHandler.getFile(filename));
              }catch(IOException e){
                   e.printStackTrace();
                   return null;
              return img;Now my problem is that this is giving me a null pointer exception, each of the 3 times I try to load up the img variable I get a NPE and I cannot figure out why. I know the file is where its supposed to be and I know it is not corrupt since it works with the other code. So my question is why am I getting an exception with the second piece of code? Any advice or suggestions are appreciated thanks in advance.

    Well that was part of the problem, thanks for that I didn't catch that at first, but now it just created a new exception in that I'm getting a illegal argument exception saying that the input == null. Here is the entire class I should have posted it in the first place sorry
    import java.applet.Applet;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.imageio.ImageIO;
    public class ImageHandler {
         static Applet applet = null;
         public static void setApplet(Applet applet){
              ImageHandler.applet = applet;
         public static BufferedImage getImage(String filename){
              BufferedImage img = null;
              if(applet == null){
                   System.out.println("Applet is null");//for testing
                   return null; //for now
              }else{
                   try{
                        img = ImageIO.read(applet.getDocumentBase().getClass().getResource(filename));
                   }catch(IOException e){
                        e.printStackTrace();
                        return null;
                   return img;
    }The applet gets set in another class here:
    ImageHandler.setApplet(this);so unless I'm missing something (obviously I am or I won't be here lol) the applet is not null here is the errors I get again thanks for the help you've already given anymore is appreciated.
    java.lang.IllegalArgumentException: input == null!
         at javax.imageio.ImageIO.read(Unknown Source)
         at ImageHandler.getImage(ImageHandler.java:27)
         at BackgroundImages.<init>(BackgroundImages.java:17)
         at BackGrounds.<init>(BackGrounds.java:17)
         at MainGame.init(MainGame.java:51)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • Request.getcookies throw illegal exception

    when i call
    Cookie[]c=request.getCookies()
    i get illegal argument exception: cookie name ?hp
    i didnt found cookie with that name
    and its only happend with ie not in firefox.
    how can i solve it?

    Hi VJ,
    I have to use BPM as I am doing other stuff in my BPM. In my BPM I am catching mapping exception and then I have to send this to Soap Sender in SOAP fault message and in abstract interfaces we don't have option to give fault message types. Also, I am using S/A bridge and I have to close the brige in order to send some response to Soap Sender.
    Is it possible to send soap fault when we close the S/A brige by send step.
    Thanks,
    SP.

Maybe you are looking for

  • Pages 08 will not open

    Pages 08 is very slow to open or will not open at all.  I am using OS X version 10.9.3 and having the same problem on my imac and macbook pro.

  • HELP--using a program's header file!

    Ok, I have gone thru the jni tutorial and I understand the HelloWorld example... my problem is, in the tutorial the java part calls a C program that they then write... I need to call an existing program that is not written in java? I have this progra

  • Manual reservation creation for Network order

    Hi , I am trying to create manual reservation (MB21) for network (movement type 281), I am getting error message "Manual reservation for order category 20 is not allowed".  Whether it is possible to create manual reservation for network order by any

  • Doing a bulk insert

    Hi I need recomendations for doinga bulk insert from a database to the OBPM, creating a new instance (new BPM oject with attributes) but I need to take the attributes from the db, so I need to read each row but I can't use a counter thanks for your h

  • Play label in createChildSymbol timeline

    Hi How do i play a label in createChildSymbol time line? I've tried .... sym.$("content").empty(); sym.getComposition().getStage().createChildSymbol("Symbol1","content").play("label1"); and... sym.$("content").empty(); var myNewChildSymbol = sym.getC