« first day (2848 days earlier)      last day (2317 days later) » 

00:00
"Only a man who knows what it is like to be defeated can reach down to the bottom of his soul and come up with the extra ounce of power it takes to win when the match is even." -Mohamad Ali (source)
00:57
farts
 
5 hours later…
05:46
i have a set of events belonging to a subscriber that i can't reverse till i get a subscriber state from the db . if i have two separate processes - 1) single thread reverse service 2) service that makes a db call and cache subscriber state so can be used by 1, is it a proper pattern for the reverse service to push those events back to queue if the cache is yet to be populated so that it can be reprocessed later
07:02
posted on August 10, 2018

archive - contact - sexy exciting merchandise - search - about ← previousAugust 10th, 2018nextAugust 10th, 2018: Look: sometimes you write the comics, and sometimes the comics write themselves.– Ryan

morn
user8622974
morn
morn
07:18
morn
07:42
morn
user8622974
morn
morn
@venkateshp Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
USM
USM
08:01
morn
user8622974
morn
morn
Zoe
Zoe
morn
user8622974
morn
08:13
morn
i guess the joke it too subtle
@venkateshp Please don't use chat as fastlane for your questions. Instead, wait a few days before asking here to give the people on the main site some time. If we want to answer questions there, we will look for them on our own.
@wietlol mom to you too
08:46
gotta love devops...
> Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
Excuse me, what the fcuk?
hehe
@Nicktar 0.o?
Hello Java!
Hello Me!
Hey Kanth :)
08:56
what's up
Cursing at my wildfly
And youtube autoplay for suggesting me a 20 hour powerwolf marathon.
Sun is up
Ok that is stupid....
:D
The exception is for absolutely no reason
I copied a file to the jar, removed it and now everything works.
That is so bullshit.
08:59
@Wietlol struggling with gitlab and subgit...
> Calvin Candie: Bright day, huh, Bright Boy?
Django: Sun is up.
Calvin Candie: Shinin’ on all of us.
- Django Unchained
Good mornin'. Nice day for fishin' ain't it?
Zoe
Zoe
@geisterfurz007 That's just weird xD
"Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory" - that's a typical error you get when the same class is loaded in two different classloaders.
09:17
I have no clue why though. I guess the initial problem was that I had the gradle dependencies marked as compile instead of providedCompile and then touching the wildfly version of the jar fully resolved it.
Putting things on compile scope that are provided by the container is a pretty common cause.
Web environments are a tricky thing as they heavily make use of classloaders to isolate classpaths between deployed applications and the container itself. Wildfly extends that even further by having an entire module system with configurable visibility.
That's too complicated for me :P But it works now which is good :D
You can keep it simple by being really picky about your dependencies. I simple start is to rely on the JavaEE dependency (mvnrepository.com/artifact/javax/javaee-api/8.0) and make darned sure that's provided. Anything not put in your project by that dependency, you are probably safe to deploy along with your web application.
What would the difference be? I can still work with them because as I take them through gradle the API is in that jar and the wildfly can implement the stuff through whatever it wants?
good noon
o/
09:28
\o
user8622974
\o
noon
@geisterfurz007 where are you flying this weekend ??
Landing close to Berlin.
About 10 km from the cities center I'd say
that's great, it will be great fun this weekend, right ??
09:31
I hope so. Last two times I went flying I had to fly back because of thunderstorms in the way :D
lolzzzz, hope for the best .. this time you will not see any surprises in mid way.
At your place storms are bit frequent ??
Not usually. There is just generally hot weather currently so towards evening the clouds start cumulating and from there it sometimes doesn't take long for one to become a thunderstorm cloud.
ohh ok..
@geisterfurz007 see it like this: Wildfly IS an implementation of the JavaEE specification. It must provide everything you need to create a JavaEE application. So it provides an implementation for JAX-RS, it provides an implementation for JAX-WS, it has a JMS subsystem, can do container managed transactions for JPA and provides the JPA implementation itself, etc. etc. That's all taken care of for you.
However, you also need to be able to compile your code. That's what the JavaEE8-API is for. You mark it provided because Wildfly "provides" the implementation for it at runtime, you do not want to be packaging any JavaEE specification-related classes along with your application. When deployed in Wildfly, the stuff needed is already there.
i still think compile-only is a better name
09:45
it definitely is
sure, provided makes sense in this case
but it doesnt in every other case
@Gimby That makes a lot of sense! Thanks :)
 
