{"id":1297,"date":"2022-08-30T15:15:21","date_gmt":"2022-08-30T15:15:21","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/10\/the-bufferdir-connection-property-is-invalid-error-in-java-applets-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:15:21","modified_gmt":"2022-08-30T15:15:21","slug":"the-bufferdir-connection-property-is-invalid-error-in-java-applets-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/the-bufferdir-connection-property-is-invalid-error-in-java-applets-collection-of-common-programming-errors\/","title":{"rendered":"The BUFFERDIR connection property is invalid Error in Java Applets-Collection of common programming errors"},"content":{"rendered":"<p>My intranet web application uses Java applets to connect to database. When one of the users tries to use the application the following error:<\/p>\n<pre><code>java.sql.SQLException: The BUFFERDIR connection property is invalid. Restart connection.\njava.sql.SQLException: The BUFFERDIR connection property is invalid.\nat net.sourceforge.jtds.jdbc.ConnectionJDBC2.unpackProperties(ConnectionJDBC2.java:1241)\nat net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:269)\nat net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)\nat net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)\nat java.sql.DriverManager.getConnection(Unknown Source)\nat java.sql.DriverManager.getConnection(Unknown Source)\nat applet.DataObj$3.run(DataObj.java:1210)\nat java.security.AccessController.doPrivileged(Native Method)\nat DataObj.doQuery(DataObj.java:1186)\nat DataObj.go(DataObj.java:1068)\nat DataObj$dataThreadclass.run(DataObj.java:1574)\n<\/code><\/pre>\n<p>The problem seems to be happening for only one of the users so this could be a system\/desktop level settings issue. The application employs Java 1.6 and jtDs to connecto DB.<\/p>\n<p>Thanks in advance.<\/p>\n<p>AccessController.doPrivileged(new PrivilegedAction() {<\/p>\n<p>public Object run() {<\/p>\n<pre><code>try{\n\n    if (con != null){\n\n        con = null;}\n\n    DriverManager.setLoginTimeout(timeout);\n\n    DriverManager.setLoginTimeout(gettimeout());\n\n    StringBuffer sTempUrl = new StringBuffer();\n\n    sTempUrl.append(getUrl()).\n\n         append(\";user=\").append(getUid()).\n\n\n         append(\";password=\").append(getPass())\n\n         append(\";loginTimeout=0;\");        \n\n    if (DBTYPE_SQL_SERVER.equals(sDbType)){\n\n        sTempUrl.append(\";instance=\").append(getInstance());}                       \n\n    con = DriverManager.getConnection(sTempUrl.toString());\n\n    stmt = con.createStatement();\n\n    stmt.execute(\"set quoted_identifier off\");\n\n    stmt.setQueryTimeout(gettimeout());\n\n                }\n<\/code><\/pre>\n<p>con = DriverManager.getConnection(sTempUrl.toString()); is line 1210<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-10 00:15:06. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>My intranet web application uses Java applets to connect to database. When one of the users tries to use the application the following error: java.sql.SQLException: The BUFFERDIR connection property is invalid. Restart connection. java.sql.SQLException: The BUFFERDIR connection property is invalid. at net.sourceforge.jtds.jdbc.ConnectionJDBC2.unpackProperties(ConnectionJDBC2.java:1241) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:269) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50) at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1297","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1297"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1297\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}