Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3336420
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:07:59+00:00 2026-05-18T00:07:59+00:00

we’re programming a software for economic calculation. We use Java 6, the Swing Application

  • 0

we’re programming a software for economic calculation. We use Java 6, the Swing Application Framework, MySQL 5.1, JDBC and Hibernate (JDBC is just for an initial connection-test).
We deployed that application on a Windows XP machine. As long as a user with administrator-privileges is running the application, it works just fine. If a user with restricted rights is trying to run it, we get an exception.

We tried to deactivate windows firewall and faced the same problem (administrator has firewall activated too!). Next we tried to reconstruct the situation at one of our computers and were not able to do so, the application runs just fine.

Our research in the internet wasn’t successful, because in this case it is a very rare situation. Below is the code where the exception gets thrown and the stacktrace.

/**
  * Testet ob eine Verbindung zu der Datenbank mit den Werten aus der Properties-Datei
  * möglich ist.
  * @return true, falls die Verbindung zustande kommt
  */
public boolean testConnection(Properties props) {
    Connection conn = null;
    try {
        Class.forName(props.getProperty(SystemParameterModel.HIBERNATE_CONNECTION_DRIVER_CLASS_KEY)).newInstance();
        System.out.println("Driver: " + props.getProperty(HIBERNATE_CONNECTION_DRIVER_CLASS_KEY));
        System.out.println("URL:    " + props.getProperty(HIBERNATE_CONNECTION_URL));
        System.out.println("User:   " + props.getProperty(HIBERNATE_CONNECTION_USER_KEY));
        System.out.println("Pass:   " + props.getProperty(HIBERNATE_CONNECTION_PASSWORD_KEY));
        conn = DriverManager.getConnection(
                props.getProperty(HIBERNATE_CONNECTION_URL),
                props.getProperty(HIBERNATE_CONNECTION_USER_KEY),
                props.getProperty(HIBERNATE_CONNECTION_PASSWORD_KEY));
    } catch (SQLException ex) {
        System.out.println(ex.getLocalizedMessage());
        ex.printStackTrace();
        return false;
    } catch (Exception ex) {
        System.out.println(ex.getLocalizedMessage());
        ex.printStackTrace();
        return false;
    }
    try {
        conn.close();
    } catch (SQLException ex) {
        System.out.println("whateves..." + ex.getMessage());
    }
    return true;
}

And the Stacktrace:

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java.lang.reflect.Constructor.newInstance(Unknown Source)
 at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
 at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
 at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
 at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
 at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
 at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
 at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java.lang.reflect.Constructor.newInstance(Unknown Source)
 at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
 at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
 at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
 at java.sql.DriverManager.getConnection(Unknown Source)
 at java.sql.DriverManager.getConnection(Unknown Source)
 at com.sgp.mybe.calc.model.SystemParameterModel.testConnection(SystemParameterModel.java:153)
 at com.sgp.mybe.calc.dao.InitEntityManagerFactory.loadEMF(InitEntityManagerFactory.java:61)
 at com.sgp.mybe.calc.dao.InitEntityManagerFactory.<clinit>(InitEntityManagerFactory.java:31)
 at com.sgp.mybe.calc.dao.DaoFactory.getAttributeDao(DaoFactory.java:18)
 at com.sgp.mybe.calc.model.ValidationAttributeModel.<init>(ValidationAttributeModel.java:24)
 at com.sgp.mybe.calc.model.CalcDetailModel.<init>(CalcDetailModel.java:36)
 at com.sgp.mybe.calc.main.MybeCalcApplication.startup(MybeCalcApplication.java:46)
 at org.jdesktop.application.Application$1.run(Application.java:171)
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.net.SocketException: Malformed reply from SOCKS server
 at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at java.net.Socket.<init>(Unknown Source)
 at java.net.Socket.<init>(Unknown Source)
 at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
 at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
 ... 29 more

The properties are right, there’s no doubt.

I hope someone can help me out, because this problem is driving me mad. Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:07:59+00:00Added an answer on May 18, 2026 at 12:07 am

    The problem is solved. The customer missinformed us about the proxy-settings in the local network, which produced the exception.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.