Java

Dedicated to the discussion of the Java programming language a...
Oct 21, 2017 11:41
Any help please?
Oct 21, 2017 11:41
And this is the resource part paste.ofcode.org/XSZzFfmvZSfxCw5MisjH7u
Oct 21, 2017 11:37
And this is the test I'm running paste.ofcode.org/gRC7FR52xmvcJTzyQEHTRd
Oct 21, 2017 11:34
This is the source paste.ofcode.org/6sqjsYv7arWVL2xprMwhe3. The name part
Oct 21, 2017 11:34
Hello. Please I need help figuring out what I might be doing wrong. This is the exception I'm getting "com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token"
Oct 2, 2017 16:16
I dont know if it has to do with me extending the CommonData class in the model class for the id and other params
Oct 2, 2017 15:58
I'm running the app through docker with elastic search and others. Don't know how to take just those parts to create an mcve @JennaSloan
Oct 2, 2017 15:55
Can't seem to figure out what's wrong
Oct 2, 2017 15:49
Any directions?
Oct 2, 2017 15:45
@Wietlol anything I'm doing wrong?
Oct 2, 2017 15:02
ok
Oct 2, 2017 14:57
ok sorry. Still learning the rules
Oct 2, 2017 14:52
@fge @Wietlol my migration pastebin.com/HgMe8C4d
Oct 2, 2017 14:50
@Wietlol part of my resource file pastebin.com/LWmbsPE6
Oct 2, 2017 14:46
my Access class pastebin.com/V4zKrSjX
Oct 2, 2017 14:45
@fge my sql query pastebin.com/dJ2Pgvzg
Oct 2, 2017 14:43
@geisterfurz007 ok
Oct 2, 2017 14:42
@fge @Wietlol this is the commondata class pastebin.com/ZXA5v0xU
Oct 2, 2017 14:40
@fge @Wietlol this is my account class pastebin.com/3PnmrSgT
Oct 2, 2017 14:35
@Wietlol I tried google and most answers had to do with getters and setters which I already have in place
Oct 2, 2017 14:34
@fge in a minute
Oct 2, 2017 11:50
This happens when I try to insert into the db
Oct 2, 2017 11:48
Hello all. I'm trying to solve this issue but can't seem to find what I'm doing wrong. org.jdbi.v3.core.statement.UnableToExecuteStatementException: Unable to execute, no named parameter matches "some.id" and no positional param for place 0 (which is 1 in the JDBC 'start at 1' scheme) has been set
Oct 1, 2017 15:53
@Wietlol Any help or suggestion?
Oct 1, 2017 15:43
It doesn't seem to even enter the POST method
Oct 1, 2017 15:42
Hello.. Is there a way to log to find out root cause of code:400 "Unable to process JSON"?
Oct 1, 2017 13:26
@Wietlol thanks so much. It worked.
Oct 1, 2017 13:20
@Wietlol ok thanks. Would try that
Oct 1, 2017 13:19
@Wietlol Ok. So the best way would be to check if it's equal to null?
Oct 1, 2017 13:17
@Wietlol sorry let me try
Oct 1, 2017 13:16
@Wietlol I'm not arguing
Oct 1, 2017 13:16
String b = rs.getString("somebal");
Oct 1, 2017 13:15
@Wietlol I did String a = rs.getString("line_count");
Oct 1, 2017 13:15
@Wietlol or you want me to call it twice?
Oct 1, 2017 13:14
I didn't call it twice. One is for the line count and the other is for bal
Oct 1, 2017 13:13
@Wietlol a: 0, b: null
Oct 1, 2017 13:04
@Wietlol oops sorry
Oct 1, 2017 13:02
@Wietlol java.lang.NullPointerException: null
at java.math.BigDecimal.<init>(BigDecimal.java:806)
Oct 1, 2017 13:00
@Wietlol ok
Oct 1, 2017 12:58
@Wietlol new BigDecimal(balance);
Oct 1, 2017 12:55
Initially it was on the BigDecimal part. That's when I added the check for it's empty
Oct 1, 2017 12:54
@Wietlol SomeBalMapper.map(SomeBalMapper.java:16)
SomeBalMapper.map(SomeBalMapper.java:12)
Oct 1, 2017 12:53
@Wietlol
Oct 1, 2017 12:53
the map call
Oct 1, 2017 12:51
Sorry I think the time was set to 10 minutes
Oct 1, 2017 12:51
Oct 1, 2017 12:49
@Wietlol sorry let me fix it
Oct 1, 2017 12:15
@Sayros pastebin.com/NNMAhyDT I tried this and now getting null pointer exception
Oct 1, 2017 11:20
@Sayros ok thanks. I will look into that
Oct 1, 2017 11:15
Any help would be appreciated. I'm using dropwizard with jdbi3