2 hours later…
11:37
bck
Zoe
Zoe
wb
dilligaf
11:50
@Zoe thanks :)
Ice cream was first invented in seventh-century China, where King Tang of Shang had a group of "ice men" create a cold dessert made from buffalo milk, flour, and camphor. (source)
12:18
King Tang of Shang, that would be my porn name.
13:11
Happy Friday, Jaba!
@geisterfurz007 happy journey once again XD
@Michael Howdy!
13:29
Good morning
Good morning.
user8622974
Good morning
@Kanth! :D
Does anyone knows what's the equivalente to the "Webapps" Folder in the Tomcat, in Websphere? If there is such a thing
If Websphere is anything like OpenLiberty then there should be a "dropins" folder where you can put your wars for deployment.
13:42
I'm not sure if i'm using webapps for the right purpose though.. I put my js/css libraries, images, etc
because it's easy to accesss it
I wanted something similar on websphere
13:53
Basically what Tomcat allows is to do an "exploded war" deployment, where the war is actually just a directory. Then you have some freedom to just update resources on the fly. It is up to the JEE container if it supports something similar, so far I don't really see hints that Websphere supports something like it.
Zoe
Zoe
Hiya @Michael
@geisterfurz007 Enjoy
@Gimby I see, thanks a lot!!
Hi guyss
I go to sea!! :) See you 27 August
14:15
@Zoe the jackson writer writes Enums like this hastebin.com/mejuvafuri.coffeescript
where FROM is the enum and the rest is an object
how is FROM the enum?
@Wietlol because it has been written as such into the json
and defined like this: FROM("--from")
but how is that an enum?
i see a connection url
table names and columns
that is stuff you should not have in an enum afaik
it is a projection of a Map<Enum,MyObject> to a json file
then your enum is written as a string
14:21
of course it is because it is a json file
but
when I deserialize it, Jackson knows that it is an enum
jackson knows it is an enum because you deserialize a Map<MyEnum, MyObject>
if you deserialize to an Object, you just get strings
of course
the idea is saving input options as a template and reload them into my gui from a json file
and no you don't get Strings when deserializing
I got some nifty things in a linkedhashmap
which was surprising :D
yes, you get a Map<String, Object>
14:28
I put the type of the map value object inside so I can deserialize it using its original type
hmm... this looks bad
if you serialize a Map<MyObject, MyOtherObject> your keys will simply be put as a toString
which is actually a toDebugString
which you cannot rely on to have a properly reversible format
@Wietlol use your own CustomSerializer
on a hashmap?
Zoe
Zoe
@motaa from what I can tell, you should be able to use the deserializeClass method or whatever it's called
wait, no. If it's an enum, it can't be initialized.
i prefer protobuf though
Zoe
Zoe
14:36
Unless there's some reflection or something else that enables it
it is afaik, the only format that actually works for serialization
(or similar ones)
its not human readable though
If you're going to serialise a map with a complex key type, you're kind of going one step too far though :)
why so?
[ { "key": "bla bla", "value": "bla bla" }, { "key": "foo", "value": "bar" } ]
i know they are not complex types, but the idea is to treat the map as an actual collection of pairs
exactly what a map is
@Zoe I'm checking that out right now
15:10
posted on August 10, 2018 by CommitStrip

15:27
This javax json confuses me. I've got this array: [ { key: value } ] - I have made the JsonReader. Do I now do 'JsonReader.readObject' and then with the object I do 'JsonObject.getJsonArray' ?
and pass in the array?
 
6 hours later…
21:35
dreams of electric sheep
Zoe
Zoe
22:13
3 rep away from 8k owo
 
1 hour later…
23:33
@Zoe congratulations on reaching 8k rep!
Zoe
Zoe
23:56
@JennaSloan \o/

« first day (2848 days earlier)      last day (2317 days later) »