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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. 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