Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Session timeout not persisting in Java
I'm hoping someone can shed some light on why my login session is not persisting.
I took the NetSuite Java examples and rebuilt them to the sandbox using the 2012.2 WSDL as well as taking the operational code (add customer, get customer etc) and putting them into another class called Operations. The main login methods are contained in a class called NetSuite. Operations extends NetSuite.
Located within the NetSuite constructor is the following line:
// Setting client timeout to 2 hours for long running operations ((NetSuiteBindingStub) _port).setTimeout(1000 * 60 * 60 * 2);
This should do as advertised, however when I run the application and select GetCustomer it fails throwing a "faultString: Your connection has timed out. Please log in again." and dies with a NullPointerException (because the session is now null). Looking at the NetSuite log shows successful logins.
0