diff --git a/android/Pubnub-Android-3.5.5.jar b/android/Pubnub-Android-3.5.5.jar index e0b84bfa6..0e8e9a434 100644 Binary files a/android/Pubnub-Android-3.5.5.jar and b/android/Pubnub-Android-3.5.5.jar differ diff --git a/android/examples/PubnubExample/libs/Pubnub-Android-3.5.5.jar b/android/examples/PubnubExample/libs/Pubnub-Android-3.5.5.jar index e0b84bfa6..0e8e9a434 100644 Binary files a/android/examples/PubnubExample/libs/Pubnub-Android-3.5.5.jar and b/android/examples/PubnubExample/libs/Pubnub-Android-3.5.5.jar differ diff --git a/android/examples/SubscribeAtBoot/libs/Pubnub-Android-3.5.5.jar b/android/examples/SubscribeAtBoot/libs/Pubnub-Android-3.5.5.jar index e0b84bfa6..0e8e9a434 100644 Binary files a/android/examples/SubscribeAtBoot/libs/Pubnub-Android-3.5.5.jar and b/android/examples/SubscribeAtBoot/libs/Pubnub-Android-3.5.5.jar differ diff --git a/blackberry/Pubnub-BlackBerry-3.5.5.jar b/blackberry/Pubnub-BlackBerry-3.5.5.jar index b3012cbbb..a83f45af9 100644 Binary files a/blackberry/Pubnub-BlackBerry-3.5.5.jar and b/blackberry/Pubnub-BlackBerry-3.5.5.jar differ diff --git a/codenameone/Pubnub-CodeNameOne-3.5.5.cn1lib b/codenameone/Pubnub-CodeNameOne-3.5.5.cn1lib index 520d1196b..dec722523 100644 Binary files a/codenameone/Pubnub-CodeNameOne-3.5.5.cn1lib and b/codenameone/Pubnub-CodeNameOne-3.5.5.cn1lib differ diff --git a/codenameone/Pubnub-CodeNameOne-Debug-3.5.5.cn1lib b/codenameone/Pubnub-CodeNameOne-Debug-3.5.5.cn1lib index 7e42b01c7..2499f5502 100644 Binary files a/codenameone/Pubnub-CodeNameOne-Debug-3.5.5.cn1lib and b/codenameone/Pubnub-CodeNameOne-Debug-3.5.5.cn1lib differ diff --git a/j2me/Pubnub-MicroEdition-3.5.5.jar b/j2me/Pubnub-MicroEdition-3.5.5.jar index 181a73c4f..f18a7354e 100644 Binary files a/j2me/Pubnub-MicroEdition-3.5.5.jar and b/j2me/Pubnub-MicroEdition-3.5.5.jar differ diff --git a/j2me/Pubnub-MicroEdition-Debug-3.5.5.jar b/j2me/Pubnub-MicroEdition-Debug-3.5.5.jar index 974a7f5b2..b9ad6a7da 100644 Binary files a/j2me/Pubnub-MicroEdition-Debug-3.5.5.jar and b/j2me/Pubnub-MicroEdition-Debug-3.5.5.jar differ diff --git a/java/Pubnub-StandardEdition-3.5.5.jar b/java/Pubnub-StandardEdition-3.5.5.jar index 102fbe072..1f424ba34 100644 Binary files a/java/Pubnub-StandardEdition-3.5.5.jar and b/java/Pubnub-StandardEdition-3.5.5.jar differ diff --git a/java/Pubnub-StandardEdition-Debug-3.5.5.jar b/java/Pubnub-StandardEdition-Debug-3.5.5.jar index f4ae22e3e..c8d3461ea 100644 Binary files a/java/Pubnub-StandardEdition-Debug-3.5.5.jar and b/java/Pubnub-StandardEdition-Debug-3.5.5.jar differ diff --git a/java/doc/allclasses-frame.html b/java/doc/allclasses-frame.html index 9f642ef2a..05db689c3 100644 --- a/java/doc/allclasses-frame.html +++ b/java/doc/allclasses-frame.html @@ -2,12 +2,12 @@ - + All Classes - + diff --git a/java/doc/allclasses-noframe.html b/java/doc/allclasses-noframe.html index dd8a96b18..06a879c4e 100644 --- a/java/doc/allclasses-noframe.html +++ b/java/doc/allclasses-noframe.html @@ -2,12 +2,12 @@ - + All Classes - + diff --git a/java/doc/com/pubnub/api/Callback.html b/java/doc/com/pubnub/api/Callback.html index f13d45a9c..213887cb0 100644 --- a/java/doc/com/pubnub/api/Callback.html +++ b/java/doc/com/pubnub/api/Callback.html @@ -2,12 +2,12 @@ - + Callback - + diff --git a/java/doc/com/pubnub/api/HttpUtil.html b/java/doc/com/pubnub/api/HttpUtil.html index 4d2682d7f..c8252122c 100644 --- a/java/doc/com/pubnub/api/HttpUtil.html +++ b/java/doc/com/pubnub/api/HttpUtil.html @@ -2,12 +2,12 @@ - + HttpUtil - + diff --git a/java/doc/com/pubnub/api/Pubnub.html b/java/doc/com/pubnub/api/Pubnub.html index db35e892b..6ba94eb29 100644 --- a/java/doc/com/pubnub/api/Pubnub.html +++ b/java/doc/com/pubnub/api/Pubnub.html @@ -2,12 +2,12 @@ - + Pubnub - + diff --git a/java/doc/com/pubnub/api/PubnubError.html b/java/doc/com/pubnub/api/PubnubError.html index 4e3b42a9f..0b8e2b676 100644 --- a/java/doc/com/pubnub/api/PubnubError.html +++ b/java/doc/com/pubnub/api/PubnubError.html @@ -2,12 +2,12 @@ - + PubnubError - + @@ -210,6 +210,14 @@

static int +PNERR_HTTP_RC_ERROR + +
+            + + + +static int PNERR_INVALID_JSON
@@ -548,6 +556,16 @@


+

+PNERR_HTTP_RC_ERROR

+
+public static final int PNERR_HTTP_RC_ERROR
+
+
+
See Also:
Constant Field Values
+
+
+

errorCode

diff --git a/java/doc/com/pubnub/api/PubnubException.html b/java/doc/com/pubnub/api/PubnubException.html
index 2837b999a..728cef82c 100644
--- a/java/doc/com/pubnub/api/PubnubException.html
+++ b/java/doc/com/pubnub/api/PubnubException.html
@@ -2,12 +2,12 @@
 
 
 
-
+
 
 PubnubException
 
 
-
+
 
 
 
diff --git a/java/doc/com/pubnub/api/PubnubUtil.html b/java/doc/com/pubnub/api/PubnubUtil.html
index 3a35291b1..890e824d1 100644
--- a/java/doc/com/pubnub/api/PubnubUtil.html
+++ b/java/doc/com/pubnub/api/PubnubUtil.html
@@ -2,12 +2,12 @@
 
 
 
-
+
 
 PubnubUtil
 
 
-
+
 
 
 
diff --git a/java/doc/com/pubnub/api/package-frame.html b/java/doc/com/pubnub/api/package-frame.html
index 85ace0cff..1d9b831a5 100644
--- a/java/doc/com/pubnub/api/package-frame.html
+++ b/java/doc/com/pubnub/api/package-frame.html
@@ -2,12 +2,12 @@
 
 
 
-
+
 
 com.pubnub.api
 
 
-
+
 
 
 
diff --git a/java/doc/com/pubnub/api/package-summary.html b/java/doc/com/pubnub/api/package-summary.html
index 889ac4ce6..e16e928d3 100644
--- a/java/doc/com/pubnub/api/package-summary.html
+++ b/java/doc/com/pubnub/api/package-summary.html
@@ -2,12 +2,12 @@
 
 
 
-
+
 
 com.pubnub.api
 
 
-
+
 
 
 
diff --git a/java/doc/com/pubnub/api/package-tree.html b/java/doc/com/pubnub/api/package-tree.html
index 92c0f95a7..5df1b41b7 100644
--- a/java/doc/com/pubnub/api/package-tree.html
+++ b/java/doc/com/pubnub/api/package-tree.html
@@ -2,12 +2,12 @@
 
 
 
-
+
 
 com.pubnub.api Class Hierarchy
 
 
-
+
 
 
 
diff --git a/java/doc/constant-values.html b/java/doc/constant-values.html
index e86db3ab7..401603a51 100644
--- a/java/doc/constant-values.html
+++ b/java/doc/constant-values.html
@@ -2,12 +2,12 @@
 
 
 
-
+
 
 Constant Field Values
 
 
-
+
 
 
 
@@ -233,6 +233,12 @@ 

103 + +public static final int +PNERR_HTTP_RC_ERROR +128 + + public static final int PNERR_INVALID_JSON diff --git a/java/doc/deprecated-list.html b/java/doc/deprecated-list.html index 03e6c1258..82cdf59cb 100644 --- a/java/doc/deprecated-list.html +++ b/java/doc/deprecated-list.html @@ -2,12 +2,12 @@ - + Deprecated List - + diff --git a/java/doc/help-doc.html b/java/doc/help-doc.html index 831a76e75..805870865 100644 --- a/java/doc/help-doc.html +++ b/java/doc/help-doc.html @@ -2,12 +2,12 @@ - + API Help - + diff --git a/java/doc/index-all.html b/java/doc/index-all.html index c26d430ce..693e85f45 100644 --- a/java/doc/index-all.html +++ b/java/doc/index-all.html @@ -2,12 +2,12 @@ - + Index - + @@ -303,6 +303,9 @@
PNERR_HTTP_ERROR - Static variable in class com.pubnub.api.PubnubError
Please check network connectivity. +
PNERR_HTTP_RC_ERROR - +Static variable in class com.pubnub.api.PubnubError +
 
PNERR_INVALID_JSON - Static variable in class com.pubnub.api.PubnubError
Invalid Json . diff --git a/java/doc/index.html b/java/doc/index.html index 7df6f3997..a657fba30 100644 --- a/java/doc/index.html +++ b/java/doc/index.html @@ -2,7 +2,7 @@ - + Generated Documentation (Untitled) diff --git a/java/doc/overview-tree.html b/java/doc/overview-tree.html index 3dc00b1d7..b212e180e 100644 --- a/java/doc/overview-tree.html +++ b/java/doc/overview-tree.html @@ -2,12 +2,12 @@ - + Class Hierarchy - + diff --git a/java/doc/serialized-form.html b/java/doc/serialized-form.html index 94405747d..a77a03165 100644 --- a/java/doc/serialized-form.html +++ b/java/doc/serialized-form.html @@ -2,12 +2,12 @@ - + Serialized Form - + diff --git a/java/jars/Pubnub-UnitTests-3.5.5.jar b/java/jars/Pubnub-UnitTests-3.5.5.jar index 5dd58b89b..b3b573f62 100644 Binary files a/java/jars/Pubnub-UnitTests-3.5.5.jar and b/java/jars/Pubnub-UnitTests-3.5.5.jar differ diff --git a/java/jars/PubnubDemoConsole.jar b/java/jars/PubnubDemoConsole.jar index 0ad27e5dd..eb3895607 100644 Binary files a/java/jars/PubnubDemoConsole.jar and b/java/jars/PubnubDemoConsole.jar differ diff --git a/java/jars/PubnubExample.jar b/java/jars/PubnubExample.jar index e8360c9e8..711e787c7 100644 Binary files a/java/jars/PubnubExample.jar and b/java/jars/PubnubExample.jar differ diff --git a/java/src1/com/pubnub/api/HttpClientCore.java b/java/src1/com/pubnub/api/HttpClientCore.java index 9eb1f678d..473ac8ba7 100644 --- a/java/src1/com/pubnub/api/HttpClientCore.java +++ b/java/src1/com/pubnub/api/HttpClientCore.java @@ -134,7 +134,10 @@ public synchronized HttpResponse fetch(String url, Hashtable headers) int rc = HttpURLConnection.HTTP_INTERNAL_ERROR; try { rc = connection.getResponseCode(); - } catch (IOException e) { + } catch (SocketTimeoutException ste) { + throw ste; + } + catch (IOException e) { throw new PubnubException(getErrorObject(PNERROBJ_HTTP_RC_ERROR, url + " : " + e.toString())); } diff --git a/java/src1/com/pubnub/api/SubscribeWorker.java b/java/src1/com/pubnub/api/SubscribeWorker.java index d0e338ba6..5251098c0 100644 --- a/java/src1/com/pubnub/api/SubscribeWorker.java +++ b/java/src1/com/pubnub/api/SubscribeWorker.java @@ -40,8 +40,8 @@ void process(HttpRequest hreq) { Thread.sleep(retryInterval); } catch (InterruptedException e) { } - sleep = true; } + sleep = true; try { log.debug(hreq.getUrl()); hresp = httpclient.fetch(hreq.getUrl(), hreq.getHeaders()); diff --git a/java/srcPubnubApi/com/pubnub/api/PubnubError.java b/java/srcPubnubApi/com/pubnub/api/PubnubError.java index 9e85e542d..ddaca2b26 100644 --- a/java/srcPubnubApi/com/pubnub/api/PubnubError.java +++ b/java/srcPubnubApi/com/pubnub/api/PubnubError.java @@ -175,7 +175,7 @@ public class PubnubError { static final int PNERR_BAD_REQUEST = 127; - static final int PNERR_HTTP_RC_ERROR = 128; + public static final int PNERR_HTTP_RC_ERROR = 128;