Very strange problem. Missing characters in QT applications

Hello all.
I'm trying to deal with a very strange issue since some time, that is driving me crazy, because I have no clue where the problem may lay:
In my Archlinux system, some, and only some QT applications (for example Skype, or Qtconfig) don't display properly certain characters in the unicode set (for example "ń" or "ł") when I use certain fonts (for example Terminus, Clean or Verdana), and those applications substitute those characters with the corresponding ones from the Bitstream Vera Sans font type.
So, when I write, say, the Polish word "Toruń", the four first letters (T, o, r and u) are rendereed in the desired font type (let's say Terminus). However, the last letter (ń) is rendered in Bitstream Vera Sans, thus making the writing appear really ugly and uneven.
However, this doesn't happen in Opera (the browser), which is a QT application, but where I get the whole unicode character set displayed properly in the desired font type (Terminus in this example).
Also, this doesn't happen in the rest of non-QT applications I have in my system: all of them render perfectly the whole unicode set of characters in the desired font type, no matter which.
But! it's not a problem of those QT applications, because I have another partition with Ubuntu installed, and when I boot that partition I don't have this problem: all applications, including Skype and Qtconfig, display correctly all characters in the whole unicode set, no matter which font type I'm using.
This is totally bewildering me.
Any clue?
Thank you.

The problem is not only in qt applications. I run openbox and this is the output I get when using the command-line script pdfmerge to merge pdf files:
GPL Ghostscript 8.71: Missing glyph CID=48, glyph=0030 in the font VerdanaBold . The output PDF may fail with some viewers.
GPL Ghostscript 8.71: Missing glyph CID=49, glyph=0031 in the font VerdanaBold . The output PDF may fail with some viewers.
GPL Ghostscript 8.71: Missing glyph CID=31, glyph=001f in the font VerdanaItalic . The output PDF may fail with some viewers.
GPL Ghostscript 8.71: Missing glyph CID=38, glyph=0026 in the font VerdanaItalic . The output PDF may fail with some viewers.
GPL Ghostscript 8.71: Missing glyph CID=37, glyph=0025 in the font VerdanaItalic . The output PDF may fail with some viewers.
GPL Ghostscript 8.71: Missing glyph CID=34, glyph=0022 in the font VerdanaItalic . The output PDF may fail with some viewers.
GPL Ghostscript 8.71: Missing glyph CID=54, glyph=0036 in the font VerdanaBold . The output PDF may fail with some viewers.
GPL Ghostscript 8.71: Missing glyph CID=44, glyph=002c in the font VerdanaBold . The output PDF may fail with some viewers.
GPL Ghostscript 8.71: Missing glyph CID=50, glyph=0032 in the font VerdanaBold . The output PDF may fail with some viewers.
GPL Ghostscript 8.71: Missing glyph CID=77, glyph=004d in the font Verdana . The output PDF may fail with some viewers.
There are visible errors in the pdf output. For example, bold "C" is replaced by a square box, bold "b" is replaced by a space.
It looks like there's bug in the Verdana font or perhaps in Ghostscript 8.71

Similar Messages

  • Nokia 3250:A very strange problem...

    hi..i'm facing a very strange problem in my handset 3250.. i've upgraded its os but still there is problem: http://discussions.europe.nokia.com/discussions/bo​ard/message?board.id=smartphones&;message.id=9102#M9102 any idea about such type of problem.....

    MR.,
    what is firmware?? How can i have its latest edition??
    Can you help me because i too have the same problem:
    Problem 1:
    1-I install any software (e.g:snake game) through Application manager (Pc Suit) in memory card.
    2-I launch that software (snake game) just after installation it works properly.
    3-Now i switch-off the hand set and than switch-on it.
    4-I try to launch that software (snake game) again but it doesn't response.
    Problem 2:
    1:There is a image in my Memory card.
    2: I set that image as a wallpaper.
    3-Now i switch-off the hand set and than switch-on it.
    4-Wallpaper reset to default one.
    Problem 3:
    1-I install a theme through Application manager (Pc Suit) in memory card.
    2: I apply that theme in my hand set.
    3-Now i switch-off the hand set and than switch-on it.
    4- Now theme reset to default one.

  • Very strange problem facing

    Hello All,
    I am facing very strange problem from last a week.
    I have made flex application using Flex3 and AMFphp.
    I was running very fine but just from before 7 days, my all images will not displayed in Mozilla Firefox browser.
    but it is running fine in Internet Explorer browser.
    any idea? I have tried to know what happen but i failed.
    Please help me to identify what's going wrong.
    Thank you.

    Have you tried emptying your cache?
    Dany

  • Very strange problem w/ iTunes PC

    Well, I have a very strange problem - I added some music to my iTunes and when I was changing the informations and cover, my iTunes crashed. When I restarted the program, the album is missing and when I found it on my hard drive, I am not able to import it back to the iTunes. This happens with both Import from the menu and the classic Drag/Drop method. So what to do? Is there any way to get it back?
    EDIT: Tried to move the files to another folder. Didn't work though.

    I just found the problem lies with iTunes 7.0.
    I ran the sames songs (ones with problem) into iTunes 4.7.1, with MSN messenger (same version)'s song display selected.....the song title/artist displayed and it did not get kicked out!!!!
    If it's not my 80gig iPod.......I would not have gotten iTunes 7.0!!!!!!!

  • A very Strange Problem!!!help me!!

    i encounter a very strange problem, in EJB
    i write two EJB, one Stateless Session called A, and one Entity called B.
    i want to call B's findByPrimaryKey method in one A's Business, but failed!!!
    but when i remove the statement that performed the findByPrimaryKey method to A's setSessionContext method, It's Success!!!!!
    what the Problem, i am useing the Borland 's AppServer.
    who can help

    how u create the entity bean B from A?
    using proper lookup?
    can u try by write a small function inside bean A
    that contain proper lookup to Bean B...
    then try to call finbyPrimaryKey...
    now tell me is it working?
    or else can u give code or clear idea..
    if i can help u ,,,, sure i will
    do mail me
    [email protected]

  • A very strange problem in netbeans

    i debug a project in netbeans,a a very strange problem happens.
    a member variable was different between wtk20 and wtk22.and the variable was changed many places so it's hard to trace!
    but there hasn't the problem when i debug project in jbuilderx!

    My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
    adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                                  + "," + "'"
                                  + sf.filter(board.getText()) + "')" );
                                  subject.setText("");
                                  board.setText("");
    where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
    With my best,
    Zike Huang

  • ALV Grid - Very Strange Problem

    I am facing a very strange problem in ALV Grid. Our’s is a ECC5 system on SAP_APPL SAPKH50011 and SAP_BASIS SAPKB64016.
    I have implemented the ALV grid in a screen using classes. This grid by default appears in display mode however it can be switched to change mode and back to display mode using a custom button on the ALV toolbar. When the user clicks the change button the grid appears in editable mode. During the back and forth switching of the ALV between Change/Display modes the ALV grid control is not destroyed however the toolbar, fieldcatalog and ALV contents are refreshed.
    The data which is entered in an editable cell is validated using the data_changed event which has been implemented locally. If the validation fails an error message is raised using the message statement which is being issued correctly. Now when I correct the data and then click on another cell in the ALV grid the program is being aborted. Any clue why this is happening??

    Please check this code
    In the PBO of the screen set the field catalog and layout , i think this will help not to refresh the field catalog every time swtich between display and change mode
        set titlebar sy-dynnr with p_netwk.
        call method g_grid->set_frontend_fieldcatalog
          exporting
            it_fieldcatalog = gt_fieldcat[].
        call method g_grid->set_frontend_layout
          exporting
            is_layout = gs_layout.
        call method g_grid->refresh_table_display.
    2. Regarding program abort, please paste the first page of system dump

  • I have very strange problem with Iphone 3gs. Whenever it gets little hot or exposed to 30 degree temperature it losses signals (No service). Whenever it is cooled down the service is back. Please help!

    I have very strange problem with iphone 3gs. Whenever it gets little hot or exposed to 30 degree or above temperature it losses signals (No service). Whenever it is cooled down the service is back. Whenever I am using Skype or playing game for a while it losses carrier signals and wifi. When it is cooled down afer shutting down the carrier signals and wifi are back. It is for sure problem is with heating, but 30 degree tempeature in Oman is normal and some time it goes upto 50 degrees. I have noticed this has started after I started using substandard charger as I lost my original charger of the phone. Please help!! Thanx.

    The specifications define an operating range up to 35 degrees.

  • Very strange problem / Perpetual command key

    I've been using OS X since its inception, and have never had this problem before.
    Starting yesterday, I noticed a very strange problem that was happening randomly. When I clicked on an app in the dock, it would just reveal the app to me in Finder rather than opening it. Other problems including multiple selections when single-clicking on items with my mouse, and not being able to type. After some fidgeting, I realized that my iMac is acting like I'm always holding down the command (apple) key. If I have a window open, for instance, pressing the H (just by itself) key will hide the window. Pressing Q will quit whatever is active.
    I shut down, restarted, plugged in a different keyboard, used a different mouse, unplugged all my periphs, deleted all haxies and their attached files, and it still happened. I unplugged my 2nd monitor, and that seemed to fix it after another restart... but then I plugged in my 2nd monitor again and restarted, and now everything is fine. It's just happening randomly. I'm afraid to restart my Mac now. This is really bizarre!!!
    Someone please help!

    If it's any help, it started right after the following:
    When booted to Vista one night, I noticed ghosting on my nice new iMac screen which kinda irked me. I could see the menubar with the Spotlight menu icon burned into the screen.
    So when I got back into OS X I looked for a menubar hider. I tried Menushade and Menufela, both of which are quite old... probably before any mention of an Intel switch had ever occurred.
    But now I had a problem... no clock. So I went ahead and downloaded Yahoo! Widget Engine (aka Konfabulator). I know, I know... what a crazy workaround just to hide the menubar (this is why it would be GREAT if Apple would build in its own menubar hider option!)
    Anyway, this stuff started happening, so I deleted all of those apps (Menufela, Menushade, and Yahoo Widget Engine) with AppZapper (a great little app).
    Ugh... this is what you get for experimenting with homegrown apps, I guess.
    Anyway, hope that helps.

  • A very strange problem in microsoft access

    Hi all,
    Recently I wrote a simple java application which use microsoft access as the database. I connect the database sucessfully and I've even done the regular expression to filter the invalid text characters, everything works fine util I do the following SQL:
    insert into test values 'client for updates'
    Here test is my table name
    I found this perticular string 'clent for updates' is very strange, it can't be inserted into the database, I try 'client for up' or something else, they all work.
    Could anyone tell me what happened?
    With my best,
    Zike Huang(jim)

    My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
    adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                                  + "," + "'"
                                  + sf.filter(board.getText()) + "')" );
                                  subject.setText("");
                                  board.setText("");
    where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
    With my best,
    Zike Huang

  • Please help me with Nokia E71 very strange problem...

    I have Nokia E71_v1, I got lots of strange problem like:
    1- The camera didnt save the images and create the images like this: Name of the image*jpg but I can take videos without a problem.
    2- when I put anything in the memory card or the phone memory it became currpted and then I couldnt open them at all, the message "can open the file" or "file is currpted" appears.
    3- I couldnt install any application to the phone, if I put any sis file on the memory I get "file currpted" message but if I sent it to the phone via bluetooth I could install it.
    4- The name of the folders usually change their name and currpted characters appeard in the folder naming.
    5- When I added any mp3 files to any memory the files are disappeared.
    410.21.010
    RM364
    Noka E71-1 (19)
    please help
    Attachments:
    090620091272.jpg ‏242 KB
    090620091273.jpg ‏299 KB

    You better reset the E71. Dial *#7370# 12345 reformat, you'll lose all data. Make a backup first and restore without the settings. Reformat the card in the phone and remove the card using the menu from the power button. Do not encrypt the card as a test.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Hibernate-very strange problem, help please

    Hi, i got such a strange problem that im sure you ll think im doin crazy talk :) , i dont see why this would happen at all, i have a class called "Package", mapped to a table "package". whenever i do a query on this table using hibernate, even the simplest "find all" kinda of query, hibernate does update on the table b4 doin the query! even more weird, it does the update when the first query on this table happens, it deletes all values of a column (yes only this column); then if i do the same query again, no update at all. however if now i mannuall add those missing values, it does the update again and deletes them! sry its confusing, heres my code and more of wat i done:
    The mapping Package.hbm.xml
    <hibernate-mapping package="tuition.bo">
    <class name="Package" table="package">
    <id name="id" column="study_package_id" type="long">
    <generator class="sequence"/>
    </id>
    <property name="name" column="name" not-null="true"/>
    <property name="satTiming" column="sat_timing" not-null="false"/>
    <property name="satSubjects" column="sat_subjects" not-null="false"/>
    <property name="sunTiming" column="sun_timing" not-null="false"/>
    <property name="sunSubjects" column="sun_subjects" not-null="false"/>
    <set name="classes" inverse="true" cascade="delete-orphan" lazy="true">
    <key column="package_id"/>
    <one-to-many class="Class"/>
    </set>
    </class>
    </hibernate-mapping>
    For example initialy i populated database using hibernate, like this:
    package_id, name, sat_timing, sat_subjects, sun_timing, sun_subjects
    1 no.1 9-12 business 9-12 law
    2 no.2 9-11 business 9-11 law
    Then after i populated this database, i did this query:
    <b>List res=getHibernateTemplate().find("FROM Package");</b>
    and you can see the log file as such: (excerpt)
    16:23:06,687 INFO TransactionFactoryFactory:31 - Using default transaction strategy (direct JDBC transactions)
    16:23:06,703 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    16:23:09,968 DEBUG JDBCTransaction:46 - begin
    16:23:09,968 DEBUG JDBCTransaction:50 - current autocommit status: true
    16:23:09,968 DEBUG JDBCTransaction:52 - disabling autocommit
    <b>16:23:10,640 DEBUG SQL:324 - select</b> studypacka0_.study_package_id as study1_, studypacka0_.name as name12_, studypacka0_.description as descript3_12_, ....... from _3AT_package studypacka0_
    Hibernate: select studypacka0_.study_package_id as study1_, studypacka0_.name as name12_, studypacka0_.description as descript3_12_, studypacka0_.day as day12_, studypacka0_.sat_timing as sat5_12_, studypacka0_.sat_subjects as sat6_12_, .......
    16:23:10,734 DEBUG JDBCTransaction:83 - commit
    <b>16:23:10,796 DEBUG SQL:324 - update</b> _3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
    Hibernate: update _3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
    <b>16:23:10,812 DEBUG SQL:324 - update </b>_3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
    Hibernate: update _3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
    <b>16:23:10,812 DEBUG SQL:324 - update</b> _3AT_package set name=?, description=?,
    16:23:10,953 DEBUG JDBCTransaction:173 - re-enabling autocommit
    16:23:10,953 DEBUG JDBCTransaction:96 - committed JDBC Connection
    as you can see, it does update and changed table field values to this:
    package_id, name, sat_timing, sat_subjects, sun_timing, sun_subjects
    1 no.1 business law
    2 no.2 business law
    ---------- all tiimings are gone. and now if i re-do the same query, there are NO UPDATE operations....howver if i add some values to sat_timing, sun_timing, and re-do the query, very surprisingly, i saw those update operations which delete all timing values again!
    im totally lost... i havent changed any config, this doenst happen to my other classes at all but just this one.... any ideas please! even some thought of what may caused this would be great help! thank you!

    well i got the setters wrong.... being so stupid i am... sry for creating such a long and massy thread.

  • Oracle Forms 6i - very strange problem.

    Dear, good afternoon!
    First, excuse me for bad English writing. I'm still learning, I'm Brazilian ...
    This is my first post, I started working with Oracle Forms and I recently came across a very strange issue, Forms do not know if it works differently than other technologies, but this error left me somewhat surprised.
    Well, see the following situation:
    System / BD Production (Access through VPN)
    System / BD Test (access through VPN)
    System Development (Location) / Test Bank (VPN).
    Access to the environment TEST = OK. As
    - I put the shortcut Oracle 6i forms to the address of *. FMX server through VPN.
    Access to the Production environment = NOT OK. As
    - I put the shortcut Oracle 6i forms to the address of *. FMX server through VPN.
    Note: The application opens, all right. But when choosing a menu form, this form is not loaded on the screen. As the link it was disabled.
    It can be kind of access? NO. For tested with the login of a user that is in place (no access through vpn) and the failure persists. I went to this user my login, and can access it normally.
    Can be connected through VPN? I think NOT, because if the TEST environment would not work.
    In short: When you access the TEST environment, everything works. I can open any form of the system through the menus, but in production, the forms do not open, as if he had called the forms.
    Recalling that the people who are local access normally. As with my login on with it.
    Would anyone answer me what might be happening?
    Thank you in advance!
    Regards,
    Bruno Ambrozio
    Skype: b.ambrozio
    MSN: [email protected]
    GTalk/Mailto: [email protected]

    It can be kind of access? NO. For tested with the login of a user that is in place (no access through vpn) and the failure persists. I went to this user my login, and can access it normally.
    Can be connected through VPN? I think NOT, because if the TEST environment would not work.Test your network with tnsping80 and/or sqlplus first.

  • I have a very strange problem - A can listen on B, but B cannot listen on A

    Hello!
    I have a very disturbing problem.
    I have done a Paint-like program that add Point-objects on the JFrame. This porgram is networked and it contains a thread class that is sending the Point and a thread class that recieves Point objects. That makes it possible to open two instances of the program and when you paint on one of the windows, the program will send the point coordinats through a DatagramPacket to the other window. So, to make this clear, this program has ONE Sending class called Client and ONE Receiving class called Server. So when you want to make a connection, then you have to open two instances of the program.
    So what is the problem?
    Suppose that I have opened two instances of the program. Instance A is sending packets to port 2001 and is listening for packets on port 2000. Instance B is sending packets to port 2000 and is listening for packets on port 2001.
    When I draw a point on Instance A's window, the Instance B is receiving the point and draws the point on its window.
    When I draw a point on Instance B's window, the Instance A is NOT receiving the point. Instance B is listening on itself. That is the problem. Why is instance B listening for packets from itself and why doesn´t A get B's packets when B gets A's packets?
    Here is the send och receive classes (called Client and Server):
    class Client extends Thread
                Point p;
                Client(Point p)          
                     this.p = p;
                public void run()
                     System.out.println("Sending");
                     try
                          InetAddress toHost = InetAddress.getLocalHost();                     
                          int port = 2000;                    
                          DatagramSocket sock = new DatagramSocket();                                                   
                          String message = Integer.toString(p.x) + " " + Integer.toString(p.y);                         
                          byte[] data = message.getBytes();                    
                          DatagramPacket p = new DatagramPacket(data, data.length, toHost, port);     
                          sock.send(p);                                                                                
                     catch(SocketException se){}
                     catch(IOException ioe){}
                     catch(ConcurrentModificationException cme){}
    class Server extends Thread               
                String message;
                String[] xy;
                public void run()
                     System.out.println("Receiving");
                     try
                          byte[] data = new byte[8192];
                          DatagramPacket packet = new DatagramPacket(data, data.length);
                          DatagramSocket sock = new DatagramSocket(2001);
                          while(true)     
                               sock.receive(packet);                                                                                            
                               message = new String(packet.getData(), 0, packet.getLength());                                          
                               xy = message.split(" ");                                                                 
                               Point p = new Point(Integer.parseInt(xy[0]), Integer.parseInt(xy[1]));          
                               addPoint(p);                                                                                               
                     catch(SocketException se){}
                     catch(IOException ioe){}
                     catch(ConcurrentModificationException cme){}
      }I have tried to solve this for hours but I have not found any solution.
    Please, help!

    Here is an executable example.
    1. To run the first instance: Compile the code and run the application and note that it is listening on port 2000 and sending through port 2001
    2. To run the second instance: Change the ServerSocket to listen on port 2001 and the DatagramSocket to send through port 2000 and compile and run the application.
    3. Tell me this: Why does the first instance listen from DatagramPackets from itself and not from the other running instance while the other running instance is listening for DatagramPackets sent from the first instance? The one who can give me the answer will be the man of the month.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.lang.Thread;
    import java.net.*;
    import java.net.DatagramPacket;
    import java.io.*;
    public class Paint extends JFrame
         private Board b = new Board();
         public static void main(String[] args)
              new Paint();
           public Paint()
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              getContentPane().add(b, BorderLayout.CENTER);
              addKeyListener(new ChangeSizeListener());
              setSize(300, 300);
              setVisible(true);
              setFocusable(true);
           class ChangeSizeListener extends KeyAdapter
              Board b = new Board();
              public void keyPressed(KeyEvent e)
                   if(KeyEvent.getKeyText(e.getKeyCode()).equalsIgnoreCase("s"))
                        try
                               int size = Integer.parseInt(JOptionPane.showInputDialog(null, "New size:", "Size", 3));
                               b.setSize(size);
                        }catch(NumberFormatException nfe){}
    class Board extends JPanel
         Point p;
           private HashSet hs = new HashSet();
           int size_x;
           int size_y;
              public Board()
                   size_x = 20;
                   size_y = 20;
                   setFocusable(true);
                   setBackground(Color.white);
                   addMouseListener(new L1());
                   addMouseMotionListener(new L2());
                   Server s = new Server();
                   s.start();
              public void paintComponent(Graphics g)
                   super.paintComponent(g);
                   g.setColor(Color.black);
                   Iterator i = hs.iterator();
                   while(i.hasNext())
                     p = (Point)i.next();
                     g.fillOval(p.x, p.y, size_x, size_y);
             private void addPoint(Point p)
                   hs.add(p);
                   repaint();
             public void setSize(int size)
                    this.size_x = size;
                    this.size_y = size;
                    repaint();
           class L1 extends MouseAdapter
                public void mousePressed(MouseEvent me)
                    Client c = new Client(me.getPoint());
                     addPoint(me.getPoint());
                      c.start();
           class L2 extends MouseMotionAdapter
                public void mouseDragged(MouseEvent me)
                     Client c = new Client(me.getPoint());
                      addPoint(me.getPoint());
                      c.start();
           class Client extends Thread
                Point p;
                Client(Point p)
                     this.p = p;
                public void run()
                     System.out.println("Sending");
                     try
                          InetAddress toHost = InetAddress.getLocalHost();
                          int port = 2000;                 // After running a first instance of the application, change the port to listen on 2001
                          DatagramSocket sock = new DatagramSocket();
                          String message = Integer.toString(p.x) + " " + Integer.toString(p.y);
                          byte[] data = message.getBytes();
                          DatagramPacket p = new DatagramPacket(data, data.length, toHost, port);
                          sock.send(p);
                     catch(SocketException se){}
                     catch(IOException ioe){}
                     catch(ConcurrentModificationException cme){}
           class Server extends Thread
                String message;
                String[] xy;
                public void run()
                     System.out.println("Receiving");
                     try
                          byte[] data = new byte[8192];
                          DatagramPacket packet = new DatagramPacket(data, data.length);
                          DatagramSocket sock = new DatagramSocket(2001);              // After running a first instance of the application, change the DatagramSocket to listen on port 2000
                          while(true)
                             sock.receive(packet);
                             message = new String(packet.getData(), 0, packet.getLength());
                             xy = message.split(" ");
                             Point p = new Point(Integer.parseInt(xy[0]), Integer.parseInt(xy[1]));
                             addPoint(p);
                     catch(SocketException se){}
                     catch(IOException ioe){}
                     catch(ConcurrentModificationException cme){}
    }

  • [Mysql-Connector] A very strange problem !

    Hi everybody!
    Ready to hear a strange story ?
    I have a weird problem to use the MySQL-connector under Linux (Debian).
    I have no problem in windows XP, all is working fine !
    But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message :
    Message: Invalid authorization specification message from server: "Access denied for user 'root'@'monkinetwork' (using password: YES)"
    SQLState: 28000
    ErrorCode: 1045 Here the software I'm using :
    Tomcat 5.0.28
    MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar
    JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK.
    MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode !
    Here's My Servlet TESt1.java:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.sql.DriverManager;
    public class TEST1 extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException  {
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
       String url = "jdbc:mysql://localhost:3306/HeroDB";
       String user = "root";
       String password = "password";
    try{
        Class.forName("com.mysql.jdbc.Driver");
        out.println("<br> DRIVERS JDBC : OK!");
        Connection connection = DriverManager.getConnection(url,user,password);
        out.println("<br> Database connection : OK!");
    catch (ClassNotFoundException e)
             out.println("Error with JDBC Drivers !");
    catch(SQLException ex) {
            out.println("<br> ERROR MESSAGE <br>");
       while (ex != null) {
                    out.println("<br>Message: " + ex.getMessage ());
                    out.println("<br>SQLState: "  + ex.getSQLState ());
                    out.println("<br>ErrorCode: "  + ex.getErrorCode ());
                    ex = ex.getNextException();
          out.println("");
    AND THE HTML PAGE in order to access to the Servlet :
    <HTML>
    <HEAD>
    <TITLE>DataBase Test</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H2 ALIGN="CENTER">DataBase TEST</H2>
    <FORM ACTION="http://localhost:8080/TEST1">
    <CENTER>
    <INPUT TYPE="SUBMIT" VALUE = "CONNEXION TEST">
    </CENTER>
    </FORM>
    </BODY>
    </HTML>
    Theses codes works very well under windows, but under linux system here what I've got :
    DRIVERS JDBC : OK!
    ERROR MESSAGE
    Message: Invalid authorization specification message from server: "Access denied for user 'root'@'monkinetwork' (using password: YES)"
    SQLState: 28000
    ErrorCode: 1045 Well, the web.xml file is well configured.
    Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error !
    By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat.
    Any suggestions please , because it's giving me a very hard time ! ?
    Thank you !
    ++
    maki

    MySQL does authentication based on usernames and hosts. See http://dev.mysql.com/doc/mysql/en/connection-access.html

Maybe you are looking for