]load command failed after update to apl14.1

MiServer is Dyalog's APL-based web development framework

Re: ]load command failed after update to apl14.1

Postby MBaas on Tue May 31, 2016 8:47 am

Hi Marco,
that latest error is a MiServer-issue - let's not mix too many things into this thread (better open a separate thread in the appropriate section). I'm afraid I'm running out of ideas with the SALT-Issues - I've notified Dan about this, I trust he can help much better than I do :-)
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

Re: ]load command failed after update to apl14.1

Postby DanB|Dyalog on Tue May 31, 2016 2:29 pm

SALT will modify files you have access to.
If Dyalog has been installed on a system where you have no write access you will be unable to modify (through ]uupdate or manually) any of its files.

SALT assumes files read are UTF-8 by default. SALT will attempt to guess what the format is by checking if there is a BOM (Byte Order Mark) at the beginning. If there isn't any it will try UTF-8, if that fails then it reports an error.

From what I see in this thread
Code: Select all
    10↑r
0 0 1 0 12 0 16 16 16 0

the file which failed seems to be NON UTF-8 without a BOM and SALT simply fails to recognize it. If you look at those characters in groups of 2 bytes you get
Code: Select all
    256⊥⍉5 2⍴0 0 1 0 12 0 16 16 16 0
0 256 3072 4112 4096
    ⎕ucs 0 256 3072 4112 4096
?????

This does not look like text at all.
DanB|Dyalog
 

Re: ]load command failed after update to apl14.1

Postby woody on Wed Jun 01, 2016 1:09 am

Dan,

I am not that familiar with SALT nor ]load user commands with MiServer 2.x.

However, I see a similar "domain error" that Marco is seeing.

Question:

See my ROOT start folder folder and files listing.

Notice the little file favicon.ico which is a simple web icon file.

Is there a problem having this file laying around in my folder, when I tried ]load of that folder?

It seems that SALT can not read that file, and throws a domain error.

Here's my folder contents:

LittleFavicon.JPG
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: ]load command failed after update to apl14.1

Postby DanB|Dyalog on Wed Jun 01, 2016 2:14 am

Hi Woody, could you tell me what
      ]version
or
      ]uversion
reports?

Also: can you perform a
      ]uupdate
?

You may need to be an administrator for this. One way is to start Dyalog with administrator rights is by right-clicking on the start Icon and select "run as administrator".
/Dan
DanB|Dyalog
 

Re: ]load command failed after update to apl14.1

Postby woody on Wed Jun 01, 2016 11:01 pm

Code: Select all
      ]version
 Dyalog  14.1.26709 64-bit Unicode, BuildID 442931b0         
 OS      Windows 7 or Windows Server 2008 R2, Service Pack 1
 SALT    2.6                                                 
 UCMD    2.1                                                 
 .NET    2.0                                                 

      ]uversion
* Command "uversion" has been renamed "version"

      ]uupdate

You requested an update to the files of the tools SALT and UCMD 

There are different sets of files to be updated for each tool.

Your User Commands (UCMD) version is 2.1
but no file needs to be updated.

Your SALT version is 2.6
but no file needs to be updated.

* No updates available for SALT  UCMD
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: ]load command failed after update to apl14.1

Postby woody on Thu Jun 02, 2016 9:32 pm

OK.. after the SALT and ]Usercommand updates...

I try again...


Code: Select all
      ⎕load ⎕wsid
      Start 'APLROOT'        ⍝ Run the MiServer v2.1 sample site

      Start 'APLROOT'         ⍝ Run the MiServer v2.1 sample site
MiServer for "APLROOT" started on port: 8000

      Load 'APLROOT'
Development environment loaded
MiSite "D:\APL\MiServerV24-APLscriptV2\APLROOT\" loaded

      )fns
Load    MakeSALTns      NewSite Restart RuntimeError    Start   Stop    Test

      )vars
AppRoot

      )obs
APLCORE APLTOOLS        APLWORK Base64  Blank   Boot    DRC     Dates   DemoServer      DrA     Files   HTML    HTMLInput
HTTPRequest     JQ      JQM     JQO     JQUI    JSON    JSON2   MiPage  MildPage        MildServer      Pages   PokerGo
SALT    SMTPMail        SQA     SQL     Strings ValuePairs      XML


OK.. this seems good. No errors so far.

What should I try next?

]load ?

I think I need to read up on SALT and the ]Usercommands.

Please provide LINK to the PDF document(s) so I can get up to speed.



Cheers!

//W
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: ]load command failed after update to apl14.1

Postby DanB|Dyalog on Thu Jun 02, 2016 9:48 pm

Woody, I tried reproducing your problem here and cannot, and I can see we have the same versions. I need more info.
I sent you a message through the forum's email system, can you have a look at it?
/Dan
DanB|Dyalog
 

Re: ]load command failed after update to apl14.1

Postby Fiona|Dyalog on Fri Jun 03, 2016 7:37 am

User avatar
Fiona|Dyalog
 
Posts: 68
Joined: Mon Apr 22, 2013 12:59 pm

Re: ]load command failed after update to apl14.1

Postby woody on Fri Jun 03, 2016 3:32 pm

Thanks, Dan !

So.. after I updated SALT and the User Commands, I no longer get any errors.

Marco: Did you have success after the UPDATES?

Here's my experience now with my MiServer site:

Code: Select all
         ⎕load ⎕wsid
      Start 'APLROOT'        ⍝ Run the MiServer v2.1 sample site
      Start 'APLROOT'         ⍝ Run the MiServer v2.1 sample site
