-
Notifications
You must be signed in to change notification settings - Fork 722
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
initBook failed #190
Comments
Hi,I met the same problem today,have you solved this problem?if solved,can you tell me the solution?thanks |
@king3224 @abhi08singh All parsing is handle by r2-streamer which runs light weight server on device and uses port number 8080 by default.. If some other process is already using port 8080, then above issue might come.. It will use the port number you provided. |
oh,I got it ,thanks |
I tried different port numbers but it not working (In samsung J7) . But it works on ther devices like Xiomi redmi3 , Moto G5 and Huwawi devices (With default port). I seems like port number i passed is not using. |
Fixes FolioReader#190 Now portNumber explicitly mentioned by developer is used and not the constants value of 8080. Fixes FolioReader#276 Now even if any local server is running on 8080 or on the portNumber set by developer prior to opening the book, FolioReader will try to you other available portNumber with the help of java.net.ServerSocket
04-27 14:01:43.270 24223-24223/com.example.app E/FolioActivity: initBook failed java.net.BindException: bind failed: EADDRINUSE (Address already in use) at libcore.io.IoBridge.bind(IoBridge.java:99) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:139) at java.net.ServerSocket.bind(ServerSocket.java:335) at java.net.ServerSocket.bind(ServerSocket.java:295) at fi.iki.elonen.NanoHTTPD$ServerRunnable.run(NanoHTTPD.java:1761) at java.lang.Thread.run(Thread.java:818) Caused by: android.system.ErrnoException: bind failed: EADDRINUSE (Address already in use) at libcore.io.Posix.bind(Native Method) at libcore.io.ForwardingOs.bind(ForwardingOs.java:56) at libcore.io.IoBridge.bind(IoBridge.java:97) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:139) at java.net.ServerSocket.bind(ServerSocket.java:335) at java.net.ServerSocket.bind(ServerSocket.java:295) at fi.iki.elonen.NanoHTTPD$ServerRunnable.run(NanoHTTPD.java:1761) at java.lang.Thread.run(Thread.java:818)
After integrating this in my application i am getting this error.
The text was updated successfully, but these errors were encountered: