Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KinesisProducer.extractBinaries exception on Win64 #73

Closed
ramtg opened this issue Nov 3, 2016 · 19 comments
Closed

KinesisProducer.extractBinaries exception on Win64 #73

ramtg opened this issue Nov 3, 2016 · 19 comments
Labels
Milestone

Comments

@ramtg
Copy link

ramtg commented Nov 3, 2016

Can someone please offer a suggestion on how to work around the following exception that KinesisProducer.extractBinaries() throws when trying to copy the native binary to c:\Users..\AppData\Local\Temp .

This issue is happening on Win64 with 0.12.x .

  • java.lang.RuntimeException: Could not copy native binaries to temp directory C:\Users...\AppData\Local\Temp\amazon-kinesis-producer-native-binaries
  • at com.amazonaws.services.kinesis.producer.KinesisProducer.extractBinaries(KinesisProducer.java:844)
  • at com.amazonaws.services.kinesis.producer.KinesisProducer.(KinesisProducer.java:242)
  • ...
  • at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  • at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  • at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  • at java.lang.reflect.Method.invoke(Method.java:498)
  • at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  • Caused by: java.lang.NullPointerException
  • at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
  • at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
  • at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
  • at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:462)
  • at com.amazonaws.services.kinesis.producer.KinesisProducer.extractBinaries(KinesisProducer.java:803)
  • ... 12 more
@pfifer
Copy link
Contributor

pfifer commented Nov 7, 2016

Unfortunately for the 0.12.x releases we've had to temporarily remove Windows support. We're are looking into adding Windows support back, but I don't have an ETA at this time.

@pfifer pfifer added the bug label Feb 15, 2017
@davidhroberts1
Copy link

davidhroberts1 commented Feb 16, 2017

Hi,

Have there been any updates here? Running into the same problem.

@ramtg
Copy link
Author

ramtg commented Feb 22, 2017

@davidhroberts1
Tried KPL 0.12.3 ; Continuing to have the issue on Windows .

@ravi2274
Copy link

Same issue as @ramtg!
Build the project with version 0.10.2, worked like a charm.
Any timelines on support of Windows x64 for the newer version?

@etspaceman
Copy link

+1

1 similar comment
@asumawang
Copy link

+1

@harryho
Copy link

harryho commented Aug 15, 2017

Same issue. :-(

@zodeus
Copy link

zodeus commented Aug 18, 2017

+1

@psiedlinski
Copy link

+1
any progress?

@gabrek7
Copy link

gabrek7 commented Sep 5, 2017

Same issue here =(

@moranabelev
Copy link

+1
@pfifer - any updates?

@sangeetasan10
Copy link

+1
same issue.

@kennyk65
Copy link

Same issue. Windows 10. Java SDK 1.11.205, kinesis-producer-library 0.12.5.

@benMain
Copy link

benMain commented Oct 7, 2017

Are there any temporary workarounds other than rolling back the version of KPL?

@denystyshetskyy
Copy link

denystyshetskyy commented Oct 10, 2017

Same Issue here on Windows with 0.12.5
+1

@nabi-rd
Copy link

nabi-rd commented Oct 23, 2017

+1 with version 0.12.5

@ErrorMonkeys
Copy link

+1

@pfifer
Copy link
Contributor

pfifer commented Nov 7, 2017

Windows support is coming soon.

@pfifer pfifer added this to the v0.12.6 milestone Nov 13, 2017
pfifer added a commit to pfifer/amazon-kinesis-producer that referenced this issue Nov 14, 2017
* Added Windows support
  The 0.12.x version now supports Windows.
  The Windows version is currently mastered on the branch `windows`, which will be merged at a later date.
  The build instructions for Windows are currently out of date, and will be updated at a later date.__
  * Issue awslabs#113
  * Issue awslabs#74
  * Issue awslabs#73
* Removed the libc wrapper
  The libc wrapper lowered the required version of glibc.  The KPL is now built with an older version of libc, which removes the need for the wrapper.
  * PR awslabs#139
* Set the minimum required version of macOS to 10.9.
  The KPL is now built against macOS 10.9.
  * Issue awslabs#117
  * PR awslabs#138

* Allow exceptions to bubble to the thread exception handler for Daemon threads.
  Exceptions that occur on daemon threads will now be allowed to propagate to the thread exception handler.  This doesn't provide any additional monitoring or handling of thread death.
  * PR awslabs#112
  * Issue awslabs#111
* Updated `amazon-kinesis-producer-sample` to use the correct properties in its configuration file.
  * PR awslabs#120
  * Issue awslabs#119
* Updated documentation of `AggregationMaxSize` to match actual Kinesis limits.
  * PR awslabs#133
* Added support for setting `ThreadingModel`, and `ThreadPoolSize` using a properties file.
  * PR awslabs#134
  * Issue awslabs#124
* Extracted `IKinesisProducer` from `KinesisProducer` to allow for easier testing.
  * PR awslabs#136
pfifer added a commit that referenced this issue Nov 14, 2017
* Added Windows support
  The 0.12.x version now supports Windows.
  The Windows version is currently mastered on the branch `windows`, which will be merged at a later date.
  The build instructions for Windows are currently out of date, and will be updated at a later date.__
  * Issue #113
  * Issue #74
  * Issue #73
* Removed the libc wrapper
  The libc wrapper lowered the required version of glibc.  The KPL is now built with an older version of libc, which removes the need for the wrapper.
  * PR #139
* Set the minimum required version of macOS to 10.9.
  The KPL is now built against macOS 10.9.
  * Issue #117
  * PR #138

* Allow exceptions to bubble to the thread exception handler for Daemon threads.
  Exceptions that occur on daemon threads will now be allowed to propagate to the thread exception handler.  This doesn't provide any additional monitoring or handling of thread death.
  * PR #112
  * Issue #111
* Updated `amazon-kinesis-producer-sample` to use the correct properties in its configuration file.
  * PR #120
  * Issue #119
* Updated documentation of `AggregationMaxSize` to match actual Kinesis limits.
  * PR #133
* Added support for setting `ThreadingModel`, and `ThreadPoolSize` using a properties file.
  * PR #134
  * Issue #124
* Extracted `IKinesisProducer` from `KinesisProducer` to allow for easier testing.
  * PR #136
@ramtg ramtg closed this as completed Nov 14, 2017
@ramtg
Copy link
Author

ramtg commented Nov 14, 2017

Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests