Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PathParam Error  RSS feed

 
Prabhash Mishra
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
    I designed endpoint for GET operation.The endpoint is as:

   http://schasoa.scholastic.com/OrderHistoryIntegration/orderapi/ordersHistory/638863641.

It is working fine with number of digit in pathparam is 9 or less tha 9 . When i am increasing number 10 or 11,12 so on it is sending 404 error.Like

http://schasoa.scholastic.com/OrderHistoryIntegration/orderapi/ordersHistory/6388636411111
http://schasoa.scholastic.com/OrderHistoryIntegration/orderapi/ordersHistory/6388636411111111111

In this case it is giving 404 error.In if--else condition i am checking number should be greater than zero.


Can anyone let me know where i am wrong .

Thanks,
Prabhash
 
Ron McLeod
Saloon Keeper
Posts: 1560
219
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Java, an int can have a maximum value of 2147483647 (231 -1). If you need to work with digit strings with values larger than that, consider using long or String type.
 
Prabhash Mishra
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks this is what i was looking for.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!