MiServer for "APLROOT" started on port: 8000

      Load 'APLROOT'
Development environment loaded
MiSite "D:\APL\MiServerV24-APLscriptV2\APLROOT\" loaded

      ]load D:\APL\MiServerV24-APLscriptV2\APLROOT\*
 #.APLscript  #.Start  #.WIKIPortal  #.editscript  #.helloworld  #.index  #.indexOLD1  #.EditPage  #.httprequest  #.sessioninfo  #.Status  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEA
      RNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.APLOLD  #.TestPage  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.
      CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.CLEARNS  #.APLOLD  #.TestPage  #.DemoServer  #.Blank  #.MiPage  #.Accordion  #.DatePicker  #.Dialog  #.Sli
      der  #.Sortable  #.tablesorter  #.Tabs  #.Tabs  #.jsTree  #.jqm  #.jqondemo  #.jqueryexamples  #.plain  #.styled  #.Factors  #.JQMMind  #.MMind  #.MsAgent  #.Test  #.MiCart  #.MiCartTabs


Note that the multiple instances of #.CLEARNS is all on my side. I am still programming the system.. and I am aware of these namespaces. No problems.

Fiona: I downloaded the 2 user documents, and will study and learn SALT and User Commands.
Thanks!!!

I'm all set.

However... I did note, that after all of the Loading and ]loading ... I tried a simple HTTP://localhost:8000 browser call, and get this error in the Mserver workspace.

Code: Select all
  IPv4  127.0.0.1:55434  127 0 0 1  55434  get  /
2:VALUE ERROR
_DrA_GetErrorInfo[16] ⍙99.t←∪#.DrA.LogVars,(⎕NL-2),(⍙99.n/⍙99.m)⊂⍙99.n/⍙99.t ⍝ Unique, individual names
                            ∧


Also, starting FRESH with ⎕load ⎕wsid again... and NOT doing any of the LOADING commands... just running normal MiServer Start and then Stop.. I get SALT value errors.

Code: Select all
      ⎕load ⎕wsid
      Start 'APLROOT'        ⍝ Run the MiServer v2.1 sample site
      Start 'APLROOT'         ⍝ Run the MiServer v2.1 sample site
MiServer for "APLROOT" started on port: 8000
  IPv4  127.0.0.1:55546  127 0 0 1  55546  get  /
→ 2016 6 3 11 40 14 670   
178700  localhost  /index.dyalog    APLROOT\APLSITES\SELLER_ZIP  HOME
  IPv4  127.0.0.1:55546  127 0 0 1  55546  200 OK

      Stop
VALUE ERROR
Load[2] classes←(⎕SE.SALT.List AppRoot,'Code -raw')[;1 2] ⍝ Classes in application folder
                              ∧


So... in summary:
1. SALT is fine
2. User commands are fine
3. Mserver 2.x does not seem to play nice with Dyalog APL v14.1 it seems to have some missing references or paths to SALT.

Marco? How are you doing?
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: ]load command failed after update to apl14.1

Postby Gantois on Sat Jun 04, 2016 10:49 pm

Hi Dan and Woodley,

1) After updated SALT a list of my scripts "#.xxx.dyalog" appears but with others that I don't develloped as #.Accordion #.DatePicker ... (different of in APLV13.2)


)load mserver
C:\MiServer\mserver.dws saved Tue Mar 29 12:34:06 2016
Start 'Intro' ⍝ Run the MiServer v2.1 sample site
Start 'Appu'
MiServer for "Appu" started on port: 8088
Load 'Appu'
Development environment loaded
MiSite "C:\MiServer\Appu\" loaded
]load c:\MiServer\Appu\*
#.fileCadastro #.fileFontes #.fileHiers #.fileIndiceA #.fileLogins #.fileProvasA #.fileProvasC #.fileQuests #.fil
esSetup #.formContato #.formPedido #.formRegistrar #.helloworld #.histExc #.index #.indexCad #.meuCaderno #
.monitProvas #.monitSimus #.myUtil #.provaAcri1 #.provaAcri2 #.provaAexc #.provaEstudo #.provaRever #.provaS
imulado #.provaTeste #.rankSimus #.setUp #.testes #.EditPage #.httprequest #.sessioninfo #.Status #.DemoSer
ver #.Blank #.MiPage #.Accordion #.DatePicker #.Dialog #.Slider #.Sortable #.tablesorter #.Tabs #.Tabs #.
jsTree #.jqm #.jqondemo #.jqueryexamples #.plain #.styled #.Factors #.JQMMind #.MMind #.MsAgent #.Test #.
MiCart #.MiCartTabs

2) After this I try to run (localhost:8088/index.dyalog) but I receive "value error" that does not seem to be SALT problem:

2:VALUE ERROR: No result was provided when the context expected one
HandleMSP[74] REQ.Return I85'inst.',fn,' REQ' ⍝ ... whereas "new" MiPages return the HTML they generate


3) Using apl v13.2 the same "Appu" works well.

4) My versions before updated SALT:
]uversion
APL Windows-64 14.1.27360.0 W Development Unicode a3f2c7b1
SALT 2.42
UCMD 2.01
.NET 2.0

4) My versions after updated SALT:
]version
Dyalog 14.1.27360 64-bit Unicode, BuildID a3f2c7b1
OS Windows 8 or Windows Server 2012 or newer,
SALT 2.6
UCMD 2.1
.NET 2.0

Cheers !
Marco
Gantois
 
Posts: 80
Joined: Thu Apr 17, 2014 9:44 am

PreviousNext

Return to MiServer

Who is online

Users browsing this forum: No registered users and 1 guest