Skip to content

Commit c924eec

Browse files
committed
resolve json serializer exception for 4xx error
1 parent 39fde0e commit c924eec

File tree

8 files changed

+17
-15
lines changed

8 files changed

+17
-15
lines changed

ipp-java-qbapihelper/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
<parent>
2222
<artifactId>ipp-v3-java-devkit-pom</artifactId>
2323
<groupId>com.intuit.quickbooks-online</groupId>
24-
<version>3.0.3</version>
24+
<version>3.0.4</version>
2525
</parent>
2626
<artifactId>ipp-java-qbapihelper</artifactId>
27-
<version>3.0.3</version>
27+
<version>3.0.4</version>
2828
<packaging>jar</packaging>
2929
<name>Quickbooks API Helper for Oauth</name>
3030
<description>Quickbooks API Helper Project for OAuth, Disconnect and Reconnect</description>

ipp-v3-java-data/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<parent>
55
<groupId>com.intuit.quickbooks-online</groupId>
66
<artifactId>ipp-v3-java-devkit-pom</artifactId>
7-
<version>3.0.3</version>
7+
<version>3.0.4</version>
88
</parent>
99

1010
<artifactId>ipp-v3-java-data</artifactId>
1111
<name>IPP V3 Java - Data Project</name>
1212
<description>IPP Java V3 DevKit Data project - FMS Entities generation</description>
13-
<version>3.0.3</version>
13+
<version>3.0.4</version>
1414

1515
<properties>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

ipp-v3-java-devkit/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<parent>
77
<artifactId>ipp-v3-java-devkit-pom</artifactId>
88
<groupId>com.intuit.quickbooks-online</groupId>
9-
<version>3.0.3</version>
9+
<version>3.0.4</version>
1010
</parent>
1111

1212
<artifactId>ipp-v3-java-devkit</artifactId>
13-
<version>3.0.3</version>
13+
<version>3.0.4</version>
1414
<packaging>jar</packaging>
1515
<name>IPP V3 Java Devkit - Development Project</name>
1616
<description>IPP Java V3 DevKit Project - Core</description>
@@ -25,7 +25,7 @@
2525
<dependency>
2626
<groupId>com.intuit.quickbooks-online</groupId>
2727
<artifactId>ipp-v3-java-data</artifactId>
28-
<version>3.0.3</version>
28+
<version>3.0.4</version>
2929
</dependency>
3030
</dependencies>
3131

ipp-v3-java-devkit/src/main/java/com/intuit/ipp/serialization/IntuitResponseDeserializer.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector;
4343
import com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair;
4444
import com.fasterxml.jackson.databind.DeserializationFeature;
45+
import com.fasterxml.jackson.databind.MapperFeature;
4546

4647
import com.intuit.ipp.util.DateUtils;
4748
import com.intuit.ipp.util.Logger;
@@ -166,10 +167,11 @@ public IntuitResponse deserialize(JsonParser jp, DeserializationContext desConte
166167

167168
//Attributes
168169
if (key.equalsIgnoreCase(FAULT)) {
169-
qr.setFault(mapper.treeToValue(jn.get(FAULT), Fault.class));
170+
mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
171+
qr.setFault(mapper.treeToValue(jn.get(key), Fault.class));
170172
continue;
171173
} else if (key.equalsIgnoreCase(REPORT)) {
172-
qr.setReport(mapper.treeToValue(jn.get(REPORT), Report.class));
174+
qr.setReport(mapper.treeToValue(jn.get(key), Report.class));
173175
} else if (key.equalsIgnoreCase(HEADER)) {
174176
ReportHeader header = mapper.treeToValue(jn.get(HEADER), ReportHeader.class);
175177
report.setHeader(header);
@@ -185,7 +187,7 @@ public IntuitResponse deserialize(JsonParser jp, DeserializationContext desConte
185187
try {
186188
qr.setTime(DateUtils.getDateFromString(jn.get(TIME).textValue()));
187189
} catch (Exception e) {
188-
LOG.error("Exception while converting to date", e);
190+
//LOG.error("Exception while converting to date", e);
189191
}
190192
} else if (key.equals(STATUS)) {
191193
qr.setStatus(jn.get(STATUS).textValue());

ipp-v3-java-devkit/src/main/resources/ippdevkit.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Devkit Version
44
# This version has to be updated according to the pom version
5-
version = 3.0.3
5+
version = 3.0.4
66

77
# This is to have the request source to be sent to IDS request header
88
request.source = V3JavaSDK

ipp-v3-java-devkit/src/test/resources/ippdevkit.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### IPP Dev Kit helper properties
22

33
## Devkit version
4-
version = 3.0.3
4+
version = 3.0.4
55

66
# This is to have the request source to be sent to IDS request header
77
request.source = V3JavaSDK

oauth2-platform-api/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
<parent>
1919
<artifactId>ipp-v3-java-devkit-pom</artifactId>
2020
<groupId>com.intuit.quickbooks-online</groupId>
21-
<version>3.0.3</version>
21+
<version>3.0.4</version>
2222
</parent>
2323
<artifactId>oauth2-platform-api</artifactId>
24-
<version>3.0.3</version>
24+
<version>3.0.4</version>
2525
<name>Quickbooks API Helper for OAuth2</name>
2626
<description>Quickbooks API Helper Project for OAuth2</description>
2727
<dependencies>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.intuit.quickbooks-online</groupId>
77
<artifactId>ipp-v3-java-devkit-pom</artifactId>
8-
<version>3.0.3</version>
8+
<version>3.0.4</version>
99
<packaging>pom</packaging>
1010
<name>IPP V3 Java DevKit</name>
1111
<url>https://github.com/intuit/QuickBooks-V3-Java-SDK</url>

0 commit comments

Comments
 (0)