Hi, I'd like to give congratulations for all that help me with my problem... This take me to study more about subjects like EJB, JVM, JNI, and communications through ARS... I resolved my 'devil error' putting the lib files at System32 folder (Windows XP) Why I put the files at System32 folder? 'cause in HSBC we have a rule that developers can't change the Environment Variables from sistems ... Then it's 'cause that I've do it... and it's run perfectly... But, correctly, the files should be put in a folder that was referenced by Path Environment Variables (even EV for files of System32 folder)... And the API arapi70.jar at CLASSPATH.... remember that my 'devil error' looks like this : "UnsatisfiedLinkError:no arjni63 in java.library.path." Thank you very much again ... See you later ... Regards! Tadeu Augusto Dutra Pinto ----------------------------------------------------------------- IT Web Services ATM Cinq Technologies http://www.cinq.com.br [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Fone: 41 3018-2833 - Cinq Fone: 41 3340-5736 - HSBC ----------------------------------------------------------------- Confiabilidade, Inovação e Qualidade em T.I.
________________________________ De: Action Request System discussion list(ARSList) em nome de Axton Enviada: ter 25/9/2007 11:18 Para: [email protected] Assunto: Re: Devil Error with create() method - arapi70 You can get the api related files from ARSwiki at: http://arswiki.org/projects/arapi/browser/releases You can put them anywhere and tell the jvm where to find them: http://www.inonit.com/cygwin/jni/helloWorld/load.html Axton Grams On 9/25/07, Tadeu Augusto Dutra Pinto <[EMAIL PROTECTED]> wrote: > Hi Carrey and everybody, > > I think it's possible 'cause is missing the necessary C dll's files > (Windows). But where I obtain these files to test from local server ?? And > where I put these files (path) ?? > > > Somebody knows? > > Thanx-in-advance!! > > Tadeu Augusto Dutra Pinto > ----------------------------------------------------------------- > IT Web Services ATM > Cinq Technologies > http://www.cinq.com.br > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > Fone: 41 3018-2833 - Cinq > Fone: 41 3340-5736 - HSBC > ----------------------------------------------------------------- > Confiabilidade, Inovação e Qualidade em T.I. > > ________________________________ > > De: Action Request System discussion list(ARSList) em nome de Carey Matthew > Black > Enviada: seg 24/9/2007 19:13 > Para: [email protected] > Assunto: Re: Devil Error with create() method - arapi70 > > > > Actually it was Thilo that said that the entry might not be being created. > > But I have found that if the Java JNI wrapper fails to find all of the > necessary C dlls(Windows)/so(Un*x) files in the right places then the > way that the Java universe unravels may be very unexpected. > > Is is possible that this is your problem? > > If you use the Admin tool to turn on API and Filter logs on the server > that should give you a good idea if your client program is even > getting to the point of trying to create the entry or not. But those > logs will not help you if your not supplying all the required fields. > > By the way, any required field ( including field 2, 8, etc..) is > required unless the field has a default value assigned to the field in > the form definition. But you do not, and should not, set "System" > fields during a Create operation. > > Also... I am not sure why I did not see this sooner... but... you are > calling the .activate() method. (" AR System reserved method." ) So I > am not sure that is a good thing to do either. > > -- > Carey Matthew Black > Remedy Skilled Professional (RSP) > ARS = Action Request System(Remedy) > > Love, then teach > Solution = People + Process + Tools > Fast, Accurate, Cheap.... Pick two. > > > > On 9/24/07, Tadeu Augusto Dutra Pinto <[EMAIL PROTECTED]> wrote: > > Hy Carey, > > > > You said to me that maybe the Entry isn't created... > > > > When you said "missing value for required field" ... do you also referred > > for "core fields"??? Like fields that are filled by the system? Or even > > fields like Submitter, that catch the user id ?? > > > > > > > > 'cause I'm not setting core fields in my entry... > > > > > > > > And ... another question... where I define/set permission problems in my > > java application?? > > > > Or , where do I save a log for me that I can discover where a Filter's > > firing? > > > > > > > > Thanx in advance ... > > > > Tadeu Augusto Dutra Pinto > > ----------------------------------------------------------------- > > > > IT Web Services ATM > > > > Cinq Technologies > > http://www.cinq.com.br > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > Fone: 41 3018-2833 - Cinq > > Fone: 41 3340-5736 - HSBC > > ----------------------------------------------------------------- > > Confiabilidade, Inovação e Qualidade em T.I. > > > > > > > > ________________________________ > > > > De: Action Request System discussion list(ARSList) em nome de Tadeu Augusto > > Dutra Pinto > > Enviada: seg 24/9/2007 18:11 > > Para: [email protected] > > Assunto: RES: Devil Error with create() method - arapi70 > > > > > > > > Hi again, > > > > I'm not going ahead with this code ... > > > > I've checked the 'required fields' ... and I think it's ok... > > I've checked the 'lastStatus' ... and it's comming with "null" value... > > > > what I have to do?? > > > > Anybody have one more idea? > > > > Thank you very much for help until here.... > > > > Regards > > > > Tadeu Augusto Dutra Pinto > > ----------------------------------------------------------------- > > IT Web Services ATM > > Cinq Technologies > > http://www.cinq.com.br > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > Fone: 41 3018-2833 - Cinq > > Fone: 41 3340-5736 - HSBC Bank Brasil > > ----------------------------------------------------------------- > > Confiabilidade, Inovação e Qualidade em T.I. > > > > ________________________________ > > > > De: Action Request System discussion list(ARSList) em nome de Carey Matthew > > Black > > Enviada: seg 24/9/2007 16:18 > > Para: [email protected] > > Assunto: Re: Devil Error with create() method - arapi70 > > > > > > > > java.lang.Object > > extended by java.lang.Throwable > > extended by java.lang.Exception > > extended by com.remedy.arsys.api.ARException > > > > So I think your catch block should catch an ARException, but... I > > would try to add a block to deal with ARException separately. ( I am > > not sure what the ARException class does for a reflected > > printStackTrace() either. It might be that that also errors and you > > get thrown into your finally block? ) > > > > And I would also suggest that you take a snip of code from the > > JavaDriver for how to print the ARException too... > > > > ARS v7.1 > > OutputWriter.java (lines 289 ... 310 [ I removed a few blank lines in > > this post] ) > > > > public static void PrintARException( ARException e ) > > { > > StatusInfo[] statusList = e.getLastStatus(); > > if (statusList != null) > > { > > PrintStatusInfoList( "", " Results", statusList ); > > return; > > } > > String message = e.toString( ); > > if( message != null && message.length( ) > 0 ) > > { > > DriverPrintResult( message ); > > } > > else > > { > > DriverPrintResult( "No Error Message..." ); > > } > > PrintNewLine( ); > > } > > > > HTH. > > > > -- > > Carey Matthew Black > > Remedy Skilled Professional (RSP) > > ARS = Action Request System(Remedy) > > > > Love, then teach > > Solution = People + Process + Tools > > Fast, Accurate, Cheap.... Pick two. > > > > > > On 9/24/07, Thilo Stapff <[EMAIL PROTECTED]> wrote: > > > The create() function probably gets executed but the entry isn't created > > > in the database. This might be caused by > > > - missing value for required field > > > - permission problem > > > - entry creation rejected by filter > > > or something like that. > > > > > > You should call ARServerUser.getLastStatus() after create() to find out > > > about the cause of the problem. > > > > > > > > > Regards, > > > Thilo Stapff > > > > > > > > > Tadeu Augusto Dutra Pinto wrote: > > > > ** > > > > Hi friends! > > > > > > > > > > > > A long time ago I have trying to execute a application java that fill a > > > > entry of object came from Mainframe to ARS... > > > > > > > > My resume code is almost like this: > > > > > > > > I have an "insert( )" method... > > > > > > > > public String insert( ) > > > > { > > > > try > > > > { > > > > com.remedy.arsys.api.Entry entry = null; > > > > com.remedy.arsys.api.EntryFactory entryMan = > > > > com.remedy.arsys.api.EntryFactory.getFactory(); > > > > entry = (com.remedy.arsys.api.Entry) entryMan.newInstance(); > > > > entry.setContext(login()); // login at AR Server > > > > > > > > // Get the name Schema > > > > NameID name = new NameID("MyForm"); > > > > > > > > entry.setSchemaID(name); > > > > entry.activate(); > > > > > > > > com.remedy.arsys.api.EntryItem[] entryItems = new > > > > EntryItem[ARRAY.length]; > > > > entryItems[0] = new EntryItem(new FieldID((new > > > > Long(ARRAY[0])).longValue()), new Value(this.getFirstName())); > > > > entryItems[1] = new EntryItem(new FieldID((new > > > > Long(ARRAY[1])).longValue()), new Value(this.getLastName())); > > > > entryItems[2] = new EntryItem(new FieldID((new > > > > Long(ARRAY[2])).longValue()), new Value(this.getDescription())); > > > > > > > > // set the entry items... > > > > entry.setEntryItems(entryItems); > > > > > > > > *entry.create(); *// doesn't execute this method... why > > > > ??? goes to "finnaly" block > > > > > > > > entryMan.releaseInstance(entry); > > > > } > > > > catch ( Exception e ) > > > > { > > > > e.printStackTrace(); > > > > } > > > > *finally* > > > > { > > > > if ( mm != null ) > > > > logout(); > > > > > > > > return sEntryId; > > > > } > > > > } > > > > > > > > > > > > I'm debugging the application and all the Data are comming correctly ... > > > > but when it arrives at *entry.create() *the application finish. > > > > > > > > > > > > Can somebody help me? > > > > > > > > > > > > Thanx... > > > > > > > > > > > > *Tadeu Augusto Dutra Pinto* > > > > ----------------------------------------------------------------- > > > > IT Web Services ATM > > > > *Cinq Technologies* > > > > http://www.cinq.com.br > > > > </exchweb/bin/redir.asp?URL=http://www.cinq.com.br/> > > > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > > *Fone: 41 3018-2833 - Cinq* > > > > *Fone: 41 3340-5736* *- HSBC Bank Brasil* > > > > ----------------------------------------------------------------- > > > > *C*onfiabilidade, *In*ovação e *Q*ualidade em T.I. > > > > __20060125_______________________This posting was submitted with HTML in > > > > it___ > > > > > > _______________________________________________________________________________ > > > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where > > > the Answers Are" > > > > > > > _______________________________________________________________________________ > > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where > > the Answers Are" > > > > > > > > _______________________________________________________________________________ > > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where > > the Answers Are" > > > > > > > > _______________________________________________________________________________ > > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where > > the Answers Are" > > > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the > Answers Are" > > > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the > Answers Are" > _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"

