Commit Graph

479 Commits

Author SHA1 Message Date
Roger Meier
5f841dff8b THRIFT-2660 Validate the bytes received in TSaslTransport
fix unit test

Client: Java
Patch: Harsh J
2014-08-13 12:54:53 +02:00
Roger Meier
c983250355 THRIFT-2660 Validate the bytes received in TSaslTransport
Client: Java
Patch: Harsh J
2014-08-13 12:36:42 +02:00
Roger Meier
7fd06407a0 THRIFT-2649 TAsyncClientManager leaks the selector
Client: Java
Patch: Roelof Naude
Signed-off-by: Roger Meier <roger@apache.org>
2014-08-07 14:36:49 +02:00
Charles O'Farrell
57e68b2500 THRIFT-2643 Introduce additional deserialize() variant with offset/length 2014-08-01 18:09:38 +10:00
Roger Meier
54c0d2e8e7 THRIFT-2122 NPE in TSSLTransportFactory.createClient when no truststore password is passed in custom SSL params
Client: Java
Patch: Venki Korukanti
2014-07-26 00:37:44 +02:00
Roger Meier
fcd062d6ce THRIFT-2173 Move FrameBuffer creation to a factory method for cusomization
Client: Java
Patch: Eric Newton
2014-07-25 23:40:27 +02:00
Roger Meier
84d1188842 THRIFT-2637 "java:fullcamel_service_methods" option to automatically camel-case Java service methods
Patch: Tom Lee
2014-07-25 23:26:11 +02:00
Roger Meier
dfdc0088a7 THRIFT-1944 Binding to zero port
Client: Java
Patch: Eric Newton
2014-07-24 23:40:38 +02:00
Jens Geyer
9a93fe07ff THRIFT-2612 Java TCompactProtocol.readBinary zero copying
Client: Java
Patch: Jon Hoffman
2014-07-14 22:39:46 +02:00
jfarrell
8fd8c6366d THRIFT-2602:Fix missing dist files
Client: build process
Patch: jfarrell

Add all missing files to the dist package.
2014-07-10 09:14:51 -04:00
Roger Meier
cd9dd515bb THRIFT-2572 Add string/collection length limit checks (from C++) to java protocol readers
Client: Java

This closes #138

Patch: Andrew Cox
2014-06-11 14:15:21 +02:00
Roger Meier
5c976038f9 THRIFT-2469 "java:fullcamel" option to automatically camel-case underscored attribute names
add missing TestFullCamel.java

Client: Java
Patch: Tom Lee
2014-05-30 00:18:50 +02:00
Roger Meier
e86428c6b0 THRIFT-2469 "java:fullcamel" option to automatically camel-case underscored attribute names
Client: Java
Patch: Tom Lee
2014-05-30 00:17:12 +02:00
Roger Meier
80a44f84fb THRIFT-2551 OutOfMemoryError "unable to create new native thread" kills serve thread
Github Pull Request: This closes #112

Patch: Fuud
2014-05-29 16:25:22 +02:00
Roger Meier
97243a73ea THRIFT-2239 Address FindBugs errors
Client: Java
Patch: Liang Xie
2014-05-28 14:19:09 +02:00
jfarrell
816790b18d Thrift-2535:TJSONProtocol when serialized yields TField ids rather than names
Adds ability to optionally serialize TJSONProtocol with TField names
2014-05-15 23:25:46 -04:00
Jens Geyer
6d1a83aa48 THRIFT-2506 Update TProtocolException error codes to be used consistently throughout the library
Patch: Jens Geyer
2014-05-03 00:49:05 +02:00
henrique
d17f1c98e6 THRIFT-847 Test Framework harmonization across all languages
cross test speed up from 30min to 6
2014-04-30 16:36:31 +02:00
Roger Meier
a6415bc985 THRIFT-2325: SSL test certificates
CN for servername was ssltest instead of localhost
+ little update of README.md

Patch: Roger Meier
2014-04-07 23:45:19 +02:00
jfarrell
bdbf428365 THRIFT-2402: byte count of FrameBuffer in AWAITING_CLOSE state is not subtracted from readBufferBytesAllocated
Client: java
Patch: jfarrell

Addresses issue where changeSelectInterests would cause close() to occur in the AWAITING_CLOSE state and readBufferBytesAllocated was never called
2014-04-04 13:09:32 -04:00
jfarrell
607355e1de THRIFT-2268:Modify TSaslTransport to ignore TCP health checks from loadbalancers
Client: java
Patch: Thiruvel Thirumoolan

Adds a TSaslTransportException to be able to catch and ignore invalid Sasl headers
2014-04-04 12:07:25 -04:00
jfarrell
6b1027183c THRIFT-1868:Make the TPC backlog configurable in the Java servers
Client: java
Patch: Jean-Daniel Cryans

Makes TServerSocket backlog configurable.
2014-04-04 11:34:42 -04:00
henrique
d7902bf19d THRIFT-2368 New option: reuse-objects for Java generator
Patch: adam-aph
2014-03-31 16:21:37 +02:00
Roger Meier
16fcad0b25 THRIFT-2407 use markdown (rename README => README.md)
Patch: Roger Meier
2014-03-19 06:47:47 +01:00
jfarrell
98d9ef2bd6 THRIFT-2328: Java eliminate all compiler warnings
Client: java
Patch: jfarrell

reverting previous patch for 0.9.1 and will suppress individually or address for 1.0
2014-02-23 22:56:58 -05:00
Roger Meier
48555c5d1f THRIFT-2325 SSL-test-certificates.patch
Java test suite use keys and certs from test/keys/

Patch: Roger Meier
2014-02-22 20:05:21 +01:00
jfarrell
567df43e80 THRIFT-2328: Java eliminate all compiler warnings
Client: Java
Patch: jfarrell

removes lint check for unchecked casts.
2014-02-21 20:15:16 -05:00
Roger Meier
213ea258de THRIFT-1457 java: Capacity of TframedTransport write buffer is never reset
Patch: Arthur Meyer
2014-02-06 23:41:37 +01:00
Roger Meier
194f0114c2 THRIFT-2108 java: Fix TAsyncClientManager timeout race
Patch: Vadim Spivak
2014-01-22 00:10:31 +01:00
Jens Geyer
77369a0ecd THRIFT-2322 Correctly show the number of times ExecutorService (java) has rejected the client.
Patch: Rohit Agarwal & Jens Geyer
2014-01-16 21:36:08 +01:00
Jens Geyer
7975950492 THRIFT-2285 TJsonProtocol implementation for Java/JavaMe/PHP doesn't allow a slash (/) to be escaped (\/)
Patch: Jens Geyer
2013-12-26 18:59:15 +01:00
Roger Meier
53db7cc486 THRIFT-2293 java: TSSLTransportFactory.createSSLContext() leaves files open
Patch: Venura
2013-12-26 15:38:32 +01:00
Roger Meier
4f00134cf9 THRIFT-2274 java: TNonblockingServer and TThreadedSelectorServer do not close their channel selectors on exit and leak file descriptors
Patch:  Thomas Kielbus
2013-12-08 20:59:51 +01:00
Roger Meier
f35975b67f THRIFT-2261 java: error: unmappable character for encoding ASCII
Patch: Roger Meier
2013-11-17 18:30:23 +01:00
Roger Meier
3da1c9025b THRIFT-2260 java: Thrift imposes unneeded dependency on commons-lang3
Patch: Andrew Gaul
2013-11-16 15:37:20 +01:00
jfarrell
38b453be5a THRIFT-2210: lib/java TSimpleJSONProtocol can emit invalid JSON
Client: java
Patch: Alex Levenson

TSimpleJSONProtocol can emit invalid JSON with maps whose keys are not string
2013-09-27 10:11:12 -04:00
jfarrell
2897d4825c THRIFT-2054:TSimpleFileTransport - Java Lib has no straight forward TTransport based file transport
Client: java
Patch: Randy Abernethy

Adds a file transport to java lib.
2013-09-05 09:11:15 -04:00
jfarrell
d9120c9fbd THRIFT-2148:TNonblockingMultiFetchClient imports log4j
Client: java
Patch: jfarrell

Removes import of log4j and switches over to using slf4j.
2013-08-24 09:48:23 -04:00
Carl Yeksigian
c9f4a35c30 THRIFT-1533:Make TTransport should be Closeable
Client: java
Patch: carl
2013-08-21 18:44:48 -04:00
jfarrell
5c1e599dd1 Thrift-2133: java TestTBinaryProtocol.java test failing
Client: java
Patch: jfarrell

Removing unused test after THRIFT-820 changes.
2013-08-17 21:38:31 -04:00
Carl Yeksigian
2ca9c20285 THRIFT-820 Remove readLength attribute from BinaryProtocol
Patch: Carl Yeksigian
2013-08-14 19:38:42 -04:00
jfarrell
0f0558ab1f Thrift-1919:libthrift depends on httpcore-4.1.3 (directly) and httpcore-4.1.4 (transitively)
Client: java
Patch: Jake Farrell

Updates version of httpcore and httpclient
2013-06-21 14:50:31 -05:00
Jake Farrell
89be18365e Thrift-1951:libthrift.jar has source files in it
Client: java
Patch: Jake Farrell

Remove source from libthrift.jar. source dist all ready included in release to central.
2013-06-04 23:22:04 -04:00
Jens Geyer
111d8f2615 Add jensg to dev list 2013-06-03 16:49:55 +02:00
Carl Yeksigian
350860fca3 Add carl to developer list 2013-06-01 22:48:52 -04:00
Jake Luciani
36af4d3b40 THRIFT-1972 Add async server processors to Java
Patch: Jake Luciani
2013-05-16 12:59:50 -04:00
Roger Meier
15522724f6 THRIFT-1034 Java: Add a TNonblockingMultiFetchClient
Patch: Xing Jin
2013-05-12 20:45:13 +02:00
Jake Farrell
0fd47dab1b THRIFT-1956: Switch to Apache Commons Lang 3
Client: java
Patch: Christoffer Sawicki

Updates commons lang from 2.5 to 3.1
2013-05-02 22:51:52 -04:00
Jens Geyer
cac2c5761e THRIFT-563 Support for Multiplexing Services on any Transport, Protocol and Server
Patch: Rob Slifka
Fixes broken build due to previous patch
2013-03-25 01:22:09 +02:00
Roger Meier
9cda78844d THRIFT-1864 java: implement event handler for non-blocking server
Patch: Vitali Lovich
2013-03-24 21:42:35 +01:00
Roger Meier
ce6d1d709a THRIFT-1869 TThreadPoolServer (java) dies when threadpool is consumed
Patch: Brock Noland
2013-03-24 21:26:17 +01:00
Jens Geyer
3661867feb THRIFT-563 Support for Multiplexing Services on any Transport, Protocol and Server
Patch: Rob Slifka
2013-03-24 11:53:31 +02:00
Roger Meier
565517a16c subversion, thanks and good bye
;-r
2013-03-22 21:08:39 +01:00
Roger Meier
7b96b2249a THRIFT-1805 Thrift should not swallow ALL exceptions
Patch: Diwaker Gupta
2013-01-23 20:18:58 +01:00
Roger Meier
f42ce2a8f4 THRIFT-847 Test Framework harmonization across all languages
THRIFT-1595 Java test server should follow the documented behavior as of THRIFT-1590
 Patch: Kamil Salas
2013-01-16 22:12:14 +01:00
Roger Meier
8ebe0d917c THRIFT-1594 Java test clients should have a return codes that reflect whether it succeeds or not.
Patch: Kamil Salas and  Roger Meier
2013-01-06 14:33:39 +01:00
Roger Meier
f089f8ee5f remove unused import 2012-12-27 00:17:39 +01:00
Roger Meier
5d06db63cf THRIFT-1795 Race condition in TThreadedServerPool java implementation
Patch: Venkat Ranganathan
2012-12-23 17:20:20 +01:00
Roger Meier
0193149842 THRIFT-1801 Sync up TApplicationException codes across languages and thrift implementations
Patch: Andrew Cox
2012-12-22 21:31:03 +01:00
Roger Meier
8fa8aeac9a THRIFT-1641 Thrift 0.8 not compatible with Android HttpClient
Patch: Darin Tay
2012-12-22 19:46:28 +01:00
Roger Meier
e242a96ae3 add -Xlint:unchecked to improve quality
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1410065 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 22:23:27 +00:00
Jake Farrell
a0bd523670 Thrift-1728:Upgradation of httpcomponents
Client: java
Patch: Karthik K

Upgrade java version dependencies and moves versioning into build.properties 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1397588 13f79535-47bb-0310-9956-ffa450edef68
2012-10-12 14:44:14 +00:00
Jake Farrell
435e1c4f70 THRIFT-1643:Denial of Service attack in TBinaryProtocol.readString
Client: java
Patch: Niraj Tolia 

In readString, if the string field's size is greater than the number of bytes remaining in the byte array to deserialize, libthrift will happily allocate a byte array of that size in readStringBody, filling the heap.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1397397 13f79535-47bb-0310-9956-ffa450edef68
2012-10-12 00:43:13 +00:00
Jake Farrell
6fcecd45a7 Updating Thrift trunk version to 1.0.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1397293 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 20:34:25 +00:00
Roger Meier
f1ede79211 THRIFT-1643 Denial of Service attack in TBinaryProtocol.readString
Patch: Niraj Tolia
Fix:   add TCompactProtocol maxNetworkBytes


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1396186 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 18:42:16 +00:00
Jake Farrell
e2ef3179b6 Thrift-1693:libthrift has dependency on two different versions of httpcore
Client: java
Patch: Jake Farrell

Update version of httpclient to match httpcore in use in java lib.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1384182 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 01:43:10 +00:00
Bryan Duxbury
630ce09ae6 THRIFT-1655. java: TBinaryProtocol: exceeded message length raises generic TException
This patch converts the TException into a TProtocolException.

Patch: Tyler Hobbs

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1383515 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:33:07 +00:00
Jake Farrell
2853cc0adf Thrift-1658:Java thrift server is not throwing TApplicationException
Client: java
Patch: Keith Turner

Exceptions not being handled correctly within newly modified ProcessFunctions. Added back code previously removed from auto generated class.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1375880 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 02:27:06 +00:00
Jake Farrell
3fcdb09267 Thrift-1652: TSaslTransport does not log the error when kerberos auth fails
Client: java
Patch: Rohini Palaniswamy

The actual kerberos authentication failure is not logged and it is very difficult to find the actual reason for the failure.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1361615 13f79535-47bb-0310-9956-ffa450edef68
2012-07-14 23:56:20 +00:00
Roger Meier
ee22939d1a THRIFT-1608 add license header
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1353313 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 19:07:12 +00:00
Roger Meier
e64b12999d THRIFT-1608 Allow servlet to be supplied TProcessor and TProtocolFactory after the init() method has finished
Patch: Kiril Raychev

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1351848 13f79535-47bb-0310-9956-ffa450edef68
2012-06-19 20:54:51 +00:00
Roger Meier
cefdca6f49 THRIFT-1195 Allow users to act on client connects/disconnects
HIVE-3067 Shutdown HiveMetaStore on client disconnect or timeout
HIVE-3057 metastore.HiveMetaStore$HMSHandler should set the thread local raw store to null in shutdown()

Patch: Dragan Okiljevic

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1346566 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 20:14:14 +00:00
Bryan Duxbury
e25db162a5 THRIFT-1613. Add code back into empty source file ToStringTest.java
Actually, should have just deleted the file.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1343889 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 18:13:39 +00:00
Roger Meier
4cb8e40d8a THRIFT-1612 Base64 encoding is broken
Patch: Andrew Cox

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1343074 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 18:05:16 +00:00
Roger Meier
83042b9078 THRIFT-1613 Add code back into empty source file ToStringTest.java
Patch: Andrew Cox

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1343032 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 10:54:17 +00:00
Jake Farrell
970c86a5f2 Thrift-1607:Incorrect file modes for several source files
Client: build
Patch: Andrew Cox

File modes of some non-script text files (e.g. .xml, .java, .cc) in the source tree include execute permissions (because these files have the svn:executable property).



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339492 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 05:41:09 +00:00
Roger Meier
99b3672530 THRIFT-1588 Java Generated Exceptions don't follow inheritance pattern as other Languages
- fix the build!
- add test/gen-html for ThriftTest.thrift

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1333628 13f79535-47bb-0310-9956-ffa450edef68
2012-05-03 21:21:43 +00:00
Roger Meier
f50df7f2ba THRIFT-1588 Java Generated Exceptions don't follow inheritance pattern as other Languages
Patch: Nathaniel Cook

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1333239 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 22:49:55 +00:00
Roger Meier
95b1bd71e3 THRIFT-1588 Java Generated Exceptions don't follow inheritance pattern as other Languages
- reduce NUM_QUERIES within test for slow machines ;-r

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1332809 13f79535-47bb-0310-9956-ffa450edef68
2012-05-01 20:43:26 +00:00
Jake Farrell
ca620e3788 THRIFT-1429:The nonblocking servers is supposed to use TransportFactory to read the data
Client: Java
Patch: Bryan Duxbury 

Enforce the transport factory on the server-read side as well as on the server-write side



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1296060 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 05:56:03 +00:00
Jake Farrell
4ca8c3b819 THRIFT-1523: clientTimeout not worked as expected in TServerSocket created by TSSLTransportFactory
Client: java
Patch: Alexey Sviridov

Adds server timeout to SSLTransportFactory



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1296053 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 05:22:02 +00:00
Bryan Duxbury
38087708b5 THRIFT-1529. java: TupleProtocol can unintentionally include an extra byte in bit vectors when number of optional fields is an integral of 8
This patch harmonizes the math between writeBitSet and readBitSet to eliminate the mismatch in number of bytes calculation, allowing structs to be serialized correctly.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1295995 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 23:41:09 +00:00
Bryan Duxbury
f85ad51765 THRIFT-1526. java: Union TupleSchemeFactory returns StandardSchemes
This patch makes it return nice, proper TupleSchemes.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294925 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 01:12:27 +00:00
Bryan Duxbury
b405ca6be8 THRIFT-1447. java: NullpointerException in ProcessFunction.class :in 'oneway' method
Patch: Ihor Mysak

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1244272 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 23:35:22 +00:00
Jake Farrell
b2c4952799 Thrift-1465:Visibility of methods in generated java code
Client: java
Patch: Ashutosh Chauhan

Changes visibility of processor getProcessMap() and getEmptyArgs() methods


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236515 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 04:01:54 +00:00
Jake Farrell
100f616afd THRIFT-1498:Allow TThreadedPoolServer.Args to pass a ExecutorService
Client: java
Patch: Scott Chen

Adds ability to assign a ExecutorService from TThreadedPoolServer.Args.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236505 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 03:19:01 +00:00
Roger Meier
6823b6d729 add info on proxy usage
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1235438 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 19:35:09 +00:00
Bryan Duxbury
a3df547c84 THRIFT-317. java: Issues with Java struct validation
Nested structs will now be validated before serialization starts.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1225035 13f79535-47bb-0310-9956-ffa450edef68
2011-12-27 22:26:59 +00:00
Bryan Duxbury
e7bec40882 THRIFT-1468. java: Memory leak in TSaslServerTransport
This patch changes a particular map element to a WeakReference and thus avoids some awkward un-GC-ableness.

Patch: Mithun Radhakrishnan"


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1222397 13f79535-47bb-0310-9956-ffa450edef68
2011-12-22 19:04:16 +00:00
Bryan Duxbury
1e79cb40f5 THRIFT-1469. java: Java isset space optimization
This patch gives the generated code some variable-sized options for the isset bit vector. The compiler will attempt to use byte, short, int and long types before reverting to a BitSet for structs with a LOT of optional fields. This should save a fair amount of memory in a lot of cases.

Patch: Brian Bloniarz

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1221828 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 18:13:29 +00:00
Jake Farrell
f3e48d4a2e THRIFT-1464: AbstractNonblockingServer.FrameBuffer TNonblockingTransport accessor changed from public to private
Client: java
Patch: Jake Farrell

Fixes accessor for TNonblockingTransport in AbstractNonblockingServer.FrameBuffer that was changed from public to private



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1214557 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 23:48:22 +00:00
Jake Farrell
21f8dc900a Thrift-1090: Document the generation of a file called "Constants.java"
Client: java
Patch: Jake Farrell

Fixing test cases left out in initial patch. 


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1210765 13f79535-47bb-0310-9956-ffa450edef68
2011-12-06 03:13:55 +00:00
Jake Farrell
9901069442 Updating trunk to 0.9.0 version.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1208214 13f79535-47bb-0310-9956-ffa450edef68
2011-11-30 02:09:46 +00:00
Jake Farrell
34e1db48db Thrift-184: Add OSGi Manifest headers to the libthrift java library to be able to use Thrift in the OSGi runtime
Client: java
Patch: Jake Farrell

Updated manifest to add OSGI support.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1199047 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 01:39:47 +00:00
Jake Farrell
d889d8ddfa Removing trailing quote in java build.properties file.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198592 13f79535-47bb-0310-9956-ffa450edef68
2011-11-06 23:40:07 +00:00
Bryan Duxbury
df971daf37 THRIFT-1420. java: Nonblocking and HsHa server should make sure to close all their socket connections when the selector exits
This patch makes the selector threads close out all of their open sockets before completely exiting. In testing, this appears to alleviate issues with hanging clients.

Patch: Thomas Kielbus

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1197370 13f79535-47bb-0310-9956-ffa450edef68
2011-11-04 00:23:30 +00:00
Bryan Duxbury
e7bdf70dab THRIFT-1419. java: AbstractNonBlockingServer does not catch errors when invoking the processor
This patch changes the invoke() method to catch Throwables instead of just Exceptions.

Patch: Thomas Kielbus"


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1196848 13f79535-47bb-0310-9956-ffa450edef68
2011-11-02 22:40:01 +00:00
Jake Farrell
336a1599d7 Thrift-1375: fixed a hex char conversion bug in TJSONProtocol
Client: java
Patch: Dave Watson

Fixed a hex char conversion bug in TJSONProtocol: 10 ~ 15 <=> 'a' ~ 'f'.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179904 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 00:10:20 +00:00
Bryan Duxbury
9a1d2f01c6 add utility for benchmarking protocols against each other
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1177458 13f79535-47bb-0310-9956-ffa450edef68
2011-09-29 22:51:54 +00:00
Bryan Duxbury
44b2bb6bb5 revert THRIFT-959
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176472 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 17:07:19 +00:00
Bryan Duxbury
40d51a28d7 THRIFT-1365. java: TupleProtocol#writeBitSet unintentionally writes a variable length byte array
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176072 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 21:29:15 +00:00
Bryan Duxbury
18784d7ccc THRIFT-1339. java: Extend Tuple Protocol to TUnions
This patch implements TupleProtocol (and general Scheme support) to TUnion descendants.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173418 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 22:53:31 +00:00
Jake Farrell
251939c6b1 THRIFT-1332: TSSLTransportParameters class uses hard coded value keyManagerType: SunX509
Client: java
Patch: Vladimir Zhilyaev

Convert Keymanger and TrustManager over to using detected jvm values rather than hard coded.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166798 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 16:57:40 +00:00
Bryan Duxbury
f099873704 THRIFT-1328. java: TBaseHelper.toString(...) appends ByteBuffer data outside of valid buffer range
This patch now correctly considers both arrayOffset and position when determining how to access the backing array of a buffer.

Patch: Andy Schlaikjer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166292 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 18:12:34 +00:00
Bryan Duxbury
adaf82615b THRIFT-1319. java: Mismatch between how a union reads and writes a container
This patch fixes the problem in the java generator (and removes an unnecessary comment). It also amends TestTUnion to catch this.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164202 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 18:54:07 +00:00
Bryan Duxbury
b8c8e0b9bc THRIFT-1298. java: Standard scheme doesn't read or write metadata along with field values
This patch makes StandardScheme write metadata, and adds tests against a static known-good Binary-serialized struct for a reference.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162917 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 17:50:31 +00:00
Jake Farrell
13b21184f4 Thrift-1257: thrift's dependency scope on javax.servlet:servlet-api should be 'provided'
Client: java
Patch: jfarrell

Updated artifact servlet-api scope to provided.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162568 13f79535-47bb-0310-9956-ffa450edef68
2011-08-28 18:24:45 +00:00
Bryan Duxbury
bce6fadf3b THRIFT-1282. java: Upgrade httpclient to 4.1.2 (from 4.0.1)
Patch: Aravind Srini

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160941 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 00:22:30 +00:00
Roger Meier
b7d7227eb0 THRIFT-1278 javadoc warnings - compilation
Patch: Aravind Srini

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160883 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 20:27:19 +00:00
Bryan Duxbury
5fc71fd56a THRIFT-1167. java: Java nonblocking server with more than one thread for select and handling IO
This patch refactors the nonblocking server hierarchy and adds in a new server that has a threaded selector pool as well as a threaded invoker pool.

Patch: Steve Jiang

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1158977 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 00:02:50 +00:00
Jake Farrell
9c76258564 updating trunk from 0.7.0-dev to 0.8.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1157426 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 21:29:36 +00:00
Jake Farrell
c5555a2801 Removing duplicate java client properties seen during release process
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1156747 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 19:11:26 +00:00
Bryan Duxbury
dfffdd8726 THRIFT-1205. java: port server unduly fragile with arbitrary input
Increase the default max frame size to 16MB.

Patch: Ryan King

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1156731 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 18:54:11 +00:00
Bryan Duxbury
1121b47c09 THRIFT-169. java: Pluggable Serializers
THRIFT-1239. java: TupleProtocol- An extremely compact, temporary protocol

This monster commit is the combination of the two above tickets, providing a new serialization framework and the first new consumer in one go.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1156728 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 18:50:58 +00:00
Roger Meier
a35944bfe2 THRIFT-1238 Thrift JS client cannot read map of structures(TestCase)
Patch: Henrique Mendonca



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1147301 13f79535-47bb-0310-9956-ffa450edef68
2011-07-15 20:16:43 +00:00
Bryan Duxbury
35dd47bc7e THRIFT-1216. java: build Java Library behind a proxy
Patch: Roger Meier

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1139094 13f79535-47bb-0310-9956-ffa450edef68
2011-06-23 22:21:20 +00:00
Bryan Duxbury
4b212b4b7f THRIFT-1211. java: When using THttpClient, non 200 responses leave the connection open
This patch reorders the code so that we can close the connection in the case of an error.

Patch: Mathias Herberts

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1137794 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 21:42:17 +00:00
Roger Meier
9d8e8f87ed THRIFT-1202 Malformed JSON for map<string,type> services parameters
Patch: Henrique Mendonca


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1135763 13f79535-47bb-0310-9956-ffa450edef68
2011-06-14 19:38:27 +00:00
Bryan Duxbury
63c2d378c5 THRIFT-1199. java: Union structs should have generated methods to test whether a specific field is currently set
Patch: Piotr Kozikowski

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1133482 13f79535-47bb-0310-9956-ffa450edef68
2011-06-08 17:46:55 +00:00
Jake Farrell
73b8dfc92c Thrift-1194: Java lib does not install artifacts to local dir correctly
Client: java
Patch: Jake Farrell

Fixes broken java lib install target to work properly and cleans up build.properties.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1130626 13f79535-47bb-0310-9956-ffa450edef68
2011-06-02 16:13:18 +00:00
Bryan Duxbury
5075a19677 THRIFT-1190. java: readBufferBytesAllocated in TNonblockingServer.java should be AtomicLong to fix FD leakage and general server malfunction
There was a race condition in the use of the memory limiting feature that would lead to memory loss.

Patch: Tom May

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1130231 13f79535-47bb-0310-9956-ffa450edef68
2011-06-01 17:19:57 +00:00
Bryan Duxbury
9a42239eec THRIFT-1170. java: Thrift Generated Code and Java 5
This patch adds a trivial java5 option to the java generator.

Patch: Greg Moulliet

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1126765 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 21:41:02 +00:00
Bryan Duxbury
b9e47c4ba9 THRIFT-1178. java: Java: TBase signature should be T extends TBase<?,?>
Patch: Ryan Rawson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1126637 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 18:30:06 +00:00
Jake Farrell
c023d90e3b Thrift-1174: Publish as3 client implementation via Maven for use by flex-mojos users
Client: as3

Adds the ability to publish the as3 client to maven central repo along side the java and fb303 libs.




git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1125511 13f79535-47bb-0310-9956-ffa450edef68
2011-05-20 19:04:13 +00:00
Jake Farrell
6ece9be5c7 THRIFT-1155: Remove log4j dependency from java client
Client: java

Removed dependency for slf4j-log4j for pom and broke requirements for testing. This fixes those requirements and restores the build.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1096788 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 15:44:50 +00:00
Jake Farrell
b0cdd91a83 Thrift-1155: Remove log4j dependency from java client.
Client: java

slf4j-log4j should not be included with the pom since it is not required for the client. Any logger supported by slf4j can be used.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1096758 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 14:18:07 +00:00
Jake Farrell
e74caa84e3 Adding java build.properties file to the exported files list.
client: java




git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1095491 13f79535-47bb-0310-9956-ffa450edef68
2011-04-20 19:48:12 +00:00
Jake Farrell
4b8faf9e20 Thrift-363: Maven Deploy
Patch: jfarrell
Client lib: java

Adding the ability to publish the java client library as artifacts to the apache maven repository.     

Usage: ant -Drelease=true publish
Note: You must have a gpg key setup and push it to pgp.mit.edu and
  have a ~/.m2/settings.xml file containing your apache and gpg information.
  Thrift-1114 will help make this file more secure or unnecessary.

  <settings>
    <servers>
      <server>
        <id>apache.releases.https</id>
        <username>@APACHE_USERNAME@</username>
        <password>@APACHE_PASSWORD@</password>
      </server>
    </servers>
    <profiles>
      <profile>
        <id>gpg</id>
        <properties>
          <gpg.passphrase>@GPG_PASSPHRASE@</gpg.passphrase>
        </properties>
      </profile>
    </profiles>
  </settings>



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1095216 13f79535-47bb-0310-9956-ffa450edef68
2011-04-19 21:11:54 +00:00
Bryan Duxbury
55f7ffea5d THRIFT-363. java: Maven deploy
It finally works\!

Patch: Jake Farrell

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1085046 13f79535-47bb-0310-9956-ffa450edef68
2011-03-24 17:24:27 +00:00
Bryan Duxbury
177b52ab58 THRIFT-1101. java: bytebuffer length calculation in TBinaryProtocol writeBinary
This patch fixes a bug in Binary and Compact protocol that incorrectly calculates the length of the bytes to be written when the byte buffer being written has a nonzero array offset (such as after a slice() call).

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1083890 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 18:18:33 +00:00
Bryan Duxbury
ee7c7bb485 THRIFT-1050. java: Declaring an argument named 'manager' to a service method produces code that fails compile due to name conflicts with protected ivars in TAsyncClient
This patch adds a triple-underscore prefix to all the ivars in TAsyncClient, making it substantially more difficult to get a conflict.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1081868 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 17:25:23 +00:00
Roger Meier
3f067a86eb THRIFT-1084 Typo fixes
Patch: Bruce Mitchener


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1077939 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 13:35:05 +00:00
Roger Meier
d9924984db THRIFT-863 JavaScript fix Map Type
Patch: Henrique Mendonca


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1074194 13f79535-47bb-0310-9956-ffa450edef68
2011-02-24 16:04:03 +00:00
Roger Meier
60cb3baf8f THRIFT-1073 fix javadoc target
Patch: Diwaker Gupta


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1074173 13f79535-47bb-0310-9956-ffa450edef68
2011-02-24 14:45:03 +00:00
Roger Meier
a8738b5560 THRIFT-1065 Unexpected exceptions not proper handled on JS
THRIFT-847  same bahavior for Java and C++(test/cpp/src/TestServer.cpp)

Patch: Henrique Mendonca


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1073484 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 20:15:03 +00:00
Bryan Duxbury
0fd37f0871 THRIFT-447. java: Make an abstract base Client class so we can generate less code
This patch introduces a handful of abstract, non-generated classes that allow us to generate much less code for service implementations.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1068487 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 17:26:37 +00:00
Todd Lipcon
56c2d5682e THRIFT-1053. Provide a getUnderlyingTransport function for TSaslTransport
Patch: Devaraj Das


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1067719 13f79535-47bb-0310-9956-ffa450edef68
2011-02-06 18:13:10 +00:00
Mark Slee
a026b5d9eb THRIFT-1051. Applying @Override to interface method breaks compile on Java 1.5
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1064911 13f79535-47bb-0310-9956-ffa450edef68
2011-01-28 22:26:13 +00:00
Bryan Duxbury
c8d533b65e THRIFT-1038. java: Generated Java code for structures containing binary fields (or collections thereof) are not serializable (in the Java sense) even though they implement java.io.Serializable
This patch causes Java Serialized Thrift structs to be serialized onto the stream via the Compact Protocol.

Patch: Mathias Herberts

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1063907 13f79535-47bb-0310-9956-ffa450edef68
2011-01-26 22:42:02 +00:00
Bryan Duxbury
34c2dbd545 THRIFT-1041. java: TDeserializer holds onto a reference of the array it reads after it is done deserializing
This patch makes sure that after using the bytes passed in, no references are retained.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1063820 13f79535-47bb-0310-9956-ffa450edef68
2011-01-26 18:40:30 +00:00
Bryan Duxbury
c216556bd6 update version numbers to 0.7.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1056453 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 18:45:29 +00:00
Roger Meier
e0cac988b6 THRIFT-1022 Typo cleanup patch
Patch: Anatol Pomozov


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1049968 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 13:15:49 +00:00
Bryan Duxbury
22903cb542 THRIFT-1015. java: TUnion does not handle ByteBuffer in toString
This patch adds a test case and fixes the toString method of TBaseHelper for ByteBuffers.

Patch: Takashi Yonebayashi

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1041590 13f79535-47bb-0310-9956-ffa450edef68
2010-12-02 21:29:20 +00:00
Bryan Duxbury
708971351f THRIFT-1009. java: TUnion does not correctly deep copy a ByteBuffer
This patch adds a case to deepCopyObject for ByteBuffer, along with a test case that verifies the change in functionality.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1040358 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 00:33:48 +00:00
Bryan Duxbury
a5eb848930 THRIFT-1008. java: byte[] accessors throw NPE on unset field
Further extra null check in accessors that use TBaseHelper.rightSize().

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1038850 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 22:30:38 +00:00
Bryan Duxbury
fea49cb840 THRIFT-1008. java: byte[] accessors throw NPE on unset field
This patch adds a null check to TBaseHelper.rightSize().

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1038833 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 21:30:00 +00:00
Bryan Duxbury
bbe36c5d35 THRIFT-970. java: Under heavy load, THttpClient may fail with 'too many open files'
This patch updates our THttpClient to have two different modes of operation: its current functionality and a new mode that uses Apache's HttpClient library to provide higher throughput and better pooling functionality.

Patch: Mathias Herberts

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1031668 13f79535-47bb-0310-9956-ffa450edef68
2010-11-05 17:14:52 +00:00
Roger Meier
a8b52c7a8b THRIFT-6 TLP URL's and email's, haskell, more details
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1029964 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 07:33:30 +00:00
Bryan Duxbury
452dc69a6b improve formatting in TProtocolUtil.skip
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1028140 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 23:39:58 +00:00
Bryan Duxbury
b6722bf8c4 THRIFT-377. java: TFileTransport port in Java
This patch adds TFileTransport to the java library. This transport is not a general-purpose file transport; instead, it is more of a way to execute one-way RPC via an offline file process.

Patch: Joydeep Sen Sarma

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1028136 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 23:26:52 +00:00