Commit Graph

517 Commits

Author SHA1 Message Date
gx9702
d862c2fd7b THRIFT-4316: fix read size in TByteBuffer.java
Client: java

This closes #1290
2017-09-05 21:33:42 -07:00
Roshan George
3966a56a87 THRIFT-4193 Lower the default maxReadBufferBytes for non-blocking servers
Client: Java
Patch: Roshan George <rgeorge@liveramp.com>

This closes #1264
2017-05-11 01:26:22 +02:00
Deniss Afonin
3311a9b237 THRIFT-4177 fix java deep copy
Client: Java

Java compiler produces deep copy constructor that could make shallow copy accidentally.

This closes #1254
2017-04-19 12:38:14 -04:00
Jonathan Pearlin
6c08ac72c6 THRIFT-4130: Release connection back to managed pool.
Client: C++

This closes #1212
2017-03-22 20:33:20 -04:00
James E. King, III
07f59971bd THRIFT-4081: appveyor retooling - added mingw64 build as a second job to the CI build process
This closes #1205
2017-03-10 06:18:33 -05:00
Christopher Tubbs
5038466e5e THRIFT-1805 Provide option for handling RTEs
Client: Java

Adds a Java option to the generator to generate code which lets Thrift
handle RuntimeExceptions from a service, and present them as
TApplicationException to the client.

This closes #1186
2017-02-27 23:38:44 -05:00
James E. King, III
37aac3bb58 THRIFT-3706: added cross test support for backwards compatible multiplexed server, added c_glib testBinary, fixed a number of glib object reference issues
Client: c_glib, java

This closes #1200
2017-02-22 12:46:04 -05:00
Gonzalo Aguilar Delgado
bc0082e023 THRIFT-3706: Implement multiplexed protocol client and test client for c_glib; test server for java; integrate into crosstest
Client: c_glib

This closes #1191
This closes #1199
2017-02-20 14:04:17 -05:00
Aleksey Pesternikov
400b346db2 THRIFT-2504: Add default processor to java multiplexed processor to handle older clients
Client: Java

This closes #114
This closes #1195
2017-02-18 13:58:21 -05:00
James E. King, III
a3d6be906b THRIFT-4068 fix comment in java server socket code
Client: Java
Patch: pigbrain <hyundong.lee@nhnent.com>

This closes #1177
2017-02-04 00:23:55 -05:00
Tom Davis
34bd992bc3 THRIFT-4062 Remove debug print from TServiceClient
Client: Java
Patch: Tom Davis <tom@recursivedream.com>

This closes #1173
2017-01-31 21:31:58 +01:00
James E. King, III
de3e17ad39 THRIFT-3854 add a way in java to clear TFramedTransport read buffers
Client: Java
Patch: Chris Lockfort <clockfort@palantir.com>

This closes #1164
This closes #1081
2017-01-27 23:36:31 -05:00
James E. King, III
cf25489402 Build fails using Java 1.8 with Ant < 1.9
Client: Java
Patch: Adinata <mail.dieend@gmail.com>

This closes #1060
2017-01-25 20:34:04 -05:00
James E. King, III
55f976e0de THRIFT-4040 Add real cause of TNonblockingServerSocket error to exception
Client: Java
Patch: Dmitry Roenko <savraz@gmail.com>

This closes #1116
2017-01-23 09:06:27 -05:00
BCG
7ab125a253 THRIFT-3301 Java generated code uses imports that can lead to class name collisions with IDL defined types
Client: Java
Patch: Benjamin Gould

This closes #1120
2016-12-03 01:00:52 +01:00
Gary Gregory
84d6af4cf9 THRIFT-3964 Unsupported mechanism type ????? due to dependency on default OS-dependent charset
Client: Java
Patch: Gary Gregory <ggregory@apache.org>

This closes #1134
2016-11-19 16:56:31 +01:00
Gary Gregory
fd832242bb THRIFT-3962 Ant build.xml broken on Windows for Java library
Client: Java
Patch: Gary Gregory <ggregory@apache.org>

This closes #1126
2016-11-10 22:56:47 +01:00
Nobuaki Sukegawa
b0dadbde6a THRIFT-3902 TFramedTransport.open throws NullPointerException
This closes #1105
2016-10-03 01:04:31 +09:00
Nobuaki Sukegawa
73d16378c5 More make dist entries 2016-03-19 23:53:05 +09:00
Nobuaki Sukegawa
400ae6e76e THRIFT-3449 TBaseAsyncProcessor fb.responseReady() never called for oneway functions 2016-03-18 23:53:41 +09:00
Tyler Treat
1d4a4393c9 THRIFT-3743 Java JSON protocol left in incorrect state when an exception is thrown during read or write operations
This closes #952
2016-03-18 22:37:02 +09:00
Josh Elser
b3a42dd050 THRIFT-3479 Avoid returning a message to a client on TException. 2016-03-18 22:37:02 +09:00
Nobuaki Sukegawa
a8765276d8 THRIFT-3680 Java async processor fails to notify errors to clients
This closes #903
2016-03-18 22:35:39 +09:00
Nobuaki Sukegawa
c3072227c0 Follow-up THRIFT-3112: key.cancel when error 2016-03-18 22:34:38 +09:00
John Sirois
bd964c7f34 THRIFT-3112 [Java] AsyncMethodCallback should be typed in generated AsyncIface
The parametrization brings the existing actual parametrization with
client call implementation objects to the fore and so this change
also fixes that parametrization to be a simple parametrization over
the return type as is done in the server-side AsyncProcessor code.

NB: This is a breaking change in both generated code and the client
libs.

This closes #840
2016-03-18 22:33:38 +09:00
Nobuaki Sukegawa
ce283d5664 THRIFT-3679 Add stdout log to testBinary in Java test server
Client: Test (Java)
Patch: Nobuaki Sukegawa

This closes #899
2016-02-27 16:55:55 +09:00
Nobuaki Sukegawa
3b4c5fadfd THRIFT-3678 Fix javadoc errors on JDK 8
Client: Java
Patch: Nobuaki Sukegawa

This closes #898
2016-02-27 16:55:55 +09:00
Nobuaki Sukegawa
aa7d0d5f2a THRIFT-3677 Improve CMake Java build
This closes #897
2016-02-27 16:55:55 +09:00
Roshan George
949e242ec8 THRIFT-2877 Generate hashCode using primitives and static utility methods
Client: Java
Author: Roshan George <roshan@arjie.com>

The TBaseHelper.hashCode methods are the Java 8 implementations of hashCode for
those types.

This closes #448
2016-02-14 22:47:19 +09:00
Jens Geyer
4733c4c535 THRIFT-3605 Have the compiler complain about invalid arguments and options
Client: Compiler (general)
Patch: Jens Geyer

This closes #862
2016-02-14 11:10:42 +01:00
Marc Breslow
3bf3ebfec3 THRIFT-2157 generated code would cause ClassCastException
Client: Java
Patch: Marc Breslow <marc.breslow@devfactory.com>

This closes #822
2016-01-28 23:05:03 +01:00
Nobuaki Sukegawa
fc07084ada THRIFT-3542 Add length limit support to Java test server
This closes #788
2016-01-13 20:25:26 +09:00
BCG
3ab9f2b5ee THRIFT-3521 : TSimpleJSONProtocolTest is not deterministic (fails when run on JDK 8)
Client: Java Test
Patch: BCG

This closes #772
2016-01-06 11:54:53 +09:00
BCG
2aaae8a604 THRIFT-3486 - Java generated getFieldValue is incompatible with setFieldValue for binary values
Client: Java
Patch: BCG

This closes #743
2016-01-03 02:55:16 +09:00
Tom Lee
4f6138b7a2 THRIFT-3484 Consolidate temporary buffers in Java's TCompactProtocol
Client: Java
Patch: Tom Lee

This closes #738
2015-12-11 00:18:01 +09:00
Tom Lee
9d0f752abc THRIFT-3432 Add the TByteBuffer transport for Java
Client: Java
Patch: Tom Lee

This closes #705
2015-12-11 00:18:01 +09:00
Keith Turner
3143bfbe15 THRIFT-3478 restore method to THsHaServer
This closes #735
2015-12-08 20:11:20 +01:00
Tom Lee
9caf6d63c6 THRIFT-3435 Separate package for fullcamel thrift
Client: Java Test
Patch: Tom Lee

This closes #708
2015-12-06 10:11:19 +09:00
Nobuaki Sukegawa
b9641e0949 THRIFT-3450 NPE when using SSL
This closes #717
2015-11-27 23:32:40 +01:00
Nobuaki Sukegawa
ca93936e78 THRIFT-3424 Add CMake android build option
Client: Build
Patch: Nobuaki Sukegawa

This closes #696
2015-11-23 16:59:10 +09:00
Roshan George
75d879ab47 THRIFT-3158 Make deepcopy return T
Client: Java
Patch: Roshan George

This closes #499
2015-11-14 17:06:52 +09:00
Roshan George
c2d4c77c5a THRIFT-3157 Make TBase signature more explicit
Client: Java
Patch: Roshan George

This closes #498
2015-11-14 17:06:30 +09:00
Marshall Scorcio
fe5330955f THRIFT-3182 TFramedTransport is in an invalid state after frame size exception
Client: Java
Patch: Marshall Scorcio

This closes #512
2015-11-04 23:22:53 +09:00
Phongphan Phuttha
54beb80ded THRIFT-2409 UTF-8 sent by PHP as JSON is not understood by TJsonProtocol
Client: Java
Patch: Phongphan Phuttha <phongphan@acm.org>

This closes #667
2015-10-29 22:18:42 +02:00
Randy Abernethy
f593dd3a96 THRIFT-3392:ZLib does not flush wrapper streams on close
Client: Java
Patch: Antonio García

Github Pull Request:
This closes #655
commit e413701b53a4aa0069b5e5d873847c147308581e
Author: Antonio García-Domínguez <nyoescape@gmail.com>
Date: 2015-10-18T13:16:02Z
THRIFT-3392 Java TZlibTransport: ensure inflater/deflater are closed upon close()
2015-10-18 08:04:16 -07:00
Nobuaki Sukegawa
a175437f66 THRIFT-3276 Binary data does not decode correctly using the TJSONProtocol when the base64 encoded data is padded.
This closes #645
2015-10-11 00:55:58 +02:00
Evan Jones
60aa640c30 THRIFT-3306: Java: TBinaryProtocol: Use a single temp byte[] buffer
Reduces allocations and GC when TBinaryProtocol is allocated repeatedly.

Originally separate byte[] arrays were allocated for each integer type, and
a separate array for input and output. However, one buffer of the largest
size (8 bytes for i64) can be used for all purposes.

This closes #596
2015-09-30 15:49:55 +02:00
Nobuaki Sukegawa
01ede042aa THRIFT-3360 Improve cross test servers and clients further
This closes #629
2015-09-28 20:38:37 +02:00
Jens Geyer
b121a586b2 THRIFT-3345 Clients blocked indefinitely when a java.lang.Error is thrown
Client: Java
Author: huahang <huahang@users.noreply.github.com>

This closes #618
2015-09-23 23:05:26 +02:00
Nobuaki Sukegawa
a649e7473b THRIFT-3337 Add testBool method to cross tests
This closes #611
2015-09-21 23:07:39 +02:00
jfarrell
400d02c75f THRIFT-2269: Can deploy libthrift-source.jar to maven center repository
Client: java
Patch: jfarrell

Fix java sources issue being deployed as -src.jar
2015-08-25 01:14:12 -04:00
jfarrell
f13e431bab THRIFT-3305: Missing dist files for 0.9.3 release candidate
Client: build
Patch: jfarrell

Adds missing files to dist
2015-08-25 00:39:29 -04:00
Randy Abernethy
7860ee727a THRIFT-3300:Reimplement TZlibTransport in Java using streams
Client: Java Lib
Patch: Paul Magrath

This closes #590
commit c01aff7038adb9fa2098c02d0092757834fd4df4
Author: Paul Magrath <paul@swiftkey.com>
Date: 2015-08-17T17:25:24Z
THRIFT-3300 Reimplement TZlibTransport in Java using streams
2015-08-20 23:50:35 -07:00
Randy Abernethy
bb98e97fd3 THRIFT-3294: Java ZLib transport fix
Client: Java Lib
Patch: Paul Magrath
2015-08-05 21:02:14 -07:00
Roger Meier
ecc2a6b60f THRIFT-3242 OSGi Import-Package directive is missing the Apache HTTP packages
Patch: Antonio Garcia-Dominguez
2015-07-16 23:48:39 +02:00
jfarrell
2238adabbc THRIFT-3202: Allow HSHAServer to configure min and max worker threads separately.
Client: java
Patch: Pankaj Kumar

Allow HSHAServer to configure min and max worker thread separately
2015-06-26 08:58:32 -04:00
jfarrell
0b8132d20e THRIFT-3197: keepAliveTime is hard coded as 60 sec in TThreadPoolServer
Client: java
Patch: Pankaj Kumar

Creating ThreadPoolExecutor in TThreadPoolServer, keepAliveTime is hard coded as 60 sec.
2015-06-24 09:19:15 -04:00
Nobuaki Sukegawa
113b638790 THRIFT-3148 Markdown links to coding_standards are dead
This closes #491
2015-05-13 21:40:26 +02:00
Roger Meier
4bf9399ca3 THRIFT-3117 Java TSSLTransportFactory can't load certificates within JAR archive
This closes #465

 commit aa6d693b21ccc855921a23f507fbb367b91da2c4
 Author: Smyatkin Maxim <smyatkinmaxim@gmail.com>
 Date: 2015-04-26T15:07:26Z
2015-04-30 19:42:41 +02:00
Roger Meier
195142426d THRIFT-1954 Allow for a separate connection timeout value
This closes #472

 commit 0548c01742d8fd3a55de1d516c7911720c08debc
 Author: Roshan George <roshan@arjie.com>
 Date: 2015-04-30T07:07:56Z

 Make it possible to use separate socket and connection timeouts
2015-04-30 18:08:53 +02:00
Roger Meier
5428302717 THRIFT-3119 Java's TThreadedSelectorServer has indistinguishable log messages in run()
This closes #470

commit f2898ff23b529a584c104989c320b450248da292
Author: Intropy <jbolla@gmail.com>
Date: 2015-04-29T00:25:16Z

Add thread class to the run() failure log message
2015-04-30 16:20:39 +02:00
Roger Meier
a242c28ba1 THRIFT-227 Pretty print binary collections
This closes #441

commit 5da68694fec6a51e97f5a75823babb1074e32eb2
Author: Roshan George <roshan@arjie.com>
Date: 2015-04-13T03:40:26Z
2015-04-14 22:14:41 +02:00
Roger Meier
8f27189dfd THRIFT-3090 cmake build is broken (set CMake version to 2.8.12) 2015-04-14 22:05:50 +02:00
Roger Meier
5af78c8776 Revert "THRIFT-3014 AppVeyor support - fix format"
This reverts commit 81b3c440c6.

commit included modified CMakeLists.txt files, as part from local test
2015-04-12 21:43:12 +02:00
Roger Meier
81b3c440c6 THRIFT-3014 AppVeyor support - fix format 2015-04-12 21:06:11 +02:00
Winger Pun
b1a35da916 THRIFT-3088 TThreadPoolServer with Sasl auth may leak CLOSE_WAIT socket
TThreadPoolServer with Sasl auth may leak CLOSE_WAIT socket
2015-04-12 17:46:35 +02:00
Roger Meier
7110ab2951 THRIFT-3079 java: TNonblockingServerSocket's logger is not named after TNonblockingServerSocket
Patch: Xiaoshuang LU
2015-04-07 23:08:29 +02:00
Roger Meier
9226590dc0 THRIFT-3065 java: Update libthrift dependencies (slf4j, httpcore, httpclient) 2015-04-07 22:12:20 +02:00
Randy Abernethy
664dd0a013 THRIFT-123: TZlibTransport for Java
Client: Java
Patch: Dragan Okiljevic, Keith Chew, Randy Abernethy

Adds a Java 1.7 based TZlibTransport to the Java library.
2015-03-29 10:10:02 -07:00
Roger Meier
41ad4342c5 THRIFT-847 Test Framework harmonization across all languages
THRIFT-2946 Enhance usability of cross test framework

Patch: Nobuaki Sukegawa

This closes: #358
2015-03-24 22:30:40 +01:00
Roger Meier
2bb6f51dda THRIFT-3031 Java: migrate "shouldStop" flag to TServer
Patch: John Wang & Roger Meier
2015-03-23 20:56:27 +01:00
Roger Meier
e6789480d2 THRIFT-1909 Java: Add compiler flag to use the "option pattern" for optional fields
Patch: Eirik Sletteberg & rebase by Wouter Lammers
2015-03-23 20:41:15 +01:00
Konrad Grochowski
3bc6424c76 THRIFT-2724 - Coding standards template added all over project
Client: All
Patch: Konrad Grochowski

This closes #371
2015-02-05 12:15:19 +01:00
Sergei Nikulov
9d8c1bf6f6 THRIFT-2850 CMake: Fixed Java lib build enable - Ant required to build java part of Thrift
This closes: #365
2015-02-02 21:47:14 +01:00
David Helder
4a78c6eb86 THRIFT-1618: synchronize access to hashtable in FieldMetaData 2015-01-06 23:57:26 +01:00
Jens Geyer
8bcfdd98ae THRIFT-2886 Integrate binary type in standard Thrift cross test
Client: C_glib, C++, D, Erlang, Go, Haskell, Lua, Java/Me, JavaScript, Node, Ocaml, Perl, PHP, Python, Ruby
Patch: Jens Geyer

This closes #341

Minimal server-side implementations and TODO stubs for various languages to let "make check" succeeed.
Not contained in this patch and still TODO:
- client side implementations, i.e. calls to testBinary() and appropriate tests
- server side hex printout missing for some languages
2015-01-03 17:37:54 +01:00
Pascal Bach
d5f87e1f21 CMake: Add CMake support for Thrift libraries
Currently the following libraries are supported:
- C++
- C_Glib
- Java (using Ant wrapper)

The compilers CMake file is adjusted to work with the new global CMakeLists.txt file.

Signed-off-by: Roger Meier <r.meier@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Also-by: Sergei Nikulov <sergey.nikulov@gmail.com>
2014-12-13 22:02:29 +01:00
Konrad Grochowski
3b5dacba44 THRIFT-2849: spelling errors fixed using codespell tool
Client: All
Patch: Anatol Pomozov

This closes #281
2014-11-24 10:55:31 +01:00
Konrad Grochowski
1cf9612a70 THRIFT-2810: java - clean-up resources on error in TServerSocket constructor
Client: Java
Patch: Guido de Caso

TServerSocket will call close() in constructor, when error is detected

This closes #258
2014-11-10 19:07:40 +01:00
Konrad Grochowski
fed887f9d9 THRIFT-2804: java - TAsyncProcessor interface extracted from TBaseAsyncProcessor
Client: Java
Patch: Michael Donaghy

This closes #253
2014-11-07 18:28:00 +01:00
Konrad Grochowski
cc092b37c8 THRIFT-2773: java - fixed oneway support while using TServiceClient
Client: java
Patch: Konrad Grochowski

new method for oneway call provided by TServiceClient
and compiler will now use it

This closes #241
2014-11-05 19:00:54 +01:00
jfarrell
5b02960648 THRIFT-2046:The worktask can be timed out in TThreadPoolServer (Java) when the max# thrift thread is reached
Client: java
Patch: Brock Noland

Introduces a task timeout for unexecuted tasks
2014-10-29 22:27:34 -04:00
Lei Feiwei
b006a50783 THRIFT-2788: enable TCP keep alive for sockets in java lib.
This closes #248

Signed-off-by: Roger Meier <roger@apache.org>
2014-10-21 23:49:50 +02:00
jfarrell
f2319457f2 THRIFT-2269: Can deploy libthrift-source.jar to maven center repository
Client: build
Patch: jfarrell

Fix java src package
2014-10-08 23:24:37 -04:00
Jens Geyer
79f988c27a THRIFT-2768: Whitespace Fixup
Client: General (Makefile.am)
Patch: Jens Geyer

Reverted makefile.am - tabs are not optional there
2014-10-03 20:42:54 +02:00
Jens Geyer
aaa8947f3a THRIFT-2768: Whitespace Fixup
Client: General (Makefile.am, *.thrift)
Patch: Jens Geyer

DocTest.thrift has NOT been changed, the trailing whitespaces are part of the test case.
2014-10-03 20:30:38 +02:00
jfarrell
63ad5f6f51 Thrift-2715:Wrong Import-Package directive in MANIFEST
Client: Java
Patch: Zlika

Updates java build.xml import headers for OSGI.
2014-10-01 21:44:30 -04:00
Jens Geyer
a86886e77d THRIFT-2704 - compiler: T_ONEWAY type used for oneway methods instead of T_CALL
Patch: Konrad Grochowski

This closes #216
2014-09-17 22:36:00 +02:00
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