I've copied-and-pasted (not typed in) the following code into the
REPL:
(str
"INSERT ALL"
" INTO mdroverffprd.mc_system_user_region (system_user_id,
region_code) VALUES ('" 'a "', 'RS01')"
" INTO mdroverffprd.mc_system_user_region (system_user_id,
region_code) VALUES ('" 'a "', 'RS02')"
" INTO mdroverffprd.mc_system_user_region (system_user_id,
region_code) VALUES ('" 'a "', 'RS03')"
" INTO mdroverffprd.mc_system_user_region (system_user_id,
region_code) VALUES ('" 'a "', 'RS04')"
" INTO mdroverffprd.mc_system_user_region (system_user_id,
region_code) VALUES ('" 'a "', 'RS05')"
" INTO mdroverffprd.mc_system_user_region (system_user_id,
region_code) VALUES ('" 'a "', 'RS06')"
" INTO mdroverffprd.mc_system_user_region (system_user_id,
region_code) VALUES ('" 'a "', 'RS07')"
" INTO mdroverffprd.mc_system_user_region (system_user_id,
region_code) VALUES ('" 'a "', 'RS08')"
" INTO mdroverffprd.mc_system_user_region (system_user_id,
region_code) VALUES ('" 'a "', 'RS09')"
)
I also get "java.io.IOException: Not enough storage is available to
process this command" errors. I discovered that if I take out all the
newlines, it works OK:
(str "INSERT ALL" " INTO mdroverffprd.mc_system_user_region
(system_user_id, region_code) VALUES ('" 'a "', 'RS01')" " INTO
mdroverffprd.mc_system_user_region (system_user_id, region_code)
VALUES ('" 'a "', 'RS02')" " INTO mdroverffprd.mc_system_user_region
(system_user_id, region_code) VALUES ('" 'a "', 'RS03')" " INTO
mdroverffprd.mc_system_user_region (system_user_id, region_code)
VALUES ('" 'a "', 'RS04')" " INTO mdroverffprd.mc_system_user_region
(system_user_id, region_code) VALUES ('" 'a "', 'RS05')" " INTO
mdroverffprd.mc_system_user_region (system_user_id, region_code)
VALUES ('" 'a "', 'RS06')" " INTO mdroverffprd.mc_system_user_region
(system_user_id, region_code) VALUES ('" 'a "', 'RS07')" " INTO
mdroverffprd.mc_system_user_region (system_user_id, region_code)
VALUES ('" 'a "', 'RS08')" " INTO mdroverffprd.mc_system_user_region
(system_user_id, region_code) VALUES ('" 'a "', 'RS09')")
Can anyone explain what's happening? Does anyone else get this?
Kev
On Jan 6, 8:05 am, falcon <[email protected]> wrote:
> I often get this error when experimenting with clojure. I just pasted
> Stuart's new 'snakes' code into the repl and received this error after
> almost every line.
>
> I've never seen this error before, and I do Java programming all day.
> My Java code is multi-threaded, processes lots of data...in other
> words, my machines resources get exercised fairly well. I'mnotsure
> why clojure throws this exception after defining just a namespace!
>
> According to google, this "storage" doesn't refer to disk space,
> rather to the heap (again, I have apps that load a gigabyte in memory,
> they crash in all kinds of spectacular ways but never with this
> exception).
>
> I have seen this on my office desktop as well as home laptop.
>
> Any ideas?
>
> Thanks
>
> -------Exception example-------------
> C:\proj\clojure>java -jar clojure.jar
> Clojure
> user=> (ns
> examples.snakejava.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> (:import (java.awt Color) (javax.swing JPanel JFrame Timer
> JOptionPane)java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> (java.awt.event ActionListener
> KeyListener))java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> (:use
> clojure.contrib.import-staticjava.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> [clojure.contrib.seq-utils :only
> (includes?)]))java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> (import-static java.awt.event.KeyEvent VK_LEFT VK_RIGHT VK_UP
> VK_DOWN)java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=>java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> ; Game board and coordinates. points are [x,y]
> vectorsjava.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> (def width
> 75)java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> (def height
> 50)java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> (def point-size
> 10)java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> (def turn-millis
> 75)java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=> (def win-length
> 5)java.io.IOException:Notenoughstorageisavailabletoprocessthiscommand
> user=>
> ....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---