Info

Login

Channels

APIs

Credits

  • cheeser
  • ernimril
  • joed
  • kinabalu
  • lunk
  • ojacobson
  • r0bby
  • ThaDon
  • ricky_clarkson
  • topriddy

« 2018-12-11

2018-12-12

2018-12-13 »

Nick Message Date
immibis [immibis!~immibis@125-238-72-168-fibre.sparkbb.co.nz] has joined ##java [12:01]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [12:06]
jadesoturi [jadesoturi!~jadesotur@unaffiliated/kfj] has joined ##java [12:10]
sakhd_ [sakhd_!~sakhd@188.244.142.69] has joined ##java [12:18]
markedfinesse [markedfinesse!~markedfin@unaffiliated/markedfinesse] has joined ##java [12:19]
Nightwing52 [Nightwing52!~Thunderbi@tx-76-1-80-169.dhcp.embarqhsd.net] has joined ##java [12:19]
firewyre [firewyre!~firewyre@pool-108-49-101-141.bstnma.fios.verizon.net] has joined ##java [12:20]
doop [doop!~doop@colostomy.club] has joined ##java [12:20]
keepLearning512 [keepLearning512!~keepLearn@106.51.20.156] has joined ##java [12:20]
Quick_Wango [Quick_Wango!~quickwang@crha.fra1.cubyte.org] has joined ##java [12:21]
nfd9001 [nfd9001!~nfd9001@2601:602:8500:d0d1:838:6566:8043:2a6a] has joined ##java [12:21]
jadesoturi [jadesoturi!~jadesotur@unaffiliated/kfj] has joined ##java [12:22]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [12:22]
rtjure [rtjure!~rtjure@87.246.31.42] has joined ##java [12:22]
jadesoturi [jadesoturi!~jadesotur@unaffiliated/kfj] has joined ##java [12:26]
metrixx [metrixx!~metrixx@unaffiliated/metrixx] has joined ##java [12:30]
keepLearning512 [keepLearning512!~keepLearn@106.51.20.156] has joined ##java [12:41]
nokdoot [nokdoot!~nokdoot@123.212.109.70] has joined ##java [12:46]
jackhum [jackhum!~jackhum@2405:204:a02b:367e:bd3c:5865:3261:4dcf] has joined ##java [12:55]
CryptoCrook [CryptoCrook!~CryptoCro@unaffiliated/cryptocrook] has joined ##java [01:00]
headcr4sh [headcr4sh!~headcr4sh@ip-95-222-207-53.hsi15.unitymediagroup.de] has joined ##java [01:01]
headcr4sh [headcr4sh!~headcr4sh@ip-95-222-207-53.hsi15.unitymediagroup.de] has joined ##java [01:02]
goldstar [goldstar!~adm@unaffiliated/goldstar] has joined ##java [01:03]
aro I have an XML file in a String, how do i load that into XmlMapper [01:05]
headcr4sh [headcr4sh!~headcr4sh@ip-95-222-207-53.hsi15.unitymediagroup.de] has joined ##java [01:05]
headcr4sh [headcr4sh!~headcr4sh@ip-95-222-207-53.hsi15.unitymediagroup.de] has joined ##java [01:08]
headcr4sh [headcr4sh!~headcr4sh@ip-95-222-207-53.hsi15.unitymediagroup.de] has joined ##java [01:09]
BeerLover [BeerLover!~BeerBuddy@125.63.102.118] has joined ##java [01:10]
jackhum [jackhum!~jackhum@2405:204:a02b:367e:bd3c:5865:3261:4dcf] has joined ##java [01:10]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [01:21]
AMcBain [AMcBain!~Art@172.223.245.94] has joined ##java [01:29]
Anthaas [Anthaas!~Anthaas@unaffiliated/anthaas] has joined ##java [01:36]
bugzy_on_busy [bugzy_on_busy!~Thunderbi@64.52.85.12] has joined ##java [01:38]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [01:39]
aro I am trying to add a bean to my controller, but i get this error: Error creating bean with name 'mapRoute': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [01:45]
aro my others seem to load fine [01:45]
paddyez [paddyez!~paddyez@wikipedia/paddyez] has joined ##java [01:48]
runlevel7__ [runlevel7__!~runlevel7@cpe-76-85-26-199.tx.res.rr.com] has joined ##java [01:52]
karab44 [karab44!~karab44@unaffiliated/karab44] has joined ##java [01:59]
zulutango [zulutango!~zulutango@static-n49-176-171-248.mas2.nsw.optusnet.com.au] has joined ##java [02:01]
befuddled [befuddled!~befuddled@119.82.108.42] has joined ##java [02:02]
OnceMe [OnceMe!~OnceMe@unaffiliated/onceme] has joined ##java [02:10]
bnyio [bnyio!~bnyio@alcatraz.open-xchange.com] has joined ##java [02:12]
sb35 [sb35!~sb35@184.75.210.60] has joined ##java [02:12]
Chepra [Chepra!~chepra@summer.c137.eu] has joined ##java [02:19]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [02:21]
qwedfg [qwedfg!~adam@194.177.28.158] has joined ##java [02:31]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [02:36]
Tichodroma [Tichodroma!~lutz@fsf/member/Tichodroma] has joined ##java [02:36]
armyriad [armyriad!armyriad@gateway/vpn/privateinternetaccess/armyriad] has joined ##java [02:40]
mib_mib [mib_mib!18096d86@gateway/web/freenode/ip.24.9.109.134] has joined ##java [02:42]
mib_mib hi all - whats the most efficient way to read a large (1gb) entire stream into a byte array in memory? [02:42]
thornekey [thornekey!76d37895@gateway/web/freenode/ip.118.211.120.149] has joined ##java [02:43]
thornekey hi im trying to regex using java Pattern. Can someone help me figure out why it wont work. I need to capture the text inside this https://pastebin.com/dhttiism [02:48]
thornekey as you can see the reg needs to not worry about the id [02:48]
thornekey and get the inner text at the end of the html tag. [02:49]
thornekey and then it needs to stop just before the start of the last tag [02:49]
iam730 [iam730!~iam730@104.194.220.218] has joined ##java [02:50]
pbodev1 [pbodev1!~pbodev1@5-15-56-159.residential.rdsnet.ro] has joined ##java [02:51]
pbodev1 [pbodev1!~pbodev1@5-15-56-159.residential.rdsnet.ro] has joined ##java [02:52]
pbodev1 [pbodev1!~pbodev1@5-15-56-159.residential.rdsnet.ro] has joined ##java [02:52]
pbodev1 [pbodev1!~pbodev1@5-15-56-159.residential.rdsnet.ro] has joined ##java [02:52]
pbodev1 [pbodev1!~pbodev1@5-15-56-159.residential.rdsnet.ro] has joined ##java [02:52]
pbodev1 [pbodev1!~pbodev1@2a02:2f07:d308:5c00:20ea:45c:f74b:b316] has joined ##java [02:53]
pbodev1 [pbodev1!~pbodev1@2a02:2f07:d308:5c00:20ea:45c:f74b:b316] has joined ##java [02:53]
pbodev1 [pbodev1!~pbodev1@2a02:2f07:d308:5c00:20ea:45c:f74b:b316] has joined ##java [02:53]
keepLearning512 [keepLearning512!~keepLearn@106.51.20.156] has joined ##java [02:57]
mib_mib thornekey: there are parsers for html text - any reason you aren't using those? they would work better than trying to use regexes [02:57]
thornekey its not just 1 line of text i want to get in that inner part. its quite a bit of data. [02:59]
thornekey i just want to extract the raw inner JS (using Java) [02:59]
thornekey i have a raw HTML (with JS) string [03:00]
pbodev1 [pbodev1!~pbodev1@5-15-57-133.residential.rdsnet.ro] has joined ##java [03:01]
fanhako [fanhako!~fanhako@197.158.87.207] has joined ##java [03:01]
Bombe HTML parsers would still be a better tool for the job. [03:07]
thornekey ok so it can do somethign like this. [03:07]
thornekey will i be able to find this specific element : <div id="myDiv" class="myClass" id="_random id every time so have to ignore_"> [03:08]
thornekey and its children? [03:08]
bakwods_ [bakwods_!~zikani@41.221.106.174] has joined ##java [03:09]
acidjnk [acidjnk!~acid@i577BCAE3.versanet.de] has joined ##java [03:10]
mib_mib probably yah [03:12]
mib_mib much simpler in other languages, but java is just as fine i guess [03:12]
mib_mib thornekey: https://aboullaite.me/jsoup-html-parser-tutorial-examples/ [03:13]
Bombe Of course it can. jSoup can use selectors to find nodes in your DOM. [03:18]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:21]
bakwods_ [bakwods_!~zikani@41.221.106.174] has joined ##java [03:24]
led_dark_1 [led_dark_1!~Thunderbi@hotspot10.rywasoft.net] has joined ##java [03:29]
thornekey ok cool ill give it a shot :) [03:30]
mona_x [mona_x!~mona_x@82.99.53.134] has joined ##java [03:33]
Snoober [Snoober!~Snoober@2601:644:103:8400:b86a:d314:2550:9a17] has joined ##java [03:34]
mona_x [mona_x!~mona_x@m83-185-87-129.cust.tele2.se] has joined ##java [03:38]
powerbit [powerbit!~powerbit@5-15-177-185.residential.rdsnet.ro] has joined ##java [03:42]
Tobbi [Tobbi!~Tobbi@supertux/tobbi] has joined ##java [03:46]
keepLearning512 [keepLearning512!~keepLearn@106.51.20.156] has joined ##java [03:47]
DrowningElysium [DrowningElysium!uid190788@gateway/web/irccloud.com/x-nabkimmsllabtzlw] has joined ##java [03:48]
thornekey seems that jsoup wants to use online pages. i try to parse it just a html string that ive made up and it msgs looks like ur trying to access : like its tryna cnnect rather than just scrape offline html string [03:52]
yawkat no [03:52]
yawkat youre holding it wrong [03:52]
thornekey thought so [03:53]
thornekey https://pastebin.com/VbD3etwF is what ive tried [03:54]
Vurtatoo [Vurtatoo!~Vurtatoo@86.57.158.250] has joined ##java [03:55]
yawkat https://s.yawk.at/w2Go works fine for me [04:00]
magz [magz!~magz@68-168-184-223.fttp.usinternet.com] has joined ##java [04:01]
fabiim [fabiim!~fabiim@2a02:c7d:cae:7700:29aa:e20c:6ad8:b5b9] has joined ##java [04:05]
Snoober [Snoober!~Snoober@98.248.173.107] has joined ##java [04:05]
fabiim_ [fabiim_!~fabiim@171.68.244.56] has joined ##java [04:08]
Snoober [Snoober!~Snoober@98.248.173.107] has joined ##java [04:08]
Snoober [Snoober!~Snoober@98.248.173.107] has joined ##java [04:12]
bakwods [bakwods!~Thunderbi@41.221.106.174] has joined ##java [04:14]
gdrc [gdrc!~gdrc@unaffiliated/under] has joined ##java [04:20]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [04:21]
bugzy_on_busy [bugzy_on_busy!~Thunderbi@64.52.85.12] has joined ##java [04:23]
metrixx_ [metrixx_!~metrixx@unaffiliated/metrixx] has joined ##java [04:28]
Snoober [Snoober!~Snoober@98.248.173.107] has joined ##java [04:32]
bakwods_ [bakwods_!~zikani@41.221.106.174] has joined ##java [04:44]
Nicmavr [Nicmavr!~Nicmavr@unaffiliated/nicmavr] has joined ##java [04:45]
xa0s_ [xa0s_!xa0s@freeshell.org] has joined ##java [04:46]
UNIm95 [UNIm95!~unim95@80.156.238.188] has joined ##java [04:47]
Siamaster [Siamaster!53d137d6@gateway/web/freenode/ip.83.209.55.214] has joined ##java [04:49]
UNIm95 Hello. I have question about sonatype nexus. How can i block possibility of publishing packages through nexus to Maven? [04:49]
UNIm95 Nexus is working in Proxy mode? [04:49]
Maldivia sounds like a question for sonatype's support [04:50]
Siamaster Hi, I have a very very odd problem when sending an http multipart request from java [04:51]
Siamaster I've tried sending the same request through postman and javascript and there I have no problems [04:51]
Siamaster but in Java, no matter what http client I use, I get the same problem [04:52]
Maldivia Siamaster: well, you've still to actually say what that problem is :D [04:52]
Siamaster Right now I'm trying apache components : https://pastebin.com/1bEAwuxA [04:52]
yawkat hands Siamaster wireshark [04:52]
Siamaster wireshark is too complicated for me, But I tried using fiddler and I didn't get it [04:53]
crackin [crackin!~crackin@216.243.63.251] has joined ##java [04:53]
Siamaster as soon as I include the part "body" in my request [04:53]
Siamaster the real server I'm trying to connect to will respond with 500 [04:53]
gregf_ [gregf_!557336c9@gateway/web/freenode/ip.85.115.54.201] has joined ##java [04:53]
Siamaster If I post empty or anything else that doesn't include the "body" key, I will get 400 which is expected [04:54]
Maldivia well ,does it expect a a body param? [04:54]
immibis probably seeing the two different requests from the different platforms will help you figure it out immediately [04:54]
Siamaster yes [04:54]
thornekey i dont think wireshark is complicated. plus theres lots to read on it. [04:54]
Siamaster lucky you [04:54]
Siamaster P [04:54]
Maldivia Siamaster: does it actually require a body= something in the http request body? [04:54]
Siamaster I will learn it some time [04:55]
Maldivia Siamaster: because that's what you're doing right now [04:55]
Siamaster yes it does.. and that's why I'm getting 500 just if I use body [04:55]
immibis reading HTTPS with wireshark is surely complicated [04:55]
immibis IIRC wireshark has the ability to decrypt TLS, given the right keys, but getting those keys out of your application is an ordeal [04:55]
thornekey my class was forced to use it back in second year of operating sys and networking *shrieeeekkkk* [04:56]
toytoy [toytoy!~toytoy@unaffiliated/t0yt0y] has joined ##java [04:56]
Siamaster I was even thinking that perhaps "body" is reserved some how in Java so I created my own endpoint in Spring that requires body too but that worked [04:56]
immibis is fiddler a MITM tool? [04:56]
Maldivia immibis: yes [04:56]
immibis or, just log the request on your own test endpoint, from the two different clients, and see what's different between them [04:56]
mohsen_1 [mohsen_1!uid289573@gateway/web/irccloud.com/x-anashnnmfqubuyzi] has joined ##java [04:56]
Snoober [Snoober!~Snoober@98.248.173.107] has joined ##java [04:57]
Siamaster the endpoint actually expects body and image (which is actually a list of images) but sending incomplete request always returns 400 in both Postman and when using Javascript [04:57]
Maldivia Siamaster: well, dump the request, compare -- the easiest thing [04:58]
Siamaster but in Java, as soon I include "body" I get 500 from the server, if I only include "image" I get 400 which is correct again [04:58]
Siamaster I tried logging but how do you mean I should dump the request? [04:58]
Maldivia Siamaster: in a terminal: nc -l 8080 -- then try to send the request to "http://localhost:8080/whatever" -- then you should see teh full HTTP request in your terminal window [05:00]
enoq [enoq!~enoq@2a02:8388:6a87:b080:3f30:9f7d:611e:7eef] has joined ##java [05:01]
Siamaster_ [Siamaster_!53d137d6@gateway/web/freenode/ip.83.209.55.214] has joined ##java [05:02]
Siamaster_ sorry, I opened fiddler and connection was lost [05:02]
Siamaster_ so how do you suggest I should dump the request? [05:02]
Siamaster_ I'm having problems with fiddler since it's an https call [05:03]
Siamaster_ I set fiddler to decrypt but I just get "tunnels to" then can't see request [05:03]
Maldivia Siamaster: in a terminal: nc -l 8080 -- then try to send the request to "http://localhost:8080/whatever" -- then you should see teh full HTTP request in your terminal window [05:04]
Maldivia (or an equivalent tool on Windows) [05:05]
selckin apache httpclient will also let you configure logging to fully dump both request & response [05:05]
Siamaster_ ok ty! [05:05]
Siamaster_ I'm on ubuntu [05:06]
Siamaster_ But fiddler runs great on linux now with mono :) [05:06]
Aquazi [Aquazi!uid312403@gateway/web/irccloud.com/x-jmiqktihsxwksegw] has joined ##java [05:06]
bakwods [bakwods!~Thunderbi@41.221.106.174] has joined ##java [05:06]
Siamaster_ selckin I did that and couldn't see the problem [05:06]
selckin okhttp is easier to use [05:06]
Siamaster_ hmm I haven't tried that one [05:06]
Siamaster_ ty [05:06]
selckin Siamaster_: well make them identical to the ones that work [05:06]
Siamaster_ nothing works from Java so I can't tell [05:07]
Siamaster_ and it seems identical to one from Postman and javascript when using requestinterceptors [05:07]
selckin did you read the error the server sends back from your example? [05:14]
selckin body of the reply, you don't print it, but the client logs it [05:14]
Snoober [Snoober!~Snoober@98.248.173.107] has joined ##java [05:15]
shangul [shangul!~shangul@unaffiliated/shangul] has joined ##java [05:19]
Siamaster_ Yes I posted to localhost and monitored with nc -l [05:19]
Siamaster_ and I found some differences in my java request from my postman and javascript [05:20]
Siamaster_ But I don't know how to correct them, it seems very detailed [05:20]
Siamaster_ https://pastebin.com/VE8BDtxZ [05:20]
Siamaster_ forexample, for boundary, in java, I get : boundary=DN4MKgnoV72GhSC-Gfg1pwYA5i5Vhd4x57mr [05:21]
Maldivia boundry is correct [05:21]
Siamaster_ whereas in Post and Javascript I get numbers, boundary=--------------------------437164754069355998906866 or boundary=--------------------------748884262877382252338846 [05:21]
Maldivia that's just suppose to be a "random" string that doesn't occur in the actual data [05:21]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [05:21]
Siamaster_ aha [05:21]
yawkat are you actually a legitimate user of this api? [05:22]
Siamaster_ could it be the extra content-type parameters that occur in the java request? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit [05:23]
yawkat guesses user agent [05:23]
Siamaster_ yawkat I'm trying to compare the requests. In the end I'm using a different endpoint [05:23]
Siamaster_ so you mean the server is I'm trying to use don't like User-Agent: Apache-HttpClient/4.5.6 (Java/1.8.0_171)? [05:24]
fanhako [fanhako!~fanhako@197.158.87.207] has joined ##java [05:24]
yawkat yes. if the api isnt public, it's common to block java user agents. [05:24]
Siamaster_ it's public [05:24]
Siamaster_ it likes javascript and postman [05:24]
keepLearning512 [keepLearning512!~keepLearn@106.51.20.156] has joined ##java [05:25]
Siamaster_ I tried httppost.setHeader("User-Agent", " PostmanRuntime/7.4.0"); got same result [05:27]
selckin Siamaster_: MultipartEntityBuilder.create().setMode(HttpMultipartMode.BROWSER_COMPATIBLE) with your example and the error messages start being friendlier [05:28]
selckin it doesn't like Content-Type inside the multipart [05:28]
deavmi [deavmi!~Thunderbi@165.0.49.2] has joined ##java [05:29]
Siamaster_ selckin thanks a lot, using Browser_compatible now returns 400 [05:29]
Siamaster_ aha [05:29]
Siamaster_ <3 [05:29]
Siamaster_ I would never have figured it out. Have spend like 5 hours [05:29]
Siamaster_ thanks everyone! [05:29]
yawkat selckin++ [05:31]
yawkat selckin has a karma level of 89, yawkat [05:31]
selckin also sounds like you still haven't read/seen the body of the error [05:35]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [05:38]
ogradyd [ogradyd!~Thunderbi@HSI-KBW-078-043-040-024.hsi4.kabel-badenwuerttemberg.de] has joined ##java [05:38]
Siamaster_ not from Java, but I'm figuring it out now. Just need to find a way to mimic Browser_compatible with Springs restclient [05:43]
Markow [Markow!~ejm@176.122.215.103] has joined ##java [05:43]
DTZUZO [DTZUZO!~DTZUZO@S0106bcd16584b0aa.vs.shawcable.net] has joined ##java [05:44]
BeerLove_ [BeerLove_!~BeerBuddy@125.63.102.118] has joined ##java [05:48]
UNIm95 [UNIm95!~unim95@80.156.238.188] has joined ##java [05:49]
strainwrld [strainwrld!~strainwrl@a79-168-47-139.cpe.netcabo.pt] has joined ##java [05:58]
bolovanos_ [bolovanos_!~bolovanos@91.201.22.5] has joined ##java [06:07]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [06:22]
MrFrank [MrFrank!~MrFrank@198.46.182.179] has joined ##java [06:25]
MrFrank Hi, I have a problem building with gradle [06:26]
MrFrank It says "Error: Program type already present: javax.annotation.CheckReturnValue" [06:26]
MrFrank I tried gradlew app:dependencies but can't find any javax.annotation [06:26]
yawkat can you show your gradle config [06:27]
MrFrank sure [06:27]
MrFrank https://pastebin.com/R2SxctBi [06:27]
yawkat android [06:27]
yawkat Android is Google's OS based on Linux and a non-Java-bytecode Virtual Machine. See http://developer.android.com/ . Start in #android-dev if you have Android development questions - and if you use Android's API or you're running it on Android, you have an Android development question. [06:27]
Maldivia Andriod... but a hint: probably one/some of those libraries bundled those annotation classes [06:28]
yawkat yea, android has odd packaging that might not eat all java libraries [06:28]
sebastianlutter [sebastianlutter!~sebastian@ip5f5ae8c6.dynamic.kabel-deutschland.de] has joined ##java [06:35]
mona_x [mona_x!~mona_x@82.99.53.134] has joined ##java [06:41]
widp_ [widp_!~widp@194.95.4.230] has joined ##java [06:46]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [06:46]
SerialSmile [SerialSmile!~SerialSmi@83.102.135.113] has joined ##java [06:48]
[twisti] MrFrank: try gradle app:dependencies [07:02]
[twisti] oh sorry, 5 minute rule [07:02]
[twisti] javax.annotation.CheckReturnValue is jsr-305, so probably checkstyle dependency [07:03]
bakwods_ [bakwods_!~zikani@41.221.106.174] has joined ##java [07:06]
yawkat http://cr.openjdk.java.net/~afarley/8215217/webrev/ [07:07]
yawkat "Bitch Bend sensitivity" [07:07]
[twisti] jesus [07:14]
Maldivia "Calamity! q is too big." -- I like that replacement :D [07:16]
ma1uta Why? [07:16]
yawkat "calamity" is used way too rarely [07:17]
sonOfRa When using swagger's ApiResponse(code = 200, message = "Something something") does that imply the server will send "200 Something something", or is the message just there to document in what case HTTP 200 will be sent? [07:19]
ma1uta I hope this pr will be declined. [07:19]
yawkat sonOfRa: id guess the latter [07:19]
[twisti] id guess the former [07:19]
sonOfRa D [07:19]
ma1uta Latter [07:19]
sonOfRa Because the http standard doesn't really say that "200 OK" must be. it just says that 200 is OK, and the words after it can be anything you like, really [07:20]
[twisti] its beyond common to receive api answers as code+message bundles [07:20]
ma1uta `message` means semantic but not message which will be sent in response. [07:20]
[twisti] its confusing because you are thinking of HTTP 200. but think of HTTP 500 instead, and the fact that there are details in the message make a lot more sense [07:21]
[twisti] im just guessing though, i havent touched swagger in like two years [07:21]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [07:22]
yawkat "Additionally, more swear words can be found primarily in two locations: [...] hb-private.hh's "Common Region for Access Protection" type, whose acronym is used in several places both inside that file, and other files. (No doubt the author is very pleased with themselves.) " [07:25]
sonOfRa Thing is that in Spring, HttpStatus is an enum, and the "OK" part is hard-coded. So no real way to change the status line [07:25]
sonOfRa I'm not talking about the *response body*, but the response status, which in http consists first of the numerical code and then a string, but the string isn't actually standardized, it's just normally the meaning of the status code, but in words [07:26]
yawkat it's fixed in very many applications and you should not rely on it being changeable or accessible, so i doubt swagger would expose it [07:28]
Maldivia I think I'll start referring to checked exceptions as "wretched" from now on :D [07:28]
sonOfRa Which might be "HTTP/1.1 500 server dun goofd" or "HTTP/1.1 500 Internal Server Error" [07:28]
sonOfRa yawkat: that makes sense, yeah. I guess I'll interpret that message part as documentation for the reader then [07:30]
Lengsdorfer2 [Lengsdorfer2!~Lengsdorf@unaffiliated/lengsdorfer] has joined ##java [07:34]
ankk [ankk!b9dc98f9@gateway/web/freenode/ip.185.220.152.249] has joined ##java [07:40]
rwheadon [rwheadon!~rwheadon@71-156-76-162.lightspeed.tukrga.sbcglobal.net] has joined ##java [07:47]
bak1an [bak1an!~bak1an@host203.181-10-72.telecom.net.ar] has joined ##java [07:49]
keepLearning512 [keepLearning512!~keepLearn@106.51.20.156] has joined ##java [07:52]
slamzy [slamzy!~slamzy@gateway/tor-sasl/slamzy] has joined ##java [07:53]
BeerLover [BeerLover!~BeerBuddy@125.63.102.118] has joined ##java [07:56]
jackhum [jackhum!~jackhum@117.234.105.128] has joined ##java [08:06]
gesker [gesker!~gesker@host-69-144-17-114.static.bresnan.net] has joined ##java [08:06]
RubenMarrero [RubenMarrero!~tux@143.red-83-46-222.dynamicip.rima-tde.net] has joined ##java [08:11]
BeerLove_ [BeerLove_!~BeerBuddy@125.63.102.118] has joined ##java [08:15]
Dirkos [Dirkos!5d75ef5a@gateway/web/freenode/ip.93.117.239.90] has joined ##java [08:19]
Dirkos Don't know if this is the right forum but in Intelij im trying to set: es.set.netty.runtime.available.processors as argument for my debugger since Elasticsearch requires it. In my gradle output i see it reflecting properly as: "14:17:37: Executing task 'bootRun -Des.set.netty.runtime.available.processors=false" but the app keeps crashing there [08:20]
Dirkos Any ideas or am i just doing something wrong maybe? Set the value as: Run > Configurations > VM options [08:20]
Maldivia Dirkos: bootRun -- that looks like you're setting it as a property for gradle and not for the app your running? [08:21]
Dirkos Maldivia: yeah well no idea how to set it for the app then [08:21]
Dirkos its a VM option right? Atleast according the debug menu [08:21]
Maldivia Dirkos: add it in your gradle conf instead [08:23]
Maldivia Dirkos: https://stackoverflow.com/questions/25079244/how-to-pass-jvm-options-from-bootrun [08:23]
bnyio [bnyio!~bnyio@alcatraz.open-xchange.com] has joined ##java [08:25]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [08:27]
Dirkos Maldivia: then it works, thanks [08:30]
Pauldron [Pauldron!3ecc5f06@gateway/web/freenode/ip.62.204.95.6] has joined ##java [08:41]
Pauldron which paste bin type of app do you use to post code on [08:41]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [08:41]
Maldivia pastebin [08:41]
Maldivia Please paste your code and any errors online. For runnable main-classes, try https://glot.io/new/java . For general code and errors, use for instance https://gist.github.com or https://www.hastebin.com [08:41]
Maldivia Pauldron: anything that isn't annoying, littered with ads, etc [08:42]
Pauldron right [08:42]
spuz [spuz!~spuz@fpc73586-dals20-2-0-cust12.20-2.static.cable.virginm.net] has joined ##java [08:42]
Pauldron parted the channel: [08:43]
dreamreal interesting *java* question he had there. [08:44]
spuz pastebin [08:45]
spuz Please paste your code and any errors online. For runnable main-classes, try https://glot.io/new/java . For general code and errors, use for instance https://gist.github.com or https://www.hastebin.com [08:45]
spuz hmm hastebin does not appear to work... [08:48]
dreamreal Comes up for me [08:48]
dreamreal but feel free to fix the factoid if you think it's wrong [08:48]
spuz it comes up, but I cannot save [08:49]
spuz eventually it pops up with "Something went wrong" [08:49]
spuz gist.github.com does not appear to work without a github account either... [08:49]
dreamreal hastebin does seem to be having problems. gist needing github makes perfect sense. but hastebin not working... meh [08:50]
dreamreal fix the factoid [08:50]
spuz I don't know of any good pastebins [08:51]
dreamreal gist.github.com, mysticpaste.com [08:51]
Maldivia yeah, hastebin sometimes have some issues, but I personally like it, since it's clean and simple [08:52]
dreamreal "clean and simple" needs to defer to "working" though :) [08:52]
spuz Is it good practice to use contains on a Set that contains items that do not implement hashCode and equals? I.e. : https://glot.io/snippets/f7itu06b0a [08:53]
spuz I suppose there is no guarantee that getFoos(items) returns instances contained in items... [08:53]
dreamreal spuz: does it WORK when you do that? [08:53]
Maldivia spuz: assuming it's the exact same instance, that will work just fine then [08:54]
spuz dreamreal: yeah it works [08:54]
Maldivia dreamreal: my goto paste sites are hastebin and ghostbin :D [08:54]
marataziat [marataziat!uid316278@gateway/web/irccloud.com/x-zrqxtunqanqngrgm] has joined ##java [08:55]
dreamreal I don't know that I have go-to paste sites [08:55]
marataziat Is there any alternatives to -Xbootclasspath/p ? [08:56]
Maldivia marataziat: for Java 9+, you can patch modules instead [08:56]
yawkat no? [08:56]
yawkat oh you mean for past 8? [08:56]
jackhum [jackhum!~jackhum@2405:204:a02b:367e:bd3c:5865:3261:4dcf] has joined ##java [08:58]
marataziat maldivia: Which argument need I use? [08:59]
mr_lou [mr_lou!~misthalos@085083077157.dynamic.telenor.dk] has joined ##java [08:59]
Maldivia --patch-modulee [09:01]
Maldivia ehh, single [09:01]
Maldivia e [09:01]
sonOfRa I have a hibernate entity, which I'm saving via a spring repository (entitymanager under the hood, I assume). The entity has a List of child entities, which I'm not saving separately, but using CascadeType.ALL to automatically save when the root entity is saved. However, when the *child* entity fails validation, instead of just bubbling the ConstraintViolationException up the stack, I'm now getting a hibernate AssertionFailure because the ID of the [09:04]
sonOfRa child instance is null, which is not allowed [09:04]
sonOfRa I have exception handlers for the constraintviolation, but it seems odd to try to handle Hibernate AssertionFailures. Is there some way to either suppress this or some other thing that I'm doing wrong here? [09:05]
jones432 [jones432!~some@clients-pool-1.nat.ru.is] has joined ##java [09:13]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [09:17]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [09:19]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [09:23]
learningc [learningc!~learningc@210.195.49.213] has joined ##java [09:25]
patsToms [patsToms!~patsToms@tzt.lv] has joined ##java [09:28]
UNIm95 [UNIm95!~unim95@80.156.238.188] has joined ##java [09:38]
bakwods_ [bakwods_!~zikani@41.221.106.174] has joined ##java [09:38]
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java [09:49]
rippa [rippa!~rippa@ppp-vpdn-37.1.85.157.yarnet.ru] has joined ##java [09:53]
neredsenvy [neredsenvy!59d48f74@gateway/web/freenode/ip.89.212.143.116] has joined ##java [09:55]
vdamewood [vdamewood!~vdamewood@unaffiliated/vdamewood] has joined ##java [09:56]
neredsenvy pastebin [09:56]
neredsenvy Please paste your code and any errors online. For runnable main-classes, try https://glot.io/new/java . For general code and errors, use for instance https://gist.github.com or https://www.hastebin.com [09:56]
sonOfRa Above issue is solved, was some silly transaction nonsense that only happened in my tests [09:58]
gemini2015 [gemini2015!gemini2015@gateway/shell/panicbnc/x-qgomgpjgpooskjal] has joined ##java [09:58]
CAPITANOOO [CAPITANOOO!~CAPITANOO@185.192.137.15] has joined ##java [10:00]
RedSoxFan07 [RedSoxFan07!~Thunderbi@137.103.109.45] has joined ##java [10:03]
pjs902 [pjs902!~quassel@hlfxns018gw-134-41-26-80.dhcp-dynamic.fibreop.ns.bellaliant.net] has joined ##java [10:03]
neiluj [neiluj!~neiluj@unaffiliated/neiluj] has joined ##java [10:05]
neiluj It's been some time I realized dealing with null values is exhausting... is there a way to never deal with them in Java [10:06]
neiluj moreover it's bad design because objects should never have an incomplete state [10:06]
neiluj hey o/ [10:08]
cheeser depends on where the nulls are [10:08]
pmercado [pmercado!~pmercado@190-22-251-205.baf.movistar.cl] has joined ##java [10:08]
cheeser and what constitutes a "complete" state [10:08]
neiluj in an attribute of an object I mean [10:09]
Gustavo6046 [Gustavo6046!~Gustavo60@unaffiliated/gustavo6046] has joined ##java [10:09]
sonOfRa Lombok's nonnull or notnull annotation (I can never remember) inserts null checks automatically to make things fail early [10:09]
sonOfRa That helps [10:09]
neiluj by a complete state I mean all attributes are set, so that my object is completely determined [10:09]
sonOfRa Or you can use kotlin! [10:09]
neiluj because I'm tired to always assume my object could be null, or some of its attributes [10:10]
junktext__ [junktext__!junktext@fsf/member/junktext] has joined ##java [10:10]
neredsenvy I have a job-task class https://glot.io/snippets/f7ivx4d0ah . Tasks notify Job's as they are finished. Tasks are updated from different threads. For the most time the code works however at times the code runs into a deadlock on either of the two lines I commented. [10:10]
neredsenvy Is this because I'm accessing the class variables directly ? [10:11]
neredsenvy Should I use synchronized getters ? [10:11]
cheeser neredsenvy: then use constructors to ensure every field is set [10:12]
ernimril neredsenvy, if you already get deadlock then adding more locks will most probably only cause you more problems [10:12]
neiluj hum, notnull annotations will save my time! [10:12]
ernimril neredsenvy, if you get deadlocks, then grab some full thread dumps and figure out what is the cause of the deadlock and rework your locking so that it actually is correct [10:13]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [10:13]
nk801 [nk801!~Adium@59.41.165.67] has joined ##java [10:13]
nfd [nfd!~nfd9001@c-73-157-90-101.hsd1.wa.comcast.net] has joined ##java [10:14]
neredsenvy ernimril: Well I did and the stacktrace points to both isCompleted methods. [10:15]
Markow [Markow!~ejm@176.122.215.103] has joined ##java [10:16]
ernimril neredsenvy, too little information for us to say anything [10:16]
ernimril neredsenvy, do you have a full thread dump? [10:16]