Hello, I am testing out the findApp class, I took a look at the sample and I am trying to test it out with a local mpk. The majority of the code below is from the javaSDK. I made a few changes such as adding a local tpk and mpk. and set the search for parameters by name field (I also try searching just by layerID to see if that worked.) And nothing I tried works. this is whats in the Console everytime it searches. the code is in the 2nd post, as it couldnt fit in a single post. com.esri.core.io.EsriSecurityException: EsriSecurityException[code = -10001 msg = User credentials were invalid. Please supply a valid username and password in order to access the secure service.
at com.esri.core.internal.io.handler.c.a(Unknown Source)
at com.esri.core.internal.io.handler.r.a(Unknown Source)
at com.esri.core.internal.io.handler.r.a(Unknown Source)
at com.esri.core.internal.tasks.d.getServiceCredentials(Unknown Source)
at com.esri.core.internal.tasks.ags.a.a.a(Unknown Source)
at com.esri.core.tasks.ags.find.FindTask.execute(Unknown Source)
at project01.FindApp.onFind(FindApp.java:119)
at project01.FindApp.access$1(FindApp.java:94)
at project01.FindApp$2.actionPerformed(FindApp.java:203)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
EDIT - at project01.FindApp.onFind(FindApp.java:119 --------- findResults = task.execute(params);so I am guessing something is wrong with the parameters, I added all layers just to see if I could find anything. and still the same issue. Any help or direction would be helpful, thanks.