Getting a black image after joining two images

Hey Guys,
I have joined two images. In the joined image. i am getting the first image but the second one im getting as a black image. Can you please tell me what is the problem??
Below is the code:
w = inv*img[inv].getWidth(null) + img1.getWidth(null);
     h = Math.max(img[inv].getHeight(null), img1.getHeight(null));
     BufferedImage[] joinedImg = new BufferedImage[lnuInvoiceIndex];
     Graphics2D[] g = new Graphics2D[lnuInvoiceIndex];
JPEGImageEncoder[] encoder=new JPEGImageEncoder[lnuInvoiceIndex];
     for(int join=0;join<=lnuInvoiceIndex;join++){
joinedImg[join]=new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
g[join] = joinedImg[join].createGraphics();
g[join].drawImage((BufferedImage)thumbImage[inv], 0,0, null);
encoder[join] = JPEGCodec.createJPEGEncoder(response.getOutputStream());
encoder[join].encode((BufferedImage)joinedImg[join]);
}

import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.swing.*;
public class JoinImages {
    private JPanel getContent(BufferedImage[] images) {
        JPanel panel = new JPanel(new BorderLayout());
        panel.add(wrap(join(images, 4)), "Before");
        panel.add(wrap(join(images, 1)), "Last");
        panel.add(wrap(join(images, 2)));
        return panel;
    private BufferedImage join(BufferedImage[] images, int rows) {
        int cols = images.length/rows;
        // For all images having the same size.
        int iw = images[0].getWidth();
        int ih = images[0].getHeight();
        int w = cols*iw;
        int h = rows*ih;
        int type = BufferedImage.TYPE_INT_RGB;
        BufferedImage image = new BufferedImage(w, h, type);
        Graphics2D g2 = image.createGraphics();
        for(int j = 0, index = 0; j < rows; j++) {
            for(int k = 0; k < cols; k++) {
                int x = k*iw;
                int y = j*ih;
                g2.drawImage(images[index++], x, y, null);
        g2.dispose();
        return image;
    private JLabel wrap(BufferedImage image) {
        return new JLabel(new ImageIcon(image),
                          JLabel.CENTER);
    public static void main(String[] args) throws IOException {
        String[] ids = { "-c---", "--g--", "---h-", "----t" };
        BufferedImage[] images = new BufferedImage[ids.length];
        for(int j = 0; j < images.length; j++) {
            String path = "images/geek/geek" + ids[j] + ".gif";
            images[j] = javax.imageio.ImageIO.read(new File(path));
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.add(new JoinImages().getContent(images));
        f.pack();
        f.setLocation(200,200);
        f.setVisible(true);
}Geek images from [Using Swing Components: Examples|http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html].

Similar Messages

  • OVM Server takes long time to boot up - gets stuck for minutes after joining domain

    Server takes a long time to reboot. Seems to get stuck for 8-10 minutes every time after joining domain.
    See below extract from /var/log/messages:-
    Feb 1 16:39:49 svrshir441 kernel: OCFS2 1.8.0
    Feb 1 16:39:49 svrshir441 kernel: o2dlm: Joining domain 0004FB0000050000E5144BF336A244A4 ( 0 1 2 ) 3 nodes
    Feb 1 16:39:49 svrshir441 kernel: ocfs2: Mounting device (252,4) on (node 1, slot 2) with ordered data mode.
    Feb 1 16:39:49 svrshir441 kernel: o2dlm: Joining domain 0004FB00000500000328DE591E03F0DB ( 0 1 2 ) 3 nodes
    Feb 1 16:39:49 svrshir441 kernel: ocfs2: Mounting device (252,2) on (node 1, slot 2) with ordered data mode.
    Feb 1 16:39:49 svrshir441 kernel: o2dlm: Joining domain 0004FB000005000024F2772BB88DAA6A ( 0 1 2 ) 3 nodes
    Feb 1 16:39:49 svrshir441 kernel: ocfs2: Mounting device (252,5) on (node 1, slot 2) with ordered data mode.
    Feb 1 16:39:49 svrshir441 kernel: o2dlm: Joining domain 0004FB0000050000B8721C8850D2C515 ( 0 1 2 ) 3 nodes
    Feb 1 16:39:49 svrshir441 kernel: ocfs2: Mounting device (252,1) on (node 1, slot 2) with ordered data mode.
    Feb 1 16:39:49 svrshir441 kernel: o2dlm: Joining domain 0004FB0000050000EE77A2D3C8C7383B ( 0 1 2 ) 3 nodes
    Feb 1 16:39:49 svrshir441 kernel: ocfs2: Mounting device (252,0) on (node 1, slot 2) with ordered data mode.
    Feb 1 16:39:49 svrshir441 kernel: o2dlm: Joining domain 0004FB0000050000B96BA1B4B79D765E ( 0 1 2 ) 3 nodes
    Feb 1 16:39:49 svrshir441 kernel: ocfs2: Mounting device (252,3) on (node 1, slot 2) with ordered data mode.
    Feb 1 16:39:49 svrshir441 kernel: o2dlm: Joining domain ovm ( 0 1 2 ) 3 nodes
    Feb 1 16:47:22 svrshir441 kernel: mpt2sas0: _ctl_BRM_status_show: BRM attribute is only forwarpdrive
    Feb 1 16:47:22 svrshir441 kernel: mpt2sas0: _ctl_host_trace_buffer_show: host_trace_buffer is not registered
    Feb 1 16:47:22 svrshir441 kernel: mpt2sas0: _ctl_host_trace_buffer_size_show: host_trace_buffer is not registered
    Feb 1 16:47:22 svrshir441 kernel: qla2xxx [0000:30:00.0]-1020:7: **** Failed mbx[0]=4006
    No idea why it seems to pause for 8 minutes.

    [2015-02-01 16:38:23 9555] DEBUG (ocfs2:162) cluster debug: {'/sys/kernel/debug/o2dlm': [], '/sys/kernel/debug/o2net': ['connected_n
    odes', 'stats', 'sock_containers', 'send_tracking'], '/sys/kernel/debug/o2hb': ['0004FB0000050000E5144BF336A244A4', 'failed_regions'
    , 'quorum_regions', 'live_regions', 'livenodes'], 'service o2cb status': 'Driver for "configfs": Loaded\nFilesystem "configfs": Moun
    ted\nStack glue driver: Loaded\nStack plugin "o2cb": Loaded\nDriver for "ocfs2_dlmfs": Loaded\nFilesystem "ocfs2_dlmfs": Mounted\nCh
    ecking O2CB cluster "8cd10008859eaf59": Online\n  Heartbeat dead threshold: 61\n  Network idle timeout: 60000\n  Network keepalive d
    elay: 2000\n  Network reconnect delay: 2000\n  Heartbeat mode: Global\nChecking O2CB heartbeat: Active\n  0004FB0000050000E5144BF336
    A244A4 /dev/dm-4\nNodes in O2CB cluster: 0 1 2 \n'}
    [2015-02-01 16:38:23 9555] DEBUG (ocfs2:162) cluster debug: {'/sys/kernel/debug/o2dlm': [], '/sys/kernel/debug/o2net': ['connected_n
    odes', 'stats', 'sock_containers', 'send_tracking'], '/sys/kernel/debug/o2hb': ['0004FB0000050000E5144BF336A244A4', 'failed_regions'
    , 'quorum_regions', 'live_regions', 'livenodes'], 'service o2cb status': 'Driver for "configfs": Loaded\nFilesystem "configfs": Moun
    ted\nStack glue driver: Loaded\nStack plugin "o2cb": Loaded\nDriver for "ocfs2_dlmfs": Loaded\nFilesystem "ocfs2_dlmfs": Mounted\nCh
    ecking O2CB cluster "8cd10008859eaf59": Online\n  Heartbeat dead threshold: 61\n  Network idle timeout: 60000\n  Network keepalive d
    elay: 2000\n  Network reconnect delay: 2000\n  Heartbeat mode: Global\nChecking O2CB heartbeat: Active\n  0004FB0000050000E5144BF336
    A244A4 /dev/dm-4\nNodes in O2CB cluster: 0 1 2 \n'}
    [2015-02-01 16:38:23 9555] DEBUG (ocfs2:270) Trying to mount /dev/mapper/360080e500036115200000b315294458d to /poolfsmnt/0004fb00000
    50000e5144bf336a244a4
    [2015-02-01 16:38:23 9555] DEBUG (ocfs2:295) /dev/mapper/360080e500036115200000b315294458d mounted to /poolfsmnt/0004fb0000050000e51
    44bf336a244a4
    [2015-02-01 16:38:24 10441] INFO (notificationserver:213) NOTIFICATION SERVER STARTED
    [2015-02-01 16:38:24 10443] INFO (remaster:140) REMASTER SERVER STARTED
    [2015-02-01 16:38:24 10444] INFO (monitor:23) MONITOR SERVER STARTED
    [2015-02-01 16:38:24 10447] INFO (ha:89) HA SERVER STARTED
    [2015-02-01 16:38:24 10448] INFO (stats:26) STAT SERVER STARTED
    [2015-02-01 16:38:24 10451] INFO (xmlrpc:307) Oracle VM Agent XMLRPC Server started.
    [2015-02-01 16:38:24 10451] INFO (xmlrpc:316) Oracle VM Server version: {'release': '3.2.8', 'date': '201404161506', 'build': '736'}
    , hostname: svrshir441, ip: 10.90.17.41
    [2015-02-01 16:38:24 10441] DEBUG (notificationserver:237) Trying to connect to manager.
    [2015-02-01 16:38:24 10441] DEBUG (notificationserver:239) Connected to manager.
    [2015-02-01 16:38:25 10441] INFO (notificationserver:267) Service started.
    [2015-02-01 16:38:25 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdb-7:0:0:0 (unde
    f:0x20470080e5361152:360080e500036115200000b315294458d)
    [2015-02-01 16:38:25 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdh-9:0:0:0 (acti
    ve:0x20460080e5361152:360080e500036115200000b315294458d)
    [2015-02-01 16:38:25 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdd-7:0:0:2 (unde
    f:0x20470080e5361152:360080e500036115200000b36529447cb)
    [2015-02-01 16:38:25 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdj-9:0:0:2 (acti
    ve:0x20460080e5361152:360080e500036115200000b36529447cb)
    [2015-02-01 16:38:25 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdf-7:0:0:4 (unde
    f:0x20470080e5361152:360080e500036115200000b39529448ba)
    [2015-02-01 16:38:25 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdl-9:0:0:4 (acti
    ve:0x20460080e5361152:360080e500036115200000b39529448ba)
    [2015-02-01 16:38:25 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdc-7:0:0:1 (acti
    ve:0x20470080e5361152:360080e500037683a00000b1652944694)
    [2015-02-01 16:38:26 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdi-9:0:0:1 (unde
    f:0x20460080e5361152:360080e500037683a00000b1652944694)
    [2015-02-01 16:38:26 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sde-7:0:0:3 (acti
    ve:0x20470080e5361152:360080e500037683a00000b18529448bf)
    [2015-02-01 16:38:26 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdk-9:0:0:3 (unde
    f:0x20460080e5361152:360080e500037683a00000b18529448bf)
    [2015-02-01 16:38:26 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdg-7:0:0:5 (acti
    ve:0x20470080e5361152:360080e500037683a00000b1a529449ac)
    [2015-02-01 16:38:26 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_SD] sdm-9:0:0:5 (unde
    f:0x20460080e5361152:360080e500037683a00000b1a529449ac)
    [2015-02-01 16:38:26 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_DM] dm-5 (360080e5000
    36115200000b39529448ba)
    [2015-02-01 16:38:26 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_DM] dm-1 (360080e5000
    36115200000b36529447cb)
    [2015-02-01 16:38:26 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_DM] dm-0 (360080e5000
    37683a00000b1652944694)
    [2015-02-01 16:38:27 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_DM] dm-2 (360080e5000
    37683a00000b18529448bf)
    [2015-02-01 16:38:27 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_DM] dm-3 (360080e5000
    37683a00000b1a529449ac)
    [2015-02-01 16:38:27 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:25 {STORAGE} [ADD_DM] dm-4 (360080e5000
    36115200000b315294458d)
    [2015-02-01 16:38:29 10444] DEBUG (monitor:36) Cluster state changed from [Unknown] to [DLM_Ready]
    [2015-02-01 16:38:29 10444] INFO (notification:47) Notification sent: {CLUSTER} {MONITOR} Cluster state changed from [Unknown] to [D
    LM_Ready]
    [2015-02-01 16:38:29 10441] INFO (notificationserver:139) Sending notification: {CLUSTER} {MONITOR} Cluster state changed from [Unkn
    own] to [DLM_Ready]
    [2015-02-01 16:38:33 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:33 {NETWORK} net : ADD : eth4 (1)
    [2015-02-01 16:38:36 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:36 {NETWORK} net : ADD : eth5 (1)
    [2015-02-01 16:38:39 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:39 {NETWORK} net : ADD : eth6 (0)
    [2015-02-01 16:38:42 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:42 {NETWORK} net : ADD : eth7 (1)
    [2015-02-01 16:38:45 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:45 {NETWORK} net : ADD : eth0 (1)
    [2015-02-01 16:38:48 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:48 {NETWORK} net : ADD : eth1 (1)
    [2015-02-01 16:38:51 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:51 {NETWORK} net : ADD : eth2 (0)
    [2015-02-01 16:38:54 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:54 {NETWORK} net : ADD : eth3 (1)
    [2015-02-01 16:38:57 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:38:57 {NETWORK} net : ADD : bond0 (1)
    [2015-02-01 16:39:00 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:39:00 {NETWORK} net : ADD : bond1 (1)
    [2015-02-01 16:39:03 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:39:03 {NETWORK} net : ADD : bond1.590 (1)
    [2015-02-01 16:39:06 10441] INFO (notificationserver:139) Sending notification: Feb  1 16:39:06 {NETWORK} net : ADD : bond1.90 (1)
    [2015-02-01 16:40:56 10441] ERROR (notificationserver:124) Error sending stats notification: 'Invalid URL Request (send) None&c=8&s=
    1422808694292&lb=p&t=2&p=%3Ccom.oracle.odof.OdofIdentifier%3E%3Clong%3E943%3C%2Flong%3E%3C%2Fcom.oracle.odof.OdofIdentifier%3E%2Ccom
    pareTo%2Cjava.lang.Object%2CNone%2C5'
    [2015-02-01 16:41:05 10441] ERROR (notificationserver:124) Error sending stats notification: 'Invalid URL Request (send) https://10.
    90.17.43:7002/ovm/core/OVMManagerCoreServlet&c=1&s=-1&lb=p&t=2&p=e02400aa0010ffffffffffffff200008%2Cc58171c45d024e7c9de519aaf1767abc
    [2015-02-01 16:41:26 10441] ERROR (notificationserver:124) Error sending stats notification: 'Invalid URL Request (send) https://10.
    90.17.43:7002/ovm/core/OVMManagerCoreServlet&c=1&s=-1&lb=p&t=2&p=e02400aa0010ffffffffffffff200008%2Cc58171c45d024e7c9de519aaf1767abc
    [2015-02-01 16:41:47 10441] ERROR (notificationserver:124) Error sending stats notification: 'Invalid URL Request (send) https://10.
    90.17.43:7002/ovm/core/OVMManagerCoreServlet&c=1&s=-1&lb=p&t=2&p=e02400aa0010ffffffffffffff200008%2Cc58171c45d024e7c9de519aaf1767abc
    [2015-02-01 16:42:05 10441] ERROR (notificationserver:124) Error sending stats notification: 'Invalid URL Request (send) https://10.
    90.17.43:7002/ovm/core/OVMManagerCoreServlet&c=1&s=-1&lb=p&t=2&p=e02400aa0010ffffffffffffff200008%2Cc58171c45d024e7c9de519aaf1767abc
    [2015-02-01 16:42:26 10441] ERROR (notificationserver:124) Error sending stats notification: 'Invalid URL Request (send) https://10.
    90.17.43:7002/ovm/core/OVMManagerCoreServlet&c=1&s=-1&lb=p&t=2&p=e02400aa0010ffffffffffffff200008%2Cc58171c45d024e7c9de519aaf1767abc
    [2015-02-01 16:42:26 10441] INFO (notificationserver:276) Service stopped.
    [2015-02-01 16:42:26 10441] DEBUG (notificationserver:237) Trying to connect to manager.
    [2015-02-01 16:42:29 10441] ERROR (notificationserver:244) Error initializing notification server: 'Invalid URL Request (send) https
    ://10.90.17.43:7002/ovm/core/OVMManagerCoreServlet&c=1&s=-1&lb=p&t=2&p=e02400aa0010ffffffffffffff200008%2Cc58171c45d024e7c9de519aaf1
    767abc'
    [2015-02-01 16:42:45 10448] ERROR (notification:44) Unable to send notification: (111, 'Connection refused')
    [2015-02-01 16:42:59 10441] DEBUG (notificationserver:237) Trying to connect to manager.
    [2015-02-01 16:43:05 10448] ERROR (notification:44) Unable to send notification: (111, 'Connection refused')
    [2015-02-01 16:43:25 10448] ERROR (notification:44) Unable to send notification: (111, 'Connection refused')
    [2015-02-01 16:43:32 10441] DEBUG (notificationserver:237) Trying to connect to manager.
    [2015-02-01 16:43:45 10448] ERROR (notification:44) Unable to send notification: (111, 'Connection refused')
    [2015-02-01 16:44:02 10441] DEBUG (notificationserver:237) Trying to connect to manager.
    [2015-02-01 16:44:05 10448] ERROR (notification:44) Unable to send notification: (111, 'Connection refused')
    [2015-02-01 16:44:25 10448] ERROR (notification:44) Unable to send notification: (111, 'Connection refused')
    [2015-02-01 16:44:32 10441] DEBUG (notificationserver:237) Trying to connect to manager.
    [2015-02-01 16:44:46 10448] ERROR (notification:44) Unable to send notification: (111, 'Connection refused')
    [2015-02-01 16:44:53 11242] DEBUG (service:76) call start: discover_server
    [2015-02-01 16:44:54 11242] DEBUG (service:76) call complete: discover_server
    [2015-02-01 16:45:02 10441] DEBUG (notificationserver:237) Trying to connect to manager.
    [2015-02-01 16:45:02 10441] DEBUG (notificationserver:239) Connected to manager.
    [2015-02-01 16:45:03 10441] INFO (notificationserver:267) Service started.
    [2015-02-01 16:47:22 11455] DEBUG (service:76) call start: get_api_version
    [2015-02-01 16:47:22 11455] DEBUG (service:76) call complete: get_api_version
    [2015-02-01 16:47:22 11456] DEBUG (service:76) call start: discover_server
    [2015-02-01 16:47:22 11456] DEBUG (service:76) call complete: discover_server
    [2015-02-01 16:47:22 11470] DEBUG (service:76) call start: discover_hardware
    [2015-02-01 16:47:23 11470] DEBUG (service:76) call complete: discover_hardware
    [2015-02-01 16:47:23 11497] DEBUG (service:76) call start: discover_network
    [2015-02-01 16:47:23 11497] DEBUG (service:76) call complete: discover_network
    [2015-02-01 16:47:24 11498] DEBUG (service:76) call start: discover_storage_plugins
    [2015-02-01 16:47:24 11498] DEBUG (service:76) call complete: discover_storage_plugins
    [2015-02-01 16:47:24 11501] DEBUG (service:74) call start: discover_physical_luns('',)
    [2015-02-01 16:47:25 11501] DEBUG (service:76) call complete: discover_physical_luns
    [2015-02-01 16:47:25 11523] DEBUG (service:74) call start: discover_physical_luns('360080e500036115200000b315294458d 360080e50003611
    5200000b36529447cb 360080e500037683a00000b1652944694 360080e500036115200000b39529448ba 360080e500037683a00000b18529448bf 360080e5000
    36115200000b315294458d 360080e500037683a00000b1a529449ac 360080e500036115200000b36529447cb 360080e500037683a00000b1652944694 360080e
    500036115200000b39529448ba 360080e500037683a00000b18529448bf 360080e500037683a00000b1a529449ac',)
    [2015-02-01 16:47:25 11523] DEBUG (service:76) call complete: discover_physical_luns
    [2015-02-01 16:47:26 11545] DEBUG (service:76) call start: discover_repository_db
    [2015-02-01 16:47:26 11545] DEBUG (service:76) call complete: discover_repository_db
    [2015-02-01 16:47:26 11546] DEBUG (service:74) call start: storage_plugin_listMountPoints('oracle.ocfs2.OCFS2.OCFS2Plugin', {'status
    ': '', 'admin_user': '', 'admin_host': '', 'uuid': '0004fb000009000090ee9ab5a5966c67', 'total_sz': 0, 'admin_passwd': '******', 'fre
    e_sz': 0, 'name': '0004fb000009000090ee9ab5a5966c67', 'access_host': '', 'storage_type': 'FileSys', 'alloc_sz': 0, 'access_grps': []
    , 'used_sz': 0, 'storage_desc': ''})
    [2015-02-01 16:47:26 11546] INFO (storageplugin:109) storage_plugin_listMountPoints(oracle.ocfs2.OCFS2.OCFS2Plugin)
    [2015-02-01 16:47:27 11546] DEBUG (service:76) call complete: storage_plugin_listMountPoints
    [2015-02-01 16:47:27 11573] DEBUG (service:76) call start: get_yum_config
    [2015-02-01 16:47:27 11573] DEBUG (service:76) call complete: get_yum_config
    [2015-02-01 16:47:27 11574] DEBUG (service:76) call start: discover_cluster
    [2015-02-01 16:47:27 11574] DEBUG (service:76) call complete: discover_cluster
    [2015-02-01 16:48:53 11703] DEBUG (service:76) call start: discover_network
    [2015-02-01 16:48:53 11703] DEBUG (service:76) call complete: discover_network
    [2015-02-01 16:48:53 11704] DEBUG (service:74) async call start: start_vm('0004fb00000300001e5b01d4a4cb6426', '0004fb0000060000eff93
    af0676e8c83')
    [2015-02-01 16:48:53 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb00-0006-0000-eff9-3af0676e8c83 {START
    [2015-02-01 16:48:54 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb00-0006-0000-eff9-3af0676e8c83 {VNC}
    5900
    [2015-02-01 16:48:54 11706] DEBUG (base:269) async call complete: func: start_vm pid: 11706 status: 0 output:
    [2015-02-01 16:48:54 11706] INFO (notification:47) Notification sent: {ASYNC_PROC} exit PID 11706
    [2015-02-01 16:48:54 10441] INFO (notificationserver:139) Sending notification: {ASYNC_PROC} exit PID 11706
    [2015-02-01 16:48:55 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb0000060000eff93af0676e8c83 {SSLVNC} 6
    900
    [2015-02-01 16:48:55 11958] DEBUG (service:74) call start: configure_vm_ha('0004fb00000300001e5b01d4a4cb6426', '0004fb0000060000eff9
    3af0676e8c83', True)
    [2015-02-01 16:48:56 11958] DEBUG (service:76) call complete: configure_vm_ha
    [2015-02-01 16:48:56 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb0000060000eff93af0676e8c83 {SSLTTY} 7
    900
    [2015-02-01 16:50:01 12075] DEBUG (service:76) call start: discover_network
    [2015-02-01 16:50:01 12075] DEBUG (service:76) call complete: discover_network
    [2015-02-01 16:50:01 12076] DEBUG (service:74) async call start: start_vm('0004fb0000030000ba5b6d02faa88c44', '0004fb0000060000fd7d7
    ad27e9d7b63')
    [2015-02-01 16:50:02 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb00-0006-0000-fd7d-7ad27e9d7b63 {START
    [2015-02-01 16:50:02 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb00-0006-0000-fd7d-7ad27e9d7b63 {VNC}
    5901
    [2015-02-01 16:50:02 12078] DEBUG (base:269) async call complete: func: start_vm pid: 12078 status: 0 output:
    [2015-02-01 16:50:02 12078] INFO (notification:47) Notification sent: {ASYNC_PROC} exit PID 12078
    [2015-02-01 16:50:03 10441] INFO (notificationserver:139) Sending notification: {ASYNC_PROC} exit PID 12078
    [2015-02-01 16:50:03 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb0000060000fd7d7ad27e9d7b63 {SSLVNC} 6
    901
    [2015-02-01 16:50:04 12516] DEBUG (service:74) call start: configure_vm_ha('0004fb0000030000ba5b6d02faa88c44', '0004fb0000060000fd7d
    7ad27e9d7b63', True)
    [2015-02-01 16:50:04 12516] DEBUG (service:76) call complete: configure_vm_ha
    [2015-02-01 16:50:04 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb0000060000fd7d7ad27e9d7b63 {SSLTTY} 7
    902
    [2015-02-01 16:50:54 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb00-0006-0000-fd7d-7ad27e9d7b63 {VMAPI
    } VMAPIEvent {"VMAPIEvent":{"severity":5,"subsystem":"OVMSvcSS","process":"OVMSvc","type":"system","payload":{"type":"alive","alive"
    :{"hostname":"GIS-DB-SVR1","domainName":"gloscc.gov.uk","osType":"Windows","osVersion":"Windows Server 2008 R2 Service Pack 1","kern
    elVersion":"6.1.7601.18700","arch":"AMD64","guestType":"PVHVM","guestDriverVersion":"3.2.2.0","vmapiVersion":"100"}}}}
    [2015-02-01 16:50:54 10441] INFO (notificationserver:139) Sending notification: {DOMAIN} 0004fb00-0006-0000-fd7d-7ad27e9d7b63 {VMAPI
    } VMAPIEvent {"VMAPIEvent":{"severity":5,"subsystem":"OVMSvcSS","process":"OVMSvc","type":"system","payload":{"type":"IPChange","IPC
    hange":{"intrface":"Oracle VM Virtual Ethernet Adapter","mac":"0021f6000001","ipv4info":{"ipinfo":[{"address":"10.90.0.66","netmask"
    :"255.255.255.0","gateway":"","mtu":1500,"speed":1000000000}]},"ipv6info":{"ipinfo":[{"address":"fe80::993f:d5f4:599d:fa4%14","netma
    sk":"255.255.255.0","gateway":"","mtu":1500,"speed":1000000000}]}}}}}

  • Does anyone get a black screen after dismissing the balance on a paygo phone

    I get a blank, black, screen after dismissing the balance on my paygo 3GS iphone.  To get rid of it I put the phone into standby and then wake it up! 

    From your logfile
    [787100.353] (EE) Failed to load /usr/lib/xorg/modules/drivers/i740_drv.so: /usr/lib/xorg/modules/drivers/i740_drv.so: undefined symbol: I740_Sync
    Corruption seems the correct assumption here; I'd boot using a rescue disc; then mount your actual system and reinstall all packages. After chrooting, that should be something like pacman -Sf `pacman -Qqet`

  • AFter joining two tables how to execute the query ???

    select Code from PlanCodes where orderNumber =
    (select min(orderNumber) from PlanCodes RPC ,PlanRollup RPR
    where RPC.Code=RPR.Code
    and RPR.AccountNumber = '1234'
    and RPR.EffectiveDate = '01/01/2005 '
    and RPR.RollupCode = 'x')
    AFter joining please let me know how to go about after this ??
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression creditRating = builder.getTable("PlanCodes").getField("Code");
    Expression issue_ref = builder.getTable("PlanRollup").getField("Code");
    Expression join = creditRating.equal(issue_ref);

    you can set global variable and filter for this variable in the triggers of blocks the actions then you avoid the code of trigger and you can use go_block

  • [GDI PLUS and win32] - why i only get a black image?

    heres my image class:
    class image
    private:
    ULONG_PTR m_gdiplusToken;
    Gdiplus::GdiplusStartupInput gdiplusStartupInput;
    HDC hdcimage=CreateCompatibleDC(NULL);
    Gdiplus::Graphics *graphic;
    Image *img;
    int imageheight=0;
    int imageweight=0;
    int framecount=0;
    int intSelectFrame=0;
    int framedelay=0;
    string strfilename="";
    Gdiplus::Color clrBackColor=Gdiplus::Color::Transparent;
    HDC hdcwindow;
    bool blnTransparent=true;
    public:
    image()
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    HBITMAP hbitmap=CreateCompatibleBitmap(hdcimage,1,1);
    SelectObject(hdcimage, hbitmap);
    image(HDC hdcWindow)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    hdcwindow=hdcWindow;
    image(int width, int height)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    hdcimage = CreateCompatibleDC(NULL);
    HBITMAP hbitmap=CreateCompatibleBitmap(hdcimage,width,height);
    SelectObject(hdcimage, hbitmap);
    framecount=1;
    image( const string & filename)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    if(toupper(filename[filename.size()-3])=='C' && toupper(filename[filename.size()-2])=='U' && toupper(filename[filename.size()-1])=='R')
    //create the transparent icon handle
    HCURSOR hicon = (HCURSOR)LoadImage(NULL, filename.c_str(), IMAGE_CURSOR, imageweight, imageheight, LR_LOADFROMFILE|LR_SHARED|LR_DEFAULTSIZE|LR_LOADTRANSPARENT);
    ICONINFO ii;
    BOOL fResult = GetIconInfo(hicon, &ii);
    if (fResult)
    BITMAP bm;
    fResult = GetObject(ii.hbmMask, sizeof(bm), &bm) == sizeof(bm);
    if (fResult)
    imageweight= bm.bmWidth;
    imageheight= ii.hbmColor ? bm.bmHeight : bm.bmHeight / 2;
    if (ii.hbmMask) DeleteObject(ii.hbmMask);
    if (ii.hbmColor) DeleteObject(ii.hbmColor);
    HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC
    DrawIconEx(hdcimage,0,0,hicon,imageweight,imageheight,0,0,DI_NORMAL);//draw the icon to DC with right size
    //seems the DrawIcon(), always, draw it with 32X32 size
    framecount=1;
    else
    Gdiplus::Image img2(towstring(filename).c_str());
    HBITMAP hbitmap=CreateBitmap(img2.GetWidth(),img2.GetHeight(),1,32,NULL);
    SelectObject(hdcimage, hbitmap);
    Gdiplus::Graphics graphics(hdcimage);
    graphics.DrawImage(&img2, 0, 0, img2.GetWidth(), img2.GetHeight());
    Gdiplus::Font fnt(L"Verdana", 10);
    Gdiplus::SolidBrush solidBrush(Gdiplus::Color(255, 255, 0, 0));
    Gdiplus::PointF pt(2, 2);
    Gdiplus::Pen pen(Gdiplus::Color(255,0,255,0));
    graphics.DrawString(L"Drawing Text", -1,&fnt, pt,&solidBrush );
    graphics.DrawLine(&pen, 0, 0, 200, 100);
    imageweight=img2.GetWidth();
    imageheight=img2.GetHeight();
    UINT count = 0;
    count = img2.GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img2.GetFrameDimensionsList(pDimensionIDs, count);
    framecount=img2.GetFrameCount(&pDimensionIDs[0]);
    framedelay =img2.GetPropertyItemSize(PropertyTagFrameDelay);
    img=new Image(towstring(filename).c_str());
    image (const image &cSource)
    framecount=cSource.framecount;
    framedelay=cSource.framedelay;
    clrBackColor=cSource.clrBackColor;
    img=cSource.img->Clone();
    imageweight=cSource.imageweight;
    imageheight=cSource.imageheight;
    BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
    image& operator= (const image &cSource)
    framecount=cSource.framecount;
    framedelay=cSource.framedelay;
    intSelectFrame=cSource.intSelectFrame;
    clrBackColor=cSource.clrBackColor;
    imageweight=cSource.imageweight;
    imageheight=cSource.imageheight;
    BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
    return *this;
    property <int> SelectFrame
    Get(int)
    return intSelectFrame;
    Set(int selectframe)
    intSelectFrame=selectframe;
    UINT count = 0;
    count = img->GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img->GetFrameDimensionsList(pDimensionIDs, count);
    img->SelectActiveFrame(&pDimensionIDs[0],intSelectFrame);
    graphic=new Graphics(hdcimage);
    graphic->Clear(clrBackColor);
    graphic->DrawImage(img, 0, 0, img->GetWidth(), img->GetHeight());
    property<int> FramesCount
    Get(int)
    return framecount;
    property<Gdiplus::Color> Backcolor
    Get(Gdiplus::Color)
    return clrBackColor;
    Set(Gdiplus::Color bkcolor)
    clrBackColor = bkcolor;
    SetDCBrushColor(hdcimage,clrBackColor.ToCOLORREF());
    void draw(HDC control)
    //if (clrBackColor.GetValue() == Gdiplus::Color::Transparent)
    if (clrBackColor.GetValue()== Gdiplus::Color::Transparent)
    TransparentBlt(control, 0, 0,width(),height(),hdcimage, 0, 0,width(), height(), GetPixel(hdcimage,width()-1,height()-1));
    else
    BitBlt(control,0,0,width(),height(),hdcimage,0,0,SRCCOPY);
    //InvalidateRect(WindowFromDC(control),NULL,false);
    operator HBITMAP()
    HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC
    MessageBox(NULL,to_string(GetLastError()).c_str(),"error",MB_OK);
    return hbitmap;
    int height()
    return imageheight;
    int width()
    return imageweight;
    operator HDC()
    return hdcimage;
    ~image()
    delete img;
    Gdiplus::GdiplusShutdown(m_gdiplusToken);
    //SelectObject(hdcimage, hbmOld);
    DeleteDC(hdcimage);
    when i create an image object i must put a file name. now i need show it on menus, by HBITMAP. so i did:
    operator HBITMAP()
    HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC
    MessageBox(NULL,to_string(GetLastError()).c_str(),"error",MB_OK);
    return hbitmap;
    //on menus
    void bitmap(image imgImage)
    //HBITMAP bitimage = (HBITMAP)LoadImage( NULL, filename.c_str(), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
    HMENU hMenu = NULL;
    if(primeiromenu)
    hMenu = mnuBar;
    else
    hMenu = MenuHandle;
    SetMenuItemBitmaps(hMenu,menuposition,MF_BYPOSITION ,(HBITMAP)imgImage ,(HBITMAP)imgImage);
    i don't get any errors. my problem is: why i get only a black color?
    when i do:
    SelectObject(hdcimage, hbitmap);
    is copy everything from HDC to hbitmap, right?

    now works fine. thanks for all
    class image
    private:
    ULONG_PTR m_gdiplusToken;
    Gdiplus::GdiplusStartupInput gdiplusStartupInput;
    HDC hdcimage=CreateCompatibleDC(NULL);
    HGDIOBJ obj=NULL;
    HBITMAP btBitmap;
    Image *img;
    int imageheight=0;
    int imageweight=0;
    int framecount=0;
    int intSelectFrame=0;
    int framedelay=0;
    string strfilename="";
    Gdiplus::Color clrBackColor=Gdiplus::Color::Transparent;
    HDC hdcwindow;
    bool blnTransparent=true;
    public:
    image()
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    btBitmap=CreateCompatibleBitmap(hdcimage,1,1);
    obj = SelectObject(hdcimage, btBitmap);
    image(HDC hdcWindow)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    hdcwindow=hdcWindow;
    image(int width, int height)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    hdcimage = CreateCompatibleDC(NULL);
    btBitmap = CreateCompatibleBitmap(hdcimage,width,height);
    obj = SelectObject(hdcimage, btBitmap);
    framecount=1;
    image( const string & filename)
    strfilename=filename;
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    if(toupper(filename[filename.size()-3])=='C' && toupper(filename[filename.size()-2])=='U' && toupper(filename[filename.size()-1])=='R')
    //create the transparent icon handle
    HCURSOR hicon = (HCURSOR)LoadImage(NULL, filename.c_str(), IMAGE_CURSOR, imageweight, imageheight, LR_LOADFROMFILE|LR_SHARED|LR_DEFAULTSIZE|LR_LOADTRANSPARENT);
    ICONINFO ii;
    BOOL fResult = GetIconInfo(hicon, &ii);
    if (fResult)
    BITMAP bm;
    fResult = GetObject(ii.hbmMask, sizeof(bm), &bm) == sizeof(bm);
    if (fResult)
    imageweight= bm.bmWidth;
    imageheight= ii.hbmColor ? bm.bmHeight : bm.bmHeight / 2;
    if (ii.hbmMask) DeleteObject(ii.hbmMask);
    if (ii.hbmColor) DeleteObject(ii.hbmColor);
    btBitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    obj = SelectObject(hdcimage, btBitmap);//add the bitmap to memory DC
    DrawIconEx(hdcimage,0,0,hicon,imageweight,imageheight,0,0,DI_NORMAL);//draw the icon to DC with right size
    //seems the DrawIcon(), always, draw it with 32X32 size
    framecount=1;
    DestroyCursor(hicon);
    else
    Gdiplus::Image img2(towstring(filename).c_str());
    btBitmap=CreateBitmap(img2.GetWidth(),img2.GetHeight(),1,32,NULL);
    obj = SelectObject(hdcimage, btBitmap);
    Gdiplus::Graphics graphics(hdcimage);
    graphics.DrawImage(&img2, 0, 0, img2.GetWidth(), img2.GetHeight());
    imageweight=img2.GetWidth();
    imageheight=img2.GetHeight();
    UINT count = 0;
    count = img2.GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img2.GetFrameDimensionsList(pDimensionIDs, count);
    framecount=img2.GetFrameCount(&pDimensionIDs[0]);
    if (framecount>1)
    framedelay =img2.GetPropertyItemSize(PropertyTagFrameDelay);
    else
    framedelay =0;
    img=new Image(towstring(filename).c_str());
    free(pDimensionIDs);
    image (const image &cSource)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    framecount=cSource.framecount;
    framedelay=cSource.framedelay;
    clrBackColor=cSource.clrBackColor;
    img=cSource.img->Clone();
    imageweight=cSource.imageweight;
    imageheight=cSource.imageheight;
    strfilename=cSource.strfilename;
    btBitmap=CreateBitmap(imageweight,imageweight,1,32,NULL);
    obj = SelectObject(hdcimage, btBitmap);
    BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
    image& operator= (const image &cSource)
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    framecount=cSource.framecount;
    framedelay=cSource.framedelay;
    clrBackColor=cSource.clrBackColor;
    img=cSource.img->Clone();
    imageweight=cSource.imageweight;
    imageheight=cSource.imageheight;
    strfilename=cSource.strfilename;
    btBitmap=CreateBitmap(imageweight,imageweight,1,32,NULL);
    obj = SelectObject(hdcimage, btBitmap);
    BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
    return *this;
    property <int> SelectFrame
    Get(int)
    return intSelectFrame;
    Set(int selectframe)
    intSelectFrame=selectframe;
    UINT count = 0;
    count = img->GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img->GetFrameDimensionsList(pDimensionIDs, count);
    img->SelectActiveFrame(&pDimensionIDs[0],intSelectFrame);
    Gdiplus::Graphics graphics(hdcimage);
    graphics.Clear(clrBackColor);
    graphics.DrawImage(img, 0, 0, img->GetWidth(), img->GetHeight());
    free(pDimensionIDs);
    property<int> FramesCount
    Get(int)
    return framecount;
    property<string> FileName
    Get(string)
    return strfilename;
    Set(string filename)
    delete img;
    DeleteObject(btBitmap);
    DeleteObject(obj);
    strfilename=filename;
    if(toupper(filename[filename.size()-3])=='C' && toupper(filename[filename.size()-2])=='U' && toupper(filename[filename.size()-1])=='R')
    //create the transparent icon handle
    HCURSOR hicon = (HCURSOR)LoadImage(NULL, filename.c_str(), IMAGE_CURSOR, imageweight, imageheight, LR_LOADFROMFILE|LR_SHARED|LR_DEFAULTSIZE|LR_LOADTRANSPARENT);
    ICONINFO ii;
    BOOL fResult = GetIconInfo(hicon, &ii);
    if (fResult)
    BITMAP bm;
    fResult = GetObject(ii.hbmMask, sizeof(bm), &bm) == sizeof(bm);
    if (fResult)
    imageweight= bm.bmWidth;
    imageheight= ii.hbmColor ? bm.bmHeight : bm.bmHeight / 2;
    if (ii.hbmMask) DeleteObject(ii.hbmMask);
    if (ii.hbmColor) DeleteObject(ii.hbmColor);
    btBitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
    obj = SelectObject(hdcimage, btBitmap);//add the bitmap to memory DC
    DrawIconEx(hdcimage,0,0,hicon,imageweight,imageheight,0,0,DI_NORMAL);//draw the icon to DC with right size
    //seems the DrawIcon(), always, draw it with 32X32 size
    framecount=1;
    DestroyCursor(hicon);
    else
    Gdiplus::Image img2(towstring(filename).c_str());
    btBitmap=CreateBitmap(img2.GetWidth(),img2.GetHeight(),1,32,NULL);
    obj = SelectObject(hdcimage, btBitmap);
    Gdiplus::Graphics graphics(hdcimage);
    graphics.DrawImage(&img2, 0,0,img2.GetWidth(),img2.GetHeight());
    imageweight=img2.GetWidth();
    imageheight=img2.GetHeight();
    UINT count = 0;
    count = img2.GetFrameDimensionsCount();
    GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*count);
    img2.GetFrameDimensionsList(pDimensionIDs, count);
    framecount=img2.GetFrameCount(&pDimensionIDs[0]);
    framedelay =img2.GetPropertyItemSize(PropertyTagFrameDelay);
    img=new Image(towstring(filename).c_str());
    free(pDimensionIDs);
    property<Gdiplus::Color> Backcolor
    Get(Gdiplus::Color)
    return clrBackColor;
    Set(Gdiplus::Color bkcolor)
    clrBackColor = bkcolor;
    SetDCBrushColor(hdcimage,clrBackColor.ToCOLORREF());
    void draw(HDC control)
    //if (clrBackColor.GetValue() == Gdiplus::Color::Transparent)
    if (clrBackColor.GetValue()== Gdiplus::Color::Transparent)
    TransparentBlt(control, 0, 0,width(),height(),hdcimage, 0, 0,width(), height(), GetPixel(hdcimage,width()-1,height()-1));
    else
    BitBlt(control,0,0,width(),height(),hdcimage,0,0,SRCCOPY);
    //InvalidateRect(WindowFromDC(control),NULL,false);
    operator HBITMAP()
    return btBitmap;
    int height()
    return imageheight;
    int width()
    return imageweight;
    operator HDC()
    return hdcimage;
    ~image()
    //delete graphic; //isn't needed, because i, now, don't use it //and i don't use the new keyword
    DeleteObject(obj);
    delete img;
    Gdiplus::GdiplusShutdown(m_gdiplusToken);
    //DeleteObject(btBitmap);//don't show me the image. so isn't need too
    DeleteDC(hdcimage);
    thanks for all

  • I get a black screen after installing the bootcamp drivers on my newly created windows partition?

    I am attempting to install windows 7 on my mid 2007 core 2 extreme iMac. I open bootcamp and do all of the steps except the usb flash drive drivers from apple because the server always fails to load. After restarting, I install windows 7 to the bootcamp partition, and the screen goes black during the "Completing Installation." I wait about an hour before shutting down and rebooting into my Mac partition. I use paragon ntfs for mac and go to the drivers folder and delete the atikmdag.sys file and restart. Booting into the windows partition, I get the error that says "Windows installation has failed because the system unexpectedly restarted. Click ok to restart and redo installation" or something along those lines. Instead of pressing ok, I press shift+f10 and open regedit. After opening regedit, I go into some registry file for the setup (I don't remember where this is located, although I can find it if needed), and I change a value from 3 to 1. After doing this and restarting, It boots regularly with a super low res screen but it boots without problem. I go to the apple website and download the appropriate bootcamp support software and install on my windows partition. After restarting, the screen is black again. I assume this is another video driver problem again because the black screen seems to always be video driver problems; however, its odd that the bootcamp support software would give me an incorrect video driver as it is directly from apple. Would this be the problem or does anyone know a fix? Any help is appreciated.
    Cheers,
    Adam

    If you bought your RAM at a place that also sells PC RAM you may have gotten mislabelled RAM. PCs can handle different RAM speeds so they’ll often label higher speed RAM as a lower speed rather than make two different speeds of RAM. But Macs are much more picky. They require a RAM stick to be exactly 667mhz not 675mhz or 800mhz. The way to tell is to put one of your old RAM sticks in and it will force the new RAM to run at the correct speed.
    This is from one review of PNY RAM:
    "These modules are actually 800Mhz. PNY no longer makes or sells 667Mhz modules. Not all computers that require 667Mhz are compatible with 2 800Mhz modules. They refuse to down clock properly. This is especially true with a number of Core 2 Duo MacBooks. Spoke to PNY support, they flat out told me that yes, they sell 800Mhz modules in 667Mhz packaging. If you RMA a module that is 667Mhz (or supposed to be 667Mhz) they will replace it with an 800Mhz module as they no longer have any 667Mhz SODIMMs, not even for RMA replacement!"
    These are good online stores for Mac compatible RAM
    OWC http://eshop.macsales.com/shop/memory/MacBook/DDR2/ - They offer Mac tested RAM at very good prices.
    Crucial Memory http://www.crucial.com/ - good place to buy RAM from all over the world. They also have an excellent memory selector that allows you to choose memory based on your computer's model
    Data Memory Systems http://www.datamemorysystems.com/apple-memory.asp - another good, cheap place to buying RAM if you live in the U.S.

  • Getting black image when resize to thumbnail

    When uploading images through a servlet via a webbrowser, I am saving the image to the harddrive and then resizing the image as thumbnail for certain view pages.
    I have tried serveral approaches to resizing the image, with all solutions I use the thumbnail image is being returned as a solid back image.
    I started with the example on the Sun Tech Tips site: http://java.sun.com/developer/TechTips/1999/tt1021.html
        public static void createThumbnail(
                String orig, String thumb, int maxDim) {
            try {
                // Get the image from a file.
                Image inImage = new ImageIcon(orig).getImage();
                // Determine the scale.
                double scale = (double) maxDim / (double) inImage.getHeight(null);
                if (inImage.getWidth(null) > inImage.getHeight(null)) {
                    scale = (double) maxDim / (double) inImage.getWidth(null);
                // Determine size of new image. One of them
                // should equal maxDim.
                int scaledW = (int) (scale * inImage.getWidth(null));
                int scaledH = (int) (scale * inImage.getHeight(null));
                // Create an image buffer in which to paint on.
                BufferedImage outImage = new BufferedImage(scaledW, scaledH,
                        BufferedImage.TYPE_INT_RGB);
                // Set the scale.
                AffineTransform tx = new AffineTransform();
                // If the image is smaller than the desired image size,
                // don't bother scaling.
                if (scale < 1.0d) {
                    tx.scale(scale, scale);
                // Paint image.
                Graphics2D g2d = outImage.createGraphics();
                g2d.drawImage(inImage, tx, null);
                g2d.dispose();
                // JPEG-encode the image and write to file.
                OutputStream os = new FileOutputStream(thumb);
                JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(os);
                encoder.encode(outImage);
                os.close();
            } catch (IOException e) {
                e.printStackTrace();
        }I have tried other approaches from various posting I found off google such as:
        public static void scale(String filename, String outputfile, int width, int height)
                throws Exception {
            ImageIcon source = new ImageIcon(filename);
            double sf_x = width / (double) source.getIconWidth();
            double sf_y = height / (double) source.getIconHeight();
            System.err.println("Scale_factor_X: " + sf_x);
            System.err.println("Scale_factor_Y: " + sf_y);
            BufferedImage bufimg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
            Graphics2D g = bufimg.createGraphics();
            g.setComposite(AlphaComposite.Src);
            AffineTransform aft = AffineTransform.getScaleInstance(sf_x, sf_y);
            g.drawImage(source.getImage(), aft, null);
            FileOutputStream os = new FileOutputStream(outputfile);
            JPEGImageEncoder enc = JPEGCodec.createJPEGEncoder(os);
            enc.encode(bufimg);
            os.flush();
            os.close();
        }No matter the implementation, the output is always the black image. I tried additional steps such as adding the JVM flag of:
    -Djava.awt.headless=true
    I've certainly spent a few hours on the google search engine and reviewing various newgroup posting, your suggestions come with many thanks.
    Cheers,
    Justen

    I tried your method and it worked okay. The only way I can get the black image is to send in a distorted path. One of the problems with the ImageIcon.getImage technique is that you get no feedback about loading failure. Here's a way to peek into the process for some indication of how it went. If you can tolerate j2se 1.4+ you could use the ImageIO methods in lieu of the proprietary JPGImageEncoder.
    import com.sun.image.codec.jpeg.*;
    import java.awt.*;
    import java.awt.geom.AffineTransform;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.net.URL;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    public class ImageScalingTest extends JPanel
        public static void createThumbnail(
                String orig, String thumb, int maxDim) {
            try {
                // Get the image from a file.
                ImageIcon icon = new ImageIcon(orig);
                int status = icon.getImageLoadStatus();
                String s = "";
                switch(status)
                    case MediaTracker.ABORTED:
                        s = "ABORTED";
                        break;
                    case MediaTracker.ERRORED:
                        s = "ERRORED";
                        break;
                    case MediaTracker.COMPLETE:
                        s = "COMPLETE";
                System.out.println("image loading status: " + s);
                Image inImage = icon.getImage();
    //            Object o = ImageScalingTest.class.getResource(orig);
    //            /*Buffered*/Image inImage = ImageIO.read(((URL)o).openStream());
                // Determine the scale.
                double scale = (double) maxDim / (double) inImage.getHeight(null);
                if (inImage.getWidth(null) > inImage.getHeight(null)) {
                    scale = (double) maxDim / (double) inImage.getWidth(null);
                // Determine size of new image. One of them
                // should equal maxDim.
                int scaledW = (int) (scale * inImage.getWidth(null));
                int scaledH = (int) (scale * inImage.getHeight(null));
                // Create an image buffer in which to paint on.
                BufferedImage outImage = new BufferedImage(scaledW, scaledH,
                        BufferedImage.TYPE_INT_RGB);
                // Set the scale.
                AffineTransform tx = new AffineTransform();
                // If the image is smaller than the desired image size,
                // don't bother scaling.
                if (scale < 1.0d) {
                    tx.scale(scale, scale);
                // Paint image.
                Graphics2D g2d = outImage.createGraphics();
                g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                     RenderingHints.VALUE_INTERPOLATION_BICUBIC);
                g2d.drawImage(inImage, tx, null);
                g2d.dispose();
                // JPEG-encode the image and write to file.
                OutputStream os = new FileOutputStream(thumb);
                JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(os);
                encoder.encode(outImage);
                os.close();
    //           ImageIO.write(outImage, "jpg", new File(thumb));
            } catch (IOException e) {
                e.printStackTrace();
        public static void main(String[] args)
            String path = "images/cougar.jpg";
            String fileName = "imageScalingTest.jpg";
            int size = 75;
            ImageScalingTest test = new ImageScalingTest();
            test.createThumbnail(path, fileName, size);
    }

  • Solution to "Black image when adding a watermark in Aperture"

    Hi,
    I read an archived topic about people having issues with adding a watermark to their exported images using Aperture 1.5.2. I think the solution lies with what your current Display color profile (System Preferences > Display > Color) is set to and what color profile you used to create your watermark.
    I created my original watermark using Photoshop CS2 and I believe that the watermark was saved using the sRGB Profle. However, I then calibrated my monitor using a Pantone Huey and it changed the color profile in my System Preferences. So every time I tried to export an image with a watermark from Aperture, I would get a black image with my watermark in the correct spot.
    To solve the problem, I changed my Color Profile to sRGB Profile, then started Aperture. When I exported my image, everything came out properly.
    Hope this is helpful to others.

    I also just ran into this problem...my solution was an issue with the RAW fine tuning.
    Images that used the new RAW fine tuning 2.0 (with Aperture 2) exported watermarks (I used a .psd file) just fine, but when exporting images with RAW fine tuning 1.1, a black box would show up around my watermark. So I migrated my images to RAW fine tuning 2.0 and it fixed the black box issue.

  • Black image from Dalsa CL-P1-2048 with 1424

    Hi all,I am using Dalsa CL-P1 2048 line scan camera with PCI 1424(LVDS). I checked with MAX and have some problems in acquiring the correct image.
    In short I am getting Image only with the following setup in MAX:
    1. Integration Type – Total
    2. Line rate is less than 10 KHz,
    3. Only with Snap & not in Grab operation
    4. Only if the acquisition window height is 1.
    If any of the above setup is changed then I am getting a black image. Further the image appears only in MAX and I am getting black line/image with Vision builder and LabVIEW.
    I have checked for the connections and that’s correct. What could be the problem??
    Does the timing of the si
    gnals that NI card gives is as per the Dalsa Camera's requirement?
    Can we check the signals directly with the scope??
    Please reply at the earliest.
    Thanks,
    Nandhini

    Nandhini,
    I have seen exactly this behavior before. The problem turned out to be a lack of light since line scan cameras typically require very bright light. Try aiming the camera at a bright light source and see if the image changes.
    Regards,
    Brent R.
    Applications Engineer
    National Instruments

  • [SOLVED] Black screen after GRUB

    Hello everyone
    I was setting up a machine with E17 and was trying various DM's since none seemed to work. After attempting to use LightDM, I get a black screen after GRUB. I was trying to read the various logs at /var/log/ but I cannot understand them properly. I tried reinstalling entrance and LightDM with no luck. I even tried editing grub's entry appending '1' or 's' and still no dice. Any help would be appreciated.
    Last edited by Linoman (2014-01-20 09:22:33)

    Hi tnx for both answers.
    I missed something important in Xorg.log. As you can see, fbdev and modesetting aren't loading as usual. I didn't check grub stuff, I don't think it's related, since loading in level 3 (text mode) I get a black screen but I can login as root and turn off the computer blindlessly.
    [ 2.969] (II) LoadModule: "modesetting"
    [ 2.969] (WW) Warning, couldn't open module modesetting
    [ 2.969] (II) UnloadModule: "modesetting"
    [ 2.969] (II) Unloading modesetting
    [ 2.970] (EE) Failed to load module "modesetting" (module does not exist, 0)
    [ 2.970] (II) LoadModule: "fbdev"
    [ 2.970] (WW) Warning, couldn't open module fbdev
    [ 2.970] (II) UnloadModule: "fbdev"
    [ 2.970] (II) Unloading fbdev
    [ 2.970] (EE) Failed to load module "fbdev" (module does not exist, 0)
    [ 2.970] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
    i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
    915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
    Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
    GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics,
    HD Graphics 2000, HD Graphics 3000, HD Graphics 2500,
    HD Graphics 4000, HD Graphics P4000, HD Graphics 4600,
    HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100,
    HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200
    [ 2.970] (II) VESA: driver for VESA chipsets: vesa
    [ 2.970] (++) using VT number 7
    [ 2.974] (WW) Falling back to old probe method for vesa
    javex wrote:Post the content of the following files:
    Also does disabling LightDM again help resolve the issue, i.e. can you get it to work without LightDM?
    No, I can't get it to work changing DM's. I'm not sure if I pacman -Syu before changing DM's another time. Maybe it wasn't LightDM's fault afterall.
    Spider.007 wrote:Additionally; try booting without the 'quiet' entry that is in the kernel line by default; and disable https://wiki.archlinux.org/index.php/Ke … de_Setting too
    Thanks for pointing out that. I didn't knew I had it on.
    Last edited by Linoman (2014-01-11 21:34:08)

  • Black Screen After Windows 8 64-bit Upgrade (Clean Install) on TouchSmart IQ508A (IQ500 series)

    Hi there,
    Just installed Windows 8 and am getting a black screen after booting up like many others. I currently have disabled the graphics driver and this has solved the black screen issue but I can no longer use my web cam for Skype (although web cam works for W8 Camera App oddly).
    To date I have tried the following:
    Loading up the latest Nvidia drivers from the Nvidia website
    Attempting to use the drivers for Windows 7 both in compatability mode and normally. I unzipped SP44488 to get this working
    I know many others are having this problem so I really would  like someone from HP to respond and state whether a Windows 8 display driver for the Nvidia GE Force 9300M GS is being developed.
    I ran the compatability wizard prior to the clean install and it came up with no issues so I am very disappointed I am having these problems.
    I've found out that HP have a customised version of the above card so that explains why the Nvidia drivers dont work so I believe HP is therefore obligated to provide a driver.
    If anyone else is having similar issues please respond as this will hopefully lead to more action.
    cheers
    Steve

    I'm in the same boat. On my IQ804, the Nvidia GE Force 9300M GS card crashes when I use NVidia's latest Windows 8 driver and Microsoft's LIVE UPDATE drivers.  I have to resort to the Standard VGA driver in order for the pc not to crash into a black screen.
    I read on another forum you can try installing a July 2012 version of the driver from NVidia and that should solve the problem.  I tried it once. Using the July 2012 version, the screen would stay on longer, but eventually it crashes into a black screen...but definitely more usable than the latest from NVidia and Microsoft.
    I too have heard that HP used a customized version of the graphics card and that's why neither HP nor NVidia's drivers work.
    I also tried installing the Nvidia GE Force 9300M GS drivers for Windows 7 that I downloaded from the HP website.  It didn't work either.  It actually failed to install altogether, saying my system is incompatible.
    As is, the pc works fine.  But videos and games that require motion is noticably choppy.
    Any help from HP??

  • Black screen after login while on battery with graphics switching enabled

    Getting a black screen after entering my password while logging into my account while on battery with graphics switching enabled. Everything is up and running, I just can't see it.
    I can log into the guest account on battery
    I can log into my account while plugged into power
    I can log into my account on battery if graphics switching is disabled
    I believe something that is starting up in my account is causing the system to switch from integrated to discrete graphics on login, and that switch isn't working correctly on battery power.
    As a work around for now, I can run with graphics switching disabled, but I'd like to solve this so I get longer battery life.
    MacBook Pro Retina 15"
    Mountain Lion
    All updates applied

    I had the same issue and managed to reslove it.
    Shut down your machine.
    Power it back on while holding the 'shift' key (left or right, doesn't matter)
    You will see a greay progress bar go across the screen while you boot in to 'safe boot'
    Once booted, login, and go to Energy Saver and turn on 'Automatic Graphics Switching'.
    Reboot back in to normal mode, and you should be able to log back in and see again.
    I did this without being plugged into AC power.
    Hope it helps!
    Cheers!

  • Where did the possibility to join two smooth endpoints into one go?

    I used get a dialog box when joining two overlapping endpoint, that is if they truly were on top of each other. I would get a dialog box when selecting two endpoints and pressing cmd+j where I could choose either smooth or corner.
    Now in Illustrator CS6 I do not get any dialog box no matter what I do and it always joins the two endpoints as corner even thoug they both started out as smooth - that is had both their arms. Is there another way to do this now?

    Well ... since I use "Average and join" all the time and very seldom only "Join" I just switched the shortcuts, so now Join has the 4-keys shortcut.
    Actually I can't think of a time I needed the corner join. Most of the time I use Pen Tool, and join paths with that, and with corner joins I just remove any excess points, but with more difficult smooth path constructions I find I often need the smooth join.
    I never figured why one can't select more than one arm like you can select more than one point ... it would make altering symetric paths symetrically so much easier.

  • Images and text blacked out upon joining pdfs and saving

    Hola all,
       Let me preface this by saying I'm a complete noob to Acrobat, so sorry if this will be a stupid question.
    Currently I'm attempting to join two pdfs together for a product on a few of my websites, upon doing so certain sections of the PDF are blacked out and the images are scrambled... I didn't have this issue with the Acrobat Pro 8 that was on my old system, but the most recent release (11.0.07) is causing issues.  Am I missing a setting somewhere?  It was pretty random doing this prior to today, now it seems to do it every time.  The blacked out areas are fine prior to saving, but as soon as I save, close, reopen it does this.
    Original on the right, final product on the left...
    Thanks in advance

    Tools -> insert from file
    But it doesn't matter, actually I can just save the larger of the 2 files and it creates the same issue, worked with support yesterday and they had me print to PDF the PDF causing an issue and it was fine after that.
    No answer on why exactly.  Just an extra step I guess I'll have to take...

  • I can't get imovie to open after trying to shift the image to my TV by clicking fn F3.  If I hold the mouse on the imovie icon for a few seconds the imovie window opens but if I click anywhere on the window it disappears

    I can't get imovie to open after trying to shift the image from my macbook pro to the tv screen like I have done many times before.  If I double click on the imovie icon, imovie doesn't open, but the strip across the top shows iMovie, file, edit , clip, view, text share window help tabs across the top.  The iMovie window will appear if I click on the iMovie icon on the dock for a few seconds, or if I do control F3 at the same time, but when I click on the window it disappears.  When I hover the mouse over the iMovie window that appears the window has a blue border around it.  when I move the mouse outside the iMovie window the blue border goes away.  If I sweep 4 fingers from the top of the screen down, the screen dims a little but the iMovie window doesn't appear. If I click play under the view tab I can hear audio, but still no iMovie window.  It's as if the window is being blocked by the desk top somehow.

    Similar issues here.
    I purchased five movies for download and having nothing but problems getting them downloaded. I keep receiving error messages and the download stops and I have to restart it, just to get another minute worth of download with each restart. Now Apple has my money and I have nothing.

Maybe you are looking for

  • Problem with opening query in Report Designer

    i am not able to open any quey in report desingner and facing RFc connection failed RSOBOLAP . is there any solution to solve the problem.

  • Filter not working, Please help

    Hi all, I have BI Answers report based on two fact tables. First Fact has Invoice_ID and few other columns. Second fact has Invoice_ID and few different columns. First report based on first fact table will display all invoices. Second report (which i

  • How to connect the wrt120n to android

    My mother in law bought my daughter a impression android tablet for Christmas it connects fine at public hotspots but I can not get it to connect to our wrt120n router at home. I have tried everything I know to add it. It asks for the password then s

  • SqlException was caught: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    Hi, I have deployed an On-Premise SharePoint solution with event receiver to update external SQLDB.  I'm using Visual Studio 2013 to create a SharePoint 2013 project on the same machine where SharePoint 2013 server is running.  I was able to create n

  • HT5587 Power button to turn off phone not working.... Help!

    Power bottom to turn iPhone off does not work.  Screen will turn off after a bit of no activity, but power off function when pressing does not work.  Any ideas for repair?  Thank you.