Error in UtyNotesSearch after Migrating

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Error in UtyNotesSearch after Migrating

Postby asanzo » Tue Jan 25, 2011 11:18 am

Hi all!!

We are migrating an app that uses Smallcycle from VA 6.0 to 8.0.2.
We did the config map import flawlessly, but when starting the image again we got this problem: http://forums.instantiations.com/viewtopic.php?f=12&t=4930&p=15358, and solved it as the topic says.

Now, we get the following error (I presume is unrelated to the previous one):

"The following error(s) were detected during the startup sequence which may interfere with correct operation:
1) Primitive failed in: UtyNotesSearch>>#setupSearch: due to OS error 126"

This is the piece of stacktrace where it occurs:
Code: Select all
(...)

UtyNotesSearch(Object)>>#error:
   self=an UtyNotesSearch
   aString='Primitive failed in: UtyNotesSearch>>#setupSearch: due to OS error126'
UtyNotesSearch(Object)>>#primitiveFailed:withArgument:backUp:
   self=an UtyNotesSearch
   errorCode=18
   argument=126
   backUp=1
UtyNotesSearch(Object)>>#primitiveFailed
   self=an UtyNotesSearch
UtyNotesSearch>>#setupSearch:
   self=an UtyNotesSearch
   anOrderedCollection=DirectedMessage (an UtyNotesSearch, #foundMatch:summary:, ())
UtyNotesSearch>>#perform
   self=an UtyNotesSearch
   results=OrderedCollection()
   formulaObject=0
   viewObject=*UtyOSPtr {16r00000000}
   sinceObject=*UtyOSPtr {16r00000000}
   msg=DirectedMessage (an UtyNotesSearch, #foundMatch:summary:, ())
   address=nil
   rc=nil

(...)


The code of that method is:
Code: Select all
UtyNotesSearch>>setupSearch: anOrderedCollection
   "Setup the DLL search callback function and answer
     the address of the callback."

   <primitive: 'UTYNOTES.DLL':UtyNotesSearchSetup>
   ^self primitiveFailed


Thanks in advance for any kind of help!

Alfredo
asanzo
 
Posts: 3
Joined: Tue Jan 25, 2011 10:47 am

Re: Error in UtyNotesSearch after Migrating

Postby jtuchel » Tue Jan 25, 2011 9:36 pm

HI

IIRC OS Error 126 is a DLL that's not found. So nothing in your Smalltalk code but the setup of your windows environment.

Look for UTYNOTES.DLL and see if it's either in your PATH or in the image or /vast/bin directory.

Let us know if it helped.

Joachim
jtuchel
[|]
 
Posts: 245
Joined: Fri Oct 05, 2007 1:05 am
Location: Ludwigsburg, Germany

Re: Error in UtyNotesSearch after Migrating

Postby asanzo » Wed Jan 26, 2011 9:44 am

Hi Joachim!
Thanks for your response.

I've read it on several blogs, but what seems odd is that
  • I don't have notes.dll or utynotes.dll anywhere on my filesystem or on the server's filesystem.
  • I googled those dlls and looked for them on dll sites and nothing came up.
  • Previous version of VA didn't seem to have problems, or didn't seem to need those files. (in order to connect to smallcycle server)

So I compared both old and new bin folders and copied every missing dll in the new bin folder, and the problem is solved :D
The files seemed to be utynw20.dll and utypk1w4.dll, but to be sure I copied every other dll I could find (except older versions).

Thank you very much for your guidance.

Alfredo
asanzo
 
Posts: 3
Joined: Tue Jan 25, 2011 10:47 am

Re: Error in UtyNotesSearch after Migrating

Postby marten » Wed Jan 26, 2011 12:28 pm

Well - UTYNOTES.DLL - is not a dll from Lotus Notes, but it seems to be a wrapper library around notes (delivered from ?), but it is very special for VASmalltalk. Please notice the calling convention #primitive used in your example - therefore this dll contains c code specially written for Smalltalk (and therefore it is highly unusual to find it on the web).

Actually I would expect to see "UTYNOTES.DLL" somewhere on your system - but perhaps you may look at the content of the classVariable "SharedLibrary" or "Aliases" of the class PlatformLibrary and perhaps you detect some redirection ....

Marten
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: Error in UtyNotesSearch after Migrating

Postby asanzo » Wed Jan 26, 2011 1:30 pm

An absolute genious :D
Code: Select all
PlatformLibrary libraryAtIndex: 49 "PlatformLibrary[UTYPK - > 'UTYPK1W4']"
PlatformLibrary libraryAtIndex: 50 "PlatformLibrary[UTYNOTES.DLL - > 'UTYNW20.DLL']"
PlatformLibrary libraryAtIndex: 51 "PlatformLibrary[NOTES.DLL - > 'NNOTES.DLL']"

Thank you very much!!

Alfredo
asanzo
 
Posts: 3
Joined: Tue Jan 25, 2011 10:47 am

Re: Error in UtyNotesSearch after Migrating

Postby wembley » Wed Jan 26, 2011 1:37 pm

Perhaps your problem is an indicator that we should provide a little more information in the error message (such as the real name of an aliased .DLL). I'll make a note to look at this for a future enhancement -- Case 48114.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest

cron