Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!

Peter Benda

Ranch Hand
+ Follow
since Jul 23, 2017
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Peter Benda

Hi thanks for the kink
i understand about performance issues
but that are things tat i want the Java to interact with window componenets.
do you know maybe a project sample that interacts with something on windows
5 days ago
Hi,
i am looking for article how to build a simple JNI application between Java and C++ (can be gradle but not a must)
something that gives example of step by step.

Thanks
5 days ago
i have the same issue as described in
Java Console Application Lockedwebpage

i created app with Java8 on Win Server 2016 (but i reproduce it on other version of windows too, clicking with mouse in console window and the app get stuck.
i am lookin for a way to avoid this situation, is there any way to do it?
2 months ago
still not clear,
can i add to the configuration from the first question
a new connection to dame file, but for secific class and specific debug level so i can log the data to file only?
2 months ago
can i,
based on the above configuration add one with TRACE level only that will write to a file?
how to set it?
2 months ago
my current setting (working with SLF4J)
wirite both to console and to file




i want in specific class , in specific cases write only to the lof file and not to the console,
is this possible?
2 months ago
Hi,
when i run this from intelij i get the error.
when i create a jar and run from console all ok
3 months ago
i am getting error : java.net.SocketException: Connection reset (when i create a stand alone jar and run it all is fine)
this is the error :


java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.read(InputRecord.java:503)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:221)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140)


this is the code i use :
this is the code


any one have an idea?
ps : i also added to the VM params in inteligj this but didn't help : -Dhttps.protocols=SSLv1.1
3 months ago
i stored this class in H2 as an object
DeliverSm
when i try to retrieve it from the DB i get a string.
i am looking for a way to store this class.

thanks
3 months ago
the problem was in the persistance.xml file

com.microsoft.sqlserver.jdbc.SQLServerDriver


SQLServerDriver - was written not correctly
removed and got this error
i tried to add JPA to existing project in intelij.
i add JPA through Faces.
then i added next dependencies (want to connect sql server :


and created db and class based on example i found
also the persistance.xml i created manully and put it under : src\main\resources\META-INF\persistence.xml
this is the xml


when i run this code i get error :


maybe i should use different version in the dependency?
i am trying to convert next code from C# to java

this code created a based 10 value, and increments it
is there a similar way to do it in java?
4 months ago
i have load of data that comes to the system (json/xml)
i want to send them forward to other process (lets say queue)
but not equivalent : 33.3% 33.3% 33.3%
but rather : 20% 35% 45%
how can i implement this?
Thanks
6 months ago
Thanks for the Tip as well!
7 months ago