Error draw an image on canvas

Hello! In this code, the drawImage method is returning false. If the same code is run as a desktop application using the main method the error does not happen.
Who knows why?
public class AppJavaTV implements Xlet{
    private XletContext context;
    private Container container;
    private SCanvas canvas;
    public void initXlet(XletContext arg0) throws XletStateChangeException {
        context = arg0;
        container = TVContainer.getRootContainer(arg0);
        canvas = new SCanvas();
        canvas.setLocation(0, 0);
        canvas.setSize(container.getSize());
        canvas.setBackground(Color.white);
        container.add(canvas);
        container.setVisible(true);
    public void startXlet() throws XletStateChangeException {}
    public void pauseXlet() {}
    public void destroyXlet(boolean arg0) throws XletStateChangeException {}
    public static void main(String argv[]) {
        Frame frame = new Frame();
        frame.setLayout(new BorderLayout());
        frame.add("Center", new SCanvas());
        frame.resize(400, 400);
        frame.show();
public class SCanvas extends Canvas{
    Image img = null;
    public SCanvas(){
        MediaTracker media = new MediaTracker(this);
        img = Toolkit.getDefaultToolkit().createImage("/Image.jpg");
        media.addImage(img, 0);
        try {
            media.waitForID(0);
        } catch (Exception e) {}
    @Override
    public void paint(Graphics graphics){
        graphics.setColor(Color.blue);
        graphics.drawRect(0, 0, 50, 50);
        graphics.setColor(Color.black);
        if(!graphics.drawImage(img, 200, 200, this))
            graphics.drawString("Error on draw image", 200, 200);
}

That is because you are using Canvas and Container objects. That objects are not used on the DTV environment. You should use the ones adapted to it, the ones contained in org.havi.ui, like HContainer, HScreen...
Remember tha java.awt is not used (except for some classes) and the equivalent elements are under org.havi.ui

Similar Messages

  • OutOf Memory Error while saving image of canvas

    Hi,
    I am facing a weired problem while saving the image of the graphics in Canvas. It's giving me OutOfMemory error. Here is snippet of code:
    if(cmd.equals(C.ACTION_SAVE)){
                try {
                    FileDialog fd = new FileDialog(frame, "Save ProcessInstance as JPEG", FileDialog.SAVE);
                    fd.setFile(processInstance.getProcessDefinition().getName() +processInstance.getProcessOwner() +processInstance.getProcessOwnerId() +".jpeg");
                    fd.show();
                    String name = fd.getDirectory()+fd.getFile();
                        int w = canvas.getWidth(), h = canvas.getHeight();
                        BufferedImage image = new BufferedImage(w, h,
                                BufferedImage.TYPE_INT_RGB);
                        Graphics2D g2 = image.createGraphics();
                        canvas.paint(g2);
                        g2.dispose();
                        ImageIO.write(image, "jpeg", new File(name));
                    } catch (IOException e) {
                        System.err.println(e);
                    }

    Hi,
    I tried to run garbage collector for the same and now its working fine. I want to know is there any drawback of using this approach. I am new to java and waiting for ur expert comments. I added following lines in the above code just below ImageIO.write(image, "jpeg", new File(name));:
             image = null;
                        Runtime r = Runtime.getRuntime();
                        r.gc();

  • Cannot Draw images to Canvas

    Hey guys i am having trouble drawing my images to my canvas can anyone provide me with some advice id really appreciate it. Thanks in advance. here is my code so far. I also posted this question on another forum but no response yet.
    package pgame;
    import javax.swing.*;
    import java.awt.*;
    public class PGame extends JPanel {
         public PGame() {
         add(new PBoard());
        public static void main(String[] args){
        JFrame frame = new JFrame("Game");
        frame.setContentPane(new PBoard());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setSize(240,430);
        frame.setResizable(false);
        frame.setVisible(true);
    package pgame;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*; 
    import javax.swing.event.*;
    import java.awt.image.BufferedImage;
    import java.awt.Graphics2D;
    public class PBoard extends JPanel{
    Canvas canvas;
    final int height = 12;
    final int width = 6;
    final int canvas_height = height*32;
    final int canvas_width = width*32;
    private BufferedImage bufferedImage;
    Image image[];
      public PBoard() {
          super();
         image = new Image[4];
         image[0] = Toolkit.getDefaultToolkit().getImage("image1.png");
         image[1] = Toolkit.getDefaultToolkit().getImage("image2.png");
         image[2] = Toolkit.getDefaultToolkit().getImage("image3.png");
         image[3] = Toolkit.getDefaultToolkit().getImage("image4.png");
         canvas = new Canvas();
         canvas.setBounds(20,20,240,430);
         canvas.setSize(canvas_width,canvas_height);
         canvas.setBackground(Color.BLACK);
         add(canvas);
        public void paintComponent(Graphics g){
        super.paintComponent(g); 
        g.setColor(Color.RED);
        g.drawRect(0,0,233,397); // Draw a border
        g.drawImage(image[0],0,0,this);
    }

    Riz01 wrote:
    I have no real reason for it i just did it i was thinking of creating a double buffer and drawing my image through that onto my canvas.A very bad reason for doing this. Swing is double buffered automatically. When you use a Canvas, you lose this. Also, when you combine Swing and AWT components in the same GUI, strange bugs can occur. Please don't do this unless you know why you're doing it, and how to avoid the bugs that it will cause.

  • Place image on canvas

    Hi.
    I am trying to place image on canvas.
    However the image doesn't show!!!!!!!!!!!!! :(
    no error and compiles well....
    private void AddTile(String image, int startx, int starty, int endx, int endy)
    try{
    tiles = ImageIO.read(new File(image));
    catch(Exception e)
    System.out.println("Image not Found");
    Graphics2D a =(Graphics2D)tiles.getGraphics();
    a.drawImage(tiles, 20,20,20,20,TileCanvas);
    if the above function is called the image should be placed on canvas right?
    TileCanvas is a canvas, and tiles is BufferedImage.
    just in case I'll put my source code followed by this
    * MapEditor.java
    * Created on 2006�� 7�� 20�� (��), ���� 11:48
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.imageio.*;
    import java.io.*;
    * @author SeiKwon
    public class EditorComponent extends javax.swing.JFrame
    private java.awt.Button AddTile;
    private java.awt.Button DeleteTile;
    private javax.swing.JMenu FileMenu;
    private javax.swing.JMenuItem LoadFile;
    private javax.swing.JPanel ManageTilePanel;
    private java.awt.Canvas MapCanvas;
    private javax.swing.JMenuBar MenuBar;
    private javax.swing.JMenuItem SaveFile;
    private javax.swing.JScrollPane ShowMapScroll;
    private java.awt.Canvas TileCanvas;
    private javax.swing.JScrollPane TileScroll;
    private BufferedImage tiles;
    private int tilecount = 0;
    /** Creates new form MapEditor */
    public EditorComponent()
    initComponents();
    AddTile("test.jpg", 0, 0, 10, 10);
    private void initComponents()
    ManageTilePanel = new javax.swing.JPanel();
    TileScroll = new javax.swing.JScrollPane();
    TileCanvas = new java.awt.Canvas();
    AddTile = new java.awt.Button();
    DeleteTile = new java.awt.Button();
    ShowMapScroll = new javax.swing.JScrollPane();
    MapCanvas = new java.awt.Canvas();
    MenuBar = new javax.swing.JMenuBar();
    FileMenu = new javax.swing.JMenu();
    SaveFile = new javax.swing.JMenuItem();
    LoadFile = new javax.swing.JMenuItem();
    getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    ManageTilePanel.setLayout(null);
    ManageTilePanel.setBorder(new javax.swing.border.TitledBorder("Tiles"));
    TileCanvas.setBackground(new java.awt.Color(255, 255, 255));
    TileScroll.setViewportView(TileCanvas);
    ManageTilePanel.add(TileScroll);
    TileScroll.setBounds(10, 22, 100, 230);
    AddTile.setLabel("Add");
    ManageTilePanel.add(AddTile);
    AddTile.setBounds(10, 260, 50, 26);
    DeleteTile.setLabel("Delete");
    ManageTilePanel.add(DeleteTile);
    DeleteTile.setBounds(60, 260, 50, 26);
    getContentPane().add(ManageTilePanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 10, 119, 290));
    ManageTilePanel.getAccessibleContext().setAccessibleName("TilesPanel");
    MapCanvas.setBackground(new java.awt.Color(255, 255, 255));
    MapCanvas.addMouseListener(new java.awt.event.MouseAdapter()
    public void mouseEntered(java.awt.event.MouseEvent evt)
    MapCanvasMouseEntered(evt);
    ShowMapScroll.setViewportView(MapCanvas);
    getContentPane().add(ShowMapScroll, new org.netbeans.lib.awtextra.AbsoluteConstraints(12, 10, 290, 290));
    FileMenu.setText("File");
    FileMenu.setContentAreaFilled(false);
    SaveFile.setIcon(new javax.swing.ImageIcon("D:\\java\\MapEditor\\Image\\Save16.gif"));
    SaveFile.setText("Save");
    SaveFile.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    SaveFileActionPerformed(evt);
    FileMenu.add(SaveFile);
    LoadFile.setIcon(new javax.swing.ImageIcon("D:\\java\\MapEditor\\Image\\Open16.gif"));
    LoadFile.setText("Load");
    LoadFile.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    LoadFileActionPerformed(evt);
    FileMenu.add(LoadFile);
    MenuBar.add(FileMenu);
    setJMenuBar(MenuBar);
    pack();
    private void MapCanvasMouseEntered(java.awt.event.MouseEvent evt)
    Cursor cursorshape = MapCanvas.getCursor();
    MapCanvas.setCursor(cursorshape.getPredefinedCursor(CROSSHAIR_CURSOR));
    private void AddTile(String image, int startx, int starty, int endx, int endy)
    try{
    tiles = ImageIO.read(new File(image));
    catch(Exception e)
    System.out.println("Image not Found");
    Graphics2D a =(Graphics2D)tiles.getGraphics();
    a.drawImage(tiles, 20,20,20,20,TileCanvas);
    private void LoadFileActionPerformed(java.awt.event.ActionEvent evt)
    FileDialog fd = new FileDialog(this, "Open", FileDialog.LOAD);
    //fd.setFile("*.map");
    fd.setDirectory(".");
    fd.setVisible(true);
    String filename = fd.getFile();
    System.out.println(filename);
    private void SaveFileActionPerformed(java.awt.event.ActionEvent evt)
    FileDialog fd = new FileDialog(this, "Save", FileDialog.SAVE);
    //fd.setFile("*.map");
    //fd.setFilenameFilter("*.map"); // HOW TO USE?????????????
    fd.setDirectory(".");
    fd.setVisible(true);
    String filename = fd.getFile();
    System.out.println(filename);
    public static void main(String args[])
    java.awt.EventQueue.invokeLater(new Runnable()
    public void run()
    new EditorComponent().setVisible(true);
    }

    You have at least two problems.
    1) You are mixing AWT and Swing. Instead of using a Canvas you should use either a JComponent or a JPanel.
    2) In Swing, drawing such are you are doing should be done within the paintComponent(Graphics g) method using the Graphics provided as an argument to the method.
    P.S. I can't test you code because for some reason you feal the need to use a NetBeans specific layout manager.

  • Need help displaying image on canvas  :((

    can anybody help me with my coding. my problem is, i cannot display an image on my canvas. plz..someone help me to solve my problem..
    Here's my coding...
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import java.io.*;
    import java.util.*;
    public class ImageMidletServlet
        Display display = null;
        //Form f = null;
        String url = "http://localhost:8080/banner/hp0.gif";
        String url2 = "http://localhost:8080/banner/rotateNumber";      
        //String url = "http://localhost:8080/banner/banner";
        Command backCommand = new Command("Back", Command.BACK, 0);
        Command submitCommand = new Command("Submit", Command.OK, 2);
        Command exitCommand = new Command("Exit", Command.STOP, 3);
        private Test test;  
        private StringItem stringItem2;
        private TextField txtField;
        private Timer tm;          // Timer
        private load load;       // Task
        private int id = 0;
        Image img = null;
        //String id;
        public ImageMidletServlet(Display display)
            this.display=display;  
            loadimage();
        public void loadimage()
            tm = new Timer();
            load = new load();
            tm.schedule(load,0,6000);
         class Test extends Canvas implements Runnable, CommandListener
            private Canvas canvas;
            public Test(Canvas canvas)
                this.canvas=canvas;
                setCommandListener(this);
            public void start()
                Thread t = new Thread(this);
                t.start();
            public void run ()
                DataInputStream is = null;
                DataInputStream is2 = null;
                StringBuffer sb = new StringBuffer();
                Image img= null;
                TextBox txtBox = null;
                StringBuffer b = new StringBuffer();
                HttpConnection c2 = null;
                OutputStream os = null;           
                ++ id;
                try
                    c2 = (HttpConnection)Connector.open(url2+ "?bannerid="+id);
                    os = c2.openOutputStream();
                    os.write(("bannerid="+id).getBytes());              
                    os.flush();
                    //HttpConnection c = (HttpConnection) Connector.open(url+ "?bannerid="+id);
                    HttpConnection c = (HttpConnection) Connector.open(url);
                    int len = (int)c.getLength();
                    if (len > 0)
                        is = c.openDataInputStream();
                        byte[] data = new byte[len];
                        is.readFully(data);
                        is2 = c2.openDataInputStream();
                        int ch;
                        while ((ch = is2.read()) != -1) {
                        b.append((char) ch);
                        System.out.print((char)ch);
                        try {
                        //img = Image.createImage(data, 0, len);
                        img = Image.createImage("/images/splash.png");
                        Graphics graphics = img.getGraphics();                   
                        catch (Exception e)
                        if(img==null)
                        System.out.print("no image");
                        else {System.out.print("got image");}
                    else
                        showAlert("length is null");;
                    is.close();
                    c.close();
                    c2.close();
                   // repaint();
                catch (Exception e)
                    e.printStackTrace();
                    showAlert(e.getMessage());
            /* Display Error On screen*/
            private void showAlert(String err)
                Alert a = new Alert("");
                a.setString(err);
                a.setTimeout(Alert.FOREVER);
                display.setCurrent(a);
             public void commandAction(Command c, Displayable d)
            if (c == exitCommand)
                //destroyApp(true);
                //notifyDestroyed();
            else if (c == backCommand)
                //display.setCurrent(f);
            else if (c == submitCommand)
                /*test  = new Test(this);
                test.start();*/
             protected void paint(Graphics graphics)
             if (img != null)
                graphics.setColor(0x000000);  
                graphics.drawImage(img, 0, 0, Graphics.TOP | Graphics.HCENTER);
             else
             {System.out.print("no drawing");}
        class load extends TimerTask
        private Test canvas;
           public final void run()
          this.canvas = canvas;
          test  = new Test(canvas);
          //test();
          test.start();
    }

    Hi
    I would do like this: take the code that draws the image an put it into a separate class (which will extend the Canvas class) which will take as a parameter to its constructor either an array of bytes or an Image object (it's up to you) and call this class after you have downloaded all the bytes from the input stream. I presume that you get the "no drawing" message..
    Mihai

  • Displaying images in canvas one after another

    Hi all,
    I have a problem displaying images in canvas one after another. I am using for loop and when i run the application, all images run back in the and only finally only the last image gets displayed in the emulator. I also used thread.sleep(). But it din't work.
    Here is my code:
    // A canvas that illustrates image drawing
    class DrawImageCanvas extends Canvas
    Image image;
    public void paint(Graphics g)
    int width = getWidth();
    int height = getHeight();
    g.setColor(0);
    g.fillRect(0, 0, width, height);
    String images[]={"paint_2.PNG","radha.PNG","cute.png","design.png","flowers.png"};
    for(int i=0;i<images.length;i++)
    image = null;
    System.out.println("/"+images);
         try
         image = Image.createImage("/"+images[i]);
    catch (IOException ex)
    System.out.println(ex);
    g.setColor(0xffffff);
    g.drawString("Failed to load image!", 0, 0, Graphics.TOP | Graphics.LEFT);
    return;
    if (image != null)
    g.drawImage(image, width/2, height/2, Graphics.VCENTER | Graphics.HCENTER);
    try
    Thread.sleep(5000);
    catch(Exception ex)
         System.out.println("the exception is.."+ex);
    Help me and Thanks in advance.

    See the code below : prefer the use of a Timer and a TimerTask instead of Thread.sleep().
    showNotify (from Canvas) is used to launch the timer.
    import java.io.IOException;
    import java.util.Timer;
    import java.util.TimerTask;
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    public class DrawImage extends Canvas {
        Image image;
        String images[] = {"img1.png", "img2.png", "img3.png", "img4.png", "img5.png",
                            "img6.png", "img7.png"};
        Image[] tabImage;
        int imageCounter = 0;
        public DrawImage(){
            try {
                tabImage = new Image[images.length];
                for (int i = 0; i < images.length; i++)
                    tabImage[i] = Image.createImage("/" + images);
    } catch (IOException ex) {
    ex.printStackTrace();
    public void paint(Graphics g) {
    int width = getWidth();
    int height = getHeight();
    g.setColor(0);
    g.fillRect(0, 0, width, height);
    image = tabImage[imageCounter];
    if (image != null)
    g.drawImage(image, width / 2, height / 2, Graphics.VCENTER | Graphics.HCENTER);
    else{
    System.out.println("null");
    g.setColor(0xffffff);
    g.drawString("Failed to load image!", 0, 0, Graphics.TOP | Graphics.LEFT);
    protected void showNotify(){
    Timer t = new Timer();
    t.schedule(new PhotoSwitcher(), 5000, 5000);
    private class PhotoSwitcher extends TimerTask{
    public void run() {
    if (imageCounter < images.length - 1)
    imageCounter++;
    else
    imageCounter = 0;
    repaint();
    I hope this will help you !
    fetchy.
    Edited by: fetchy on 14 ao�t 2008 09:48                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Draw to Image like BufferedImage.createGraphics(), but NOT in FX2's thread

    Hi. I want to draw some shapes in fx2's Image. Canvas.shapshot() can not be run outside fx's own thread, what gives various trouble, like either out of order drawing or delays on semaphores, On top of that, the code is complex and slow -- all drawing is performed probably on just a single thread, and the app starts to behave suspiciously, like a snapshot to an image within Platform.runLater results in that image drawn elsewhere by fx2 as if it were transparent, even that the image should never be transparent.
    Is fx2 currently not able to do any concurrent plain drawing?

    >
    Is fx2 currently not able to do any concurrent plain drawing?Yes, this is currently the case. To my opinion this is a serious shortcoming of JFX2 which I have complained about already several times but nobody seems to care (except you :-)).
    Michael

  • Displaying image on canvas as background for joystick display

    i am displating my joystick on canvas sucessfully and now i want to add a background image to it for better display please guide in detail. thanks in advance .. ahsan

    Hello ahsan, you can use CanvasDrawBitmap to draw ain image on the canvas.
    When searching for a function on a particular control, you can right-click on the control and choose "Control help" in the context menu: in case of the canvas you'll arrive to this help page where some useful resources are grouped. You can look at Programming with Canvas Controls to get some tip on how to use the control in you applications, of simply choose Canvas Control Functions to get a list of all function that can be used on that control. In this page CanvasDrawBitmap is listed.
    Additionally, if you go to Help >> Find examples... and search for canvas, you'll get a list of sample projects related to that control: "Alphablend" is one of them that shows how to draw an image on the canvas.
    By using these tips you'll be able to proceed in your work without necessarily wait for some forum user to help you.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Fit image to canvas at load

    I have subclassed JPanel in order to make my own image canvas. I have implemented zooming in and out, and, since the images I'm going to be using are generally in the dimensions of 3000x2000, I'd like an image to fit to the space available when it's loaded. This would be done with zoomfactor=min(canvasw/imagew,canvash/imageh), but here's the catch: getWidth and getHeight return 0. Unless, as I soon learned from our friend Google, getWidth and getHeight are called in paintComponent. However, I need a zoomfactor to paint, and I need to paint in order to to obtain my zoomfactor. So I'm trapped, I guess. What do I do?
    On a side note, what's the deal with getWidth/Height? Can they only be called in paintComponent? And, why, although put in a JScrollPane, and drawing an image much larger than the open screen space, my widget doesn't scroll?

    Components don't have a size until the GUI is visible.
    I don't see the problem. I would suspect your paintComponent() method paints the image so the width and height are available at that time.
    Your application should set the zoom factor and then invoke repaint() to cause the panel to repaint the image.
    So at startup time you just set the zoom factor to minimum and the paintComponent() method should know how to interpret that value.

  • Image on canvas prob...

    Is there any way to know that whether an image is present at particular location on canvas or not?
    Actually, i have written a code that draws image on canvas and moving it randomly. I have to keep checking how many times the image passes through a rect area at particular location.....
    ...........Its a part of my project ..Plz help me out!

    Make a Rectangle with width and height equal to the moving image dimensions. Move/position the rectangle from your event code and draw the image at its origin (x,y). Then it is a simple matter to check for intersection between this moving rectangle and the target rectangle.

  • Clear image on canvas

    How to clear the image on canvas? I have a big image span the whole screen and I want to put another smaller image now. There is no "clear" method to be called! What I can do is to draw a rectangle. Any suggestion?
    Thanks!

    The following should clear your screen.
      // Clear the whole screen.
      g.setColor(255, 255, 255);
      g.fillRect(0, 0, getWidth(), getHeight());

  • Image in canvas

    I did something wrong then i can't see the image in canvas when i'm not playing the video in timeline. It's very hard to edit without viewing changes in canvas. Im a beginner, I need your help.
    Thank You
    Adolfo

    Hello
    At first, image diapeared, canvas was white; after i commit my second error because i tried using toggling channels, image went sepia or red
    Thank you
    Adolfo

  • Error while adding Image: ORA-00001: unique constraint

    Dear all,
    I have an error while adding images to MDM I can´t explain. I want to add 7231 images. About 6983 run fine. The rest throws this error.
    Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
    Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
    Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
    Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
    Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
    Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
    Name=CodeName; Type=2; Value=207603_Img8078_gif; ArraySize=0; NullInd=0;
    Name=Name_L3; Type=2; Value=207603_Img8078.gif; ArraySize=0; NullInd=0;
    Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
    Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
    Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
    Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
    Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
    Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
    Name=CodeName; Type=2; Value=207603_Img8085_gif; ArraySize=0; NullInd=0;
    Name=Name_L3; Type=2; Value=207603_Img8085.gif; ArraySize=0; NullInd=0;
    I checked all data. There is no such dataset in the database. Can anybody give me a hint how to avoid this error.
    One thing I wonder: The PermanentId is allways the same but I can´t do anything here.
    BR
    Roman
    Edited by: Roman Becker on Jan 13, 2009 12:59 AM

    Hi Ritam,
    For such issues, can you please create a new thread or directly email the author rather than dragging back up a very old thread, it is unlikely that the resolution would be the same as the database/application/etc releases would most probably be very different.
    For now I will close this thread as unanswered.
    SAP SRM Moderators.

  • How do I fix an access rights error when launching Image Processor in Adobe Bridge CC?

    Often when I am working on files and want to batch process Jpegs for clients I get an error message from Image Processor.  It will state "I am unable to create a file in this folder.  Please check your access rights to this location ...."
    I have cleared cache and up'd my history levels.  I checked to make sure the files were not locked and read/write was enabled.  I am not sure why this error keeps occurring.  I am using Adobe Photoshop CC 2014 (2014.2.2 release) with Adobe Bridge CC (6.1.0.115)

    It's an endless circle.
    See if these instructions help: iTunes repeatedly prompts to authorize computer to play iTunes Store purchases

  • Error : CGImageCreate: invalid image colorspace: NULL.

    Hi,
    I am unable to launch Intellij IDEA from command line using ./idea.sh on my Mac (OS 10.7.4). The intellij IDEA flash screen comes up after which I am seeing the following error and the application hangs -- the IDEA does not open. I have been trying to get over this for a long time but no help. Any help is appreciated.
    bash-3.2$ ./idea.sh
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextGetCTM: invalid context 0x0
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextSetBaseCTM: invalid context 0x0
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextGetCTM: invalid context 0x0
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextSetBaseCTM: invalid context 0x0
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    2012-12-07 17:37:34.623 java[1789:c07] CWindow's _nativeShow encountered error: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    bash-3.2$
    Thanks,
    Rahul.

    My input certainly wasn't intended to ba sarcastic, so please forgive me if it seemed so.
    Seroiusly, always do a search before updating, http://discussions.apple.com/search.jspa?objID=f1201&search=Go&q=update+problem, NI is flaky at best IMHO, did you heck with them yet to see if a patch is available?
    Always wait a few weeks before updating, a reinstall is a headache, goodluck!

Maybe you are looking for

  • How can I change my itunes account on an ipad without losing pics or affecting my accounts on my pc and iphone?

    I want to use facetime but my phone and ipad both ring when a call comes in

  • Button problem in IE

    I've built a quick splash page for a friend, with a button on the front to load a temporary second page. The button works great in Firefox and Safari, but doesn't work at all in IE (of course). I applied the active content update to both of the HTML

  • REF CUR within FUNC

    I'm trying to check if rows exist on table_a - I'm using ref curs b/c need for dynamic FROM clause - getting message : PLS-00455: cursor 'L_REF_CUR' cannot be used in dynamic SQL OPEN statement vers 8.1.7.2.0 Thanks for help. CREATE OR REPLACE FUNCTI

  • How do I see the multi-task menu bar?

    I am trying to find a way to stop the app "Magellan Road Mate" when I am finished. Seems simple, however, there is no provision for turning the app off. Magellan says to go tap and hold the icon in the multi-task menu bar until a - sign appears then

  • Help with Adobe Premiere Elements 8.0

    Hello! I recently began fooling around with Premiere elements and I had a couple of questions about it:  First, if you could please watch this video:  http://www.youtube.com/user/iTerabithia#p/search/6/01qfQSyq1WI      In the almost beginning it show