[solved] xmonad error importing modules

Attempting to set up xmonad
This is my xmonad.hs:
import XMonad
import System.IO
import XMonad.Hooks.DynamicLog
main = do
xmonad $ defaultConfig
modMask = mod4Mask
, terminal = "urxvt"
when I recompile xmonad I get:
Error detected while loading xmonad configuration file: /home/moonlight/.xmonad/xmonad.hs
xmonad.hs:3:8:
Could not find module `XMonad.Hooks.DynamicLog':
Use -v to see a list of the files searched for.
Please check the file for errors.
No idea what's wrong, unless I've made a typo, but I don't think I have.
I've tried importing other modules (eg XMonad.Hooks.ManageDocks, XMonad.Util.Run(spawnPipe)) and so far the only ones I don't get errors with are XMonad and System.IO
Any ideas?
Last edited by bygmhra (2012-02-20 02:34:24)

I am definitely no haskell expert ... maybe try putting DynamicLog before IO?
Here is what my (working) imports look like just for reference:
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO (Handle, hPutStrLn, hGetContents)
import qualified XMonad.StackSet as W
import Dzen
import XMonad.Hooks.DynamicLog hiding (dzen)
-- layouts
import XMonad.Layout
import XMonad.Layout.ToggleLayouts
import XMonad.Layout.ResizableTile
import Data.Ratio ((%))
import XMonad.Layout.Gaps

Similar Messages

  • [SOLVED] Xmonad error when trying to compile the default xmonad.hs

    Hey,
    if I copy the configuration file in /usr/share/xmonad-0.11/man/xmonad.hs,
    I get the following error
    Error detected while loading xmonad configuration file: /home/me/.xmonad/xmonad.hs
    xmonad.hs:132:64: Not in scope: `help'
    Please check the file for errors.
    xmonad: xmessage: executeFile: does not exist (No such file or directory)
    The offending line is
    -- Run xmessage with a summary of the default keybindings (useful for beginners)
    , ((modMask .|. shiftMask, xK_slash ), spawn ("echo \"" ++ help ++ "\" | xmessage -file -"))
    I don't really need that particular keybinding but nevertheless I would like to know what's happening here.
    Last edited by Aton (2013-04-10 11:33:51)

    as for what's happening: help is just not defined.
    judging from the code you are trying to use, it is supposed to be a string. and indeed http://xmonad.org/xmonad-docs/xmonad/sr … Config.htm
    defines
    help :: String
    help = unlines ["The default modifier key is 'alt'. Default keybindings:",
    "-- launching and killing programs",
    "mod-Shift-Enter Launch xterminal",
    "mod-p Launch dmenu",
    "mod-Shift-p Launch gmrun",
    "mod-Shift-c Close/kill the focused window",
    "mod-Space Rotate through the available layout algorithms",
    "mod-Shift-Space Reset the layouts on the current workSpace to default",
    "mod-n Resize/refresh viewed windows to the correct size",
    "-- move focus up or down the window stack",
    "mod-Tab Move focus to the next window",
    "mod-Shift-Tab Move focus to the previous window",
    "mod-j Move focus to the next window",
    "mod-k Move focus to the previous window",
    "mod-m Move focus to the master window",
    "-- modifying the window order",
    "mod-Return Swap the focused window and the master window",
    "mod-Shift-j Swap the focused window with the next window",
    "mod-Shift-k Swap the focused window with the previous window",
    "-- resizing the master/slave ratio",
    "mod-h Shrink the master area",
    "mod-l Expand the master area",
    "-- floating layer support",
    "mod-t Push window back into tiling; unfloat and re-tile it",
    "-- increase or decrease number of windows in the master area",
    "mod-comma (mod-,) Increment the number of windows in the master area",
    "mod-period (mod-.) Deincrement the number of windows in the master area",
    "-- quit, or restart",
    "mod-Shift-q Quit xmonad",
    "mod-q Restart xmonad",
    "mod-[1..9] Switch to workSpace N",
    "-- Workspaces & screens",
    "mod-Shift-[1..9] Move client to workspace N",
    "mod-{w,e,r} Switch to physical/Xinerama screens 1, 2, or 3",
    "mod-Shift-{w,e,r} Move client to screen 1, 2, or 3",
    "-- Mouse bindings: default actions bound to mouse events",
    "mod-button1 Set the window to floating mode and move by dragging",
    "mod-button2 Raise the window to the top of the stack",
    "mod-button3 Set the window to floating mode and resize by dragging"]

  • When i am trying to create a report(using graph) in Word97 using Report generation Toolkit from Labview it's giving error in word import Module.vi that no such interface is supported could anyone help me out to solve this problem

    Word import Module.vi is trying to call Vb project and VB components thru active X controls when it's trying to call Vb components it's giving the error no such interface found..I am using Labview 6,MSoffice97,Graph8

    Hi Adam,
    It seems that there have been a couple other instances of the same error occurring and the problem is a conflict that occurs with the Office 97 only. Somehow the MS Office type library has been modified and this is causing incompatibilities with MS Office 97. Have you installed any other application on top of MS Office that plugs into MS Office tools – Adobe Acrobat, Visio, Reflection?? If so, you will want to see about uninstalling or reinstalling those utilities and then reinstalling Office 97 to restore the original MS Office 97 type library.
    Also, if you have a newer version of MS Office, I would highly recommend upgrading your computer. It seems that this problem is only with Office 97 and later versions of Office do not have this issue.
    Thanks again for bringing this question up.
    Kileen

  • Import-Module NTFSSecurity error

    I downloaded the ZIP file from: https:// gallery technet microsoft com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85
    created a folder "NTFSSecurity" in C:\Users\username\Documents\WindowsPowerShell\Modules\
    copied the files in the ZIP file there
    Added Roles and Features to the fileserver
    WebServer (IIS)
    .Net Framework 3.5.1. Features
    Windows Process Activation Service
    set-executionpolicy UnRestricted
    Import-Module NTFSSecurity
    Import-Module : The following error occurred while loading the extended type data file:
    Microsoft.PowerShell, C:\Users\username\Documents\WindowsPowerShell\Modules\NTFSSecurity\NTFSSecurity.types.ps1xml
    : File skipped because it was already present from "Microsoft.PowerShell".
    Microsoft.PowerShell, C:\Users\username\Documents\WindowsPowerShell\Modules\NTFSSecurity\NTFSSecurity.types.ps1xml
    : File skipped because it was already present from "Microsoft.PowerShell".
    At line:1 char:14
    + Import-Module <<<<  NTFSSecurity
        + CategoryInfo          : InvalidOperation: (:) [Import-Module], RuntimeException
        + FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Commands.ImportModuleCommand
    can someone please tell me what I am doing wrong?
    With regards,
    Wim van Esch

    The name is already in use.  Use a differnt name.
    Start with Get=Module NTFSSecurity.
    YOu likely have more than one.
    ¯\_(ツ)_/¯

  • Import-Module ActiveDirectory - Error - after upgrading DC's to 2012 R2

    Hi.
    We done upgrading our Domain Controllers to 2012 R2 Version, and after upgrade i can't use ActiveDirectory  module outside my DC
    When i\m trying to run  Import-Module ActiveDirectory on my Windows 7 desktop i get error:
    WARNING: Error initializing default drive: 'Unable to contact the server. This may be because this server does not
    exist, it is currently down, or it does not have the Active Directory Web Services running.'.
    ( But if i start it as Domain Admin on the same PC - all is OK. Permissions for my account is ok - i think - checked by: Get-PSSessionConfiguration on DC's ). When it was 2008 R2 DC's - all was fine
    How can i fix this issue? ( i think this is access rights by i cannot manage where... )
    Best Wishes, Andrew Golubenkoff

    Thanks Dan, good article - nowi\m understand... Now i should rewrite all my scripts to new  type of connection ( Import-Pssession instead of import-module ) Thanks again!

  • Powershell error while importing module and executing function from module

    powershell error while importing module and executing function from module
    Function called in uncertain order..
    VERBOSE: The 'Function1' command in the MyModule module was imported, but because its name does not include an approved verb, it might be difficult to find. The
    suggested alternative verbs are "Clear, Install, Publish, Unlock".
    VERBOSE: Importing function 'Function1'.
    VERBOSE: The 'Function2' command in the MyModule' module was imported, but because its name does not include an approved verb, it might be difficult to fin
    d. For a list of approved verbs, type Get-Verb.
    VERBOSE: Importing function 'Function2'.

    First of all those errors look more related to HBR, though if it worked before I would restart services then log into the planning app and then try again.
    Have you tried a different form as well one without an ampersand &.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to solve "An error occurred when attempting to change modules"?

    Ok so first of all, it seems that Adobe has terrible customer support when it comes to Lightroom, because it wasn't listed in any of their automated phone menu options.  Seems like they really wanted me to post here.
    Anyway, I just installed Lightroom and opened it, and I immediately get the above error message. I've read the Adobe solutions article on this, as well as other threads in which users have discussed the same problem.  I've tried every possible solution to no avail. Any help would be MUCH appreciated!
    I run Lightroom 5 on a 2012 iMac.

    Error changing modules | Lightroom

  • Error 1904.module failed to register \importent.dll files HRESULT -10737407

    Hi,
    I'm trying to install BOE on the E drive, but i'm getting this error  "error 1904.module failed to register C:
    Program Files(X86)\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\importent6.dll files HRESULT -1073740791".
          1.My question is eventhough i'm installin on E, by default i think its trying to load some folders/files on C drive. Is this error because of some permission/rights on C drive??
    2. What does this error mean?? Can we ignore this error- will it have some problems in future??
    Could someone please help me on this....
    Thanks,
    Rajini
    Edited by: Rajini V on Nov 30, 2009 8:22 AM

    Thanks Seb.
    I have the administrator rights. 
    I have now cleaned up all the instances and registry entries for the same and started a fresh installation on E drive.
    But the 'Importent6.dll' file is not getting registered.
    I'm getting the error :
    u201Cerror 1904.module failed to register E:
    Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\importent6.dll files HRESULT -1073740791u201D
    Why do we get this error?? How can I overcome this??
    Regards,
    Rajini

  • [SOLVED] xmonad on virtualbox guest does not work

    I'm trying to install xmonad on an arch guest in virtualbox.
    I'm referencing both the Beginner's Guide and the VirtualBox doc. The beginner's guide says to install X a different way and points the virtualbox guide, which doesn't mention X.
    So here's what I do:
    $ pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils virtualbox-archlinux-additions mesa
    $ modprobe -a vboxguest vboxsf vboxvideo
    Looking online, I get the impression that virtualbox-archlinux-additions includes a video driver, so I don't install one (not sure which driver would work anyways).
    After installing "xorg-twm xorg-xclock xterm dbus" startx works. However, when I exit, the output says something about pixman: 0.24.0 and complains
    (EE) Failed to load module "vesa" (module does not exist, 0)
    (EE) Failed to load module "fbdev" (module does not exist, 0)
    (EE) AIGLX error: vboxvideo does not export required DRI extension
    (EE) AIGLX: reverting to software rendering
    (EE) VirtualBox USB Tablet: failed to initialize for relative axes
    xinit: connection to X server lost
    There is no default ~/.xinitrc (it does not exist)
    I then install xmonad and xmonad-contrib. There is no default ~/.xmonad/xmonad.hs
    I then do
    $ cp /etc/skel/.xinitrc .
    Then I append "xmonad" (I also tried exec xmonad) and run "startx" and I get a black screen that hangs. I can't quit the environment, so I'm forced to close the virtual machine. Adding ~/.xmonad/xmonad.hs doesn't help either.
    Can someone tell me what's going on? Am I missing a video driver?
    Last edited by whotemp (2011-12-09 07:02:46)

    Hmm, so I now get:
    $ xmonad
    xmonad-i386-linux: user error (openDisplay)
    with
    $ cat ~/.xmonad/xmonad.hs
    import XMonad
    main = xmonad $ defaultConfig

  • [probably SOLVED] xmonad + gnome again

    Hi folks!
    After running 'plain' xmonad-darcs for a time i'd like to run gnome together with xmonad, so installed gnome today (haven't used it for years). gnome is up and running, but i can't get to get it run with xmonad as it's wm~
    Of course i've tried to follow xmonad's wiki... I used other people's xmonad.hs, that basic one or that other one; additionally, xmonad-contrib-darcs v20081207-1 is installed. For completeness, I actually just use
    -- xmonad.hs
    import XMonad
    import XMonad.Config.Gnome
    main = xmonad gnomeConfig
    It seems, that somehow xmonad can't be imported: a new created ~/.gnomerc makes no change, same with a copied  "export WINDOW_MANAGER=xmonad"  in ~/.profile (which is sourced by .xinitrc) or even in ~/.xinitrc itself. I added xmonad to the list of starting programs in gnome's session manager as well, I disabled nautilus and changed the position of the panel... Trying to start gnome with this:
    export WINDOW_MANAGER=xmonad
    exec gnome-session --purge-delay=3000
    it says that --purge-delay is an invalid option (so i guess that is meant to work with an older version of gnome).
    Then it comes up to gnome-session. But in my gnome there is no possibility to "select Metacity and change style to Trash"!? (Within the "sessions" I only can add starting programs or tell which applications to remember.)
    Nevertheless, I can start an xterm and run "killall metacity; xmonad &"; then metacity disappears, windows are indeed tiling, but in the xterm there's the following output:
    $ unknown ClientMessageEvent 269
    unknown ClientMessageEvent 269
    unknown ClientMessageEvent 269
    unknown ClientMessageEvent 269
    unknown ClientMessageEvent 269
    and the system becomes almost unusable. After killing the xterm metactiy reappears.
    I wonder how Phrodo_00 solved his problem, seemed to be trivial...
    Any ideas?
    Last edited by nexus7 (2009-01-11 14:07:52)

    Ugh!
    Because starting x takes always 5-10 minutes I liked to speed it up. I thought it still could be gnome fighting against xmonad, since here xmonad is added as starting program while at the same time you have the "/usr/share/applications/xmonad.desktop" (see above). So I liked to  see what happens after deselecting xmoand as starting program in the sessions manager... But from now on gnome wouldn't  start at all anymore! Neither
    gconftool-2 -s -t string /desktop/gnome/session/required_components/windowmanager metacity
    nor
    rm -rf ~/.gnome* ~/.gconf*
    helped (I don't have a ~/.gnome2/session)! X just hangs after showing its cursor, and there are heavy cooling but lesser disk activities -- so how to reactivate plain gnome??
    But also suddenly another problem seem to arise (but for heavens sake, why~ there weren't any before...):
    In the first time I crashed X that error was shown in the console:
    (EE) intel(0): underrun on pipe B!
    -- But how comes?, I disabled these in /etc/xorg.conf:
    Section "ServerFlags"
    Option "AutoAddDevices" "False"
    Option "AutoEnableDevices" "False"
    EndSection
    Now there's another one:
    error setting MTRR (base = 0xe8000000, size = 0x08000000, type = 1) Invalid argument (22)
    Disgusting~
    Nevertheless running plain xmonad works... ((edit: after exchanging the xmonad.hs of course))
    Last edited by nexus7 (2009-01-11 12:03:52)

  • RUNTIME ERROR IMPORT ABAP PHASE IN HETEROGENIOUS SYTEM COPY

    Hi All,
    We have started heterogenious sytem copy from windows (mssql_ to linux(maxdb).
    In import abap phase at the 128th job it ended with an error Here i attach the log of IMPORT_MONITOR.LOG
    ERROR : Execute for create index /BI0/F0RSTT_C01~P on /BI0/F0RSTT_C01 failed (dbrc=99).
      (SQL error -7055)
      error message returned by DbSl:
    SQL-Statement: CREATE  INDEX "/BI0/F0RSTT_C01~P" ON "/BI0/F0RSTT_C01" ( "KEY_0RSTT_C01P" , "KEY_0RSTT_C01T" , "KEY_0RSTT_C01U" , "KEY_0RSTT_C011" , "KEY_0RSTT_C012" , "KEY_0RSTT_C013" , "KEY_0RSTT_C014" , "KEY_0RSTT_C015" , "KEY_0RSTT_C016" , "KEY_0RSTT_C017" , "KEY_0RSTT_C018" , "KEY_0RSTT_C019" , "KEY_0RSTT_C01A"  )
    (DB) INFO: disconnected from DB
    /usr/sap/DM1/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/DM1/SYS/exe/run/R3load: END OF LOG: 20110417003352
    /usr/sap/DM1/SYS/exe/run/R3load: START OF LOG: 20110417004819
    /usr/sap/DM1/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#14 $ SAP
    /usr/sap/DM1/SYS/exe/run/R3load: version R7.00/V1.4 [UNICODE]
    Compiled Jan 23 2008 17:39:05
    /usr/sap/DM1/SYS/exe/run/R3load -i SAPAPPL1_24.cmd -dbcodepage 4103 -k                          -l SAPAPPL1_24.log -nolog -c 10000
    (DB) INFO: connected to DB
    (DB) INFO: The MaxDB logwriter is switched off#20110417004819
    (GSI) INFO: dbname   = "DM1                                                                                "
    (GSI) INFO: vname    = "ADABAS D                        "
    (GSI) INFO: hostname = "sgmw-s-relse1                                                   "
    (GSI) INFO: sysname  = "Linux"
    (GSI) INFO: nodename = "sgmw-s-relse1"
    (GSI) INFO: release  = "2.6.32.12-0.7-xen"
    (GSI) INFO: version  = "#1 SMP 2010-05-20 11:14:20 +0200"
    (GSI) INFO: machine  = "x86_64"
    (DB) ERROR: DDL statement failed
    (DROP INDEX "PCL4~XPS" ON "PCL4")
    DbSlExecute: rc = 103
      (SQL error -4011)
      error message returned by DbSl:
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    DbSl Trace: EXECUTE on connection 0, rc=-7055 (POS(59) Column(s) already indexed:/BI0/F0RSTT_C01~P)
    ERROR : Execute for create index /BI0/F0RSTT_C01~P on /BI0/F0RSTT_C01 failed (dbrc=99).
      (SQL error -7055)
      error message returned by DbSl:
    SQL-Statement: CREATE  INDEX "/BI0/F0RSTT_C01~P" ON "/BI0/F0RSTT_C01" ( "KEY_0RSTT_C01P" , "KEY_0RSTT_C01T" , "KEY_0RSTT_C01U" , "KEY_0RSTT_C011" , "KEY_0RSTT_C012" , "KEY_0RSTT_C013" , "KEY_0RSTT_C014" , "KEY_0RSTT_C015" , "KEY_0RSTT_C016" , "KEY_0RSTT_C017" , "KEY_0RSTT_C018" , "KEY_0RSTT_C019" , "KEY_0RSTT_C01A"  )
    (DB) INFO: disconnected from DB
    /usr/sap/DM1/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/DM1/SYS/exe/run/R3load: END OF LOG: 20110417004819
    Import Monitor jobs: running 1, waiting 1, completed 128, failed 0, total 130.
    Loading of 'SAPAPPL1_24' import package: ERROR
    Import Monitor jobs: running 0, waiting 1, completed 128, failed 1, total 130.
    could any one  please help me in solving this issue
    Thanks!
    Vardhan.

    \\10.207.3.59\d$\ftproot\import_sap\BWS\ABAP\DATA\ARFCSDATA.TOC
    Please check if above said file located under specified path where SAPINST searvhing for it ie at
    10.207.3.59\d$\ftproot\import_sap\BWS\ABAP\DATA. if this file dont exist them it may be the case that your export is not proper.
    Also check if user from which you have started this SAPINST is able to access
    10.207.3.59\d$\ftproot\import_sap\BWS\ABAP\DATA.
    Thanks..
    Mohit

  • Error in module RSQL of the database interface.

    Hi Expert,
    I get this error "Error in module RSQL of the database interface." when the below ABAP statement executed,  do you know the root cuase? Thanks.
    ABAP Code:
      data lt_fact type TABLE OF /BIC/FZRT_C002.
      data ls_Fact type /BIC/FZRT_C002.
      *SELECT * INTO table lt_fact FROM /BIC/FZRT_C002 WHERE KEY_ZRT_C0021 in lt_RSDIMID and KEY_ZRT_C0022 in lt_caRSDIMID*.
    Information in ST22.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLZZ_FG" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
         in
        procedure "ZCA_GET_CUBE_STOCK" "(FUNCTION)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        The SQL statement generated from the SAP Open SQL statement violates a
        restriction imposed by the underlying database system of the ABAP
        system.
        Possible error causes:
         o The maximum size of an SQL statement was exceeded.
         o The statement contains too many input variables.
         o The input data requires more space than is available.
         o ...
        You can generally find details in the system log (SM21) and in the
        developer trace of the relevant work process (ST11).
        In the case of an error, current restrictions are frequently displayed
        in the developer trace.
    Best Regards,
    Andrew

    i have the same error but my first select is
    SELECT QMNUM QMTXT QMDAT AUFNR OBJNR QMNAM QMART BTPLN IWERK BEBER INGRP  EQUNR SERIALNR MATNR
            INTO TABLE GT_VIQMEL
            FROM VIQMEL
            WHERE QMNUM IN S_QMNUM .
    please tell me how to solve this error when i run 24000 raw this select dump.
    ASAP
    thanks
    Eman elgammal.

  • Conversion error in module API6850_HDR_PROD_MAP, field API6850_HDR-WEIGHTUN

    Hi All,
    While transferring materials form ECC to GTS (Sandbox), i am receiving the above mentioned error.
    Conversion error in module API6850_HDR_PROD_MAP, field API6850_HDR-WEIGHTUNIT_ISO, value LBR.
    As per standard , In the ISO code for US pound its mentioned as LBR in both ECC and GTS
    But  within material master we generally use LB as US pound.
    Can anyone please let us know how we can solve this one?
    Regards
    Proloy

    Hello Proloy,
    UoM handling is often issue within material transfer.
    You have generally 2 options:
    1. In GTS maintain via TA CUNI your LB as is in your feeder. I would suggest to adjust GTS customizing with your ERP. Just do Utilities --> Adjustment and your RFC to feeder.
    2. Or you can map your LB to GTS LBR via user exit.
    Cheers,
    Gabriel.

  • In Windows Server 2008 : Powershell can't import-module ActiveDirectory

    Hi,
    Thank you in advance for any possible help.
    I am using Windows Server 2008 with a x64 machine and I have Powershell 3.0.
    After searching for similar problems, I found that I have to install the patches KB969166, KB968934, KB967574, KB968930.
    This was done and as a result, the "Web Service Active Directory" appeared in "services".
    However, the "ActiveDirectory Module for Windows Powershell"  is still not visible in "Windows Features" .
    What can I do to make it appear ?
    Is there a different way to go so I can have "ActiveDirectory" module in the list of modules I can import in Powershell 3.0 ?
    Actually, the command "import-module ActiveDirectory" results in a Not Found error.
    I would really appreciate your help.
    Thank you !
    Bill

    Hi Bill,
    You can't use the Active Directory module on WS2008, it requires WS2008R2 at a minimum.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • 2.3.10 "import module" XmlResolver bug

    Hello,
    I upgraded my application what uses Java bindings from Berkeley DB XML 2.2.13 to 2.3.10 (with patches 1, 2, 3, 4, 5) and came upon a problem with XmlResolver.
    When I register XmlResolver to XmlManager, dbxml crashes (on Mac OS X) with EXC_BAD_ACCESS (resolveEntity method in resolver is not called - exception in test code below is not thrown):
    error: null :: Container - test.dbxml - Node storage container opened.
    error: null :: Optimizer - Started parse
    Invalid memory access of location 00000000 eip=0003200f
    Tested only on Mac OS X, Berkeley DB XML built using:
    CFLAGS="-O0" CXXFLAGS="-O0" ./buildall.sh --enable-java
    Here is stack trace:
    0 <<00000000>>      0x00000000 0 + 0
    1 libdbxml_java-2.3.jnilib      0x5f77fb88 DbXml::DbXmlURIResolver::resolveEntity(xercesc_2_7::XMLResourceIdentifier*) + 704
    2 libxqilla.1.dylib      0x5fbb84a8 XQQuery::importModule(XQilla::Language, unsigned short const*, std::vector<unsigned short const*, XQillaAllocator<unsigned short const*> >*, StaticContext*) + 2122
    3 libxqilla.1.dylib      0x5fc45e6d XQParser::yyparse(void*) + 9387
    4 libxqilla.1.dylib      0x5fbb248f XQilla::parse(unsigned short const*, XQilla::Language, DynamicContext*, unsigned short const*, unsigned, xercesc_2_7::MemoryManager*) + 609
    5 libdbxml_java-2.3.jnilib      0x5f6d25e9 DbXml::QueryExpression::QueryExpression[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&, DbXml::Transaction*) + 631
    6 libdbxml_java-2.3.jnilib      0x5f71ce45 DbXml::XmlManager::prepare(DbXml::XmlTransaction&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&) + 67
    7 libdbxml_java-2.3.jnilib      0x5f71cf19 DbXml::XmlManager::query(DbXml::XmlTransaction&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&, unsigned) + 47
    8 libdbxml_java-2.3.jnilib      0x5f7d419e Java_com_sleepycat_dbxml_dbxml_1javaJNI_XmlManager_1query_1_1SWIG_13 + 518
    ..and here is test code:
    public class Main {
         public Main() throws FileNotFoundException, DatabaseException {
              EnvironmentConfig envConf = new EnvironmentConfig();
              envConf.setAllowCreate(true);
              envConf.setInitializeCache(true);
              envConf.setErrorHandler(new ErrorHandler() {
                   public void error(Environment arg0, String arg1, String arg2) {
                        System.out.println("error: " + arg1 + " :: " + arg2);
              Environment env = new Environment(new File("data"), envConf);
              XmlManager.setLogLevel(XmlManager.LEVEL_ALL, true);
              XmlManager.setLogCategory(XmlManager.CATEGORY_ALL, true);
              XmlManagerConfig config = new XmlManagerConfig();
              config.setAllowExternalAccess(true);
              config.setAdoptEnvironment(true);
              config.setAllowAutoOpen(false);
              XmlManager mgr = new XmlManager(env, config);
              mgr.registerResolver(new XmlResolver() {
                   public XmlInputStream resolveEntity(XmlTransaction arg0,
                             XmlManager arg1, String arg2, String arg3)
                             throws XmlException {
                        throw new RuntimeException("not impl.");
              final String cName = "test.dbxml";
              XmlContainerConfig c = new XmlContainerConfig();
              c.setAllowCreate(true);
              XmlContainer testContainer = mgr.openContainer(cName, c);
              XmlQueryContext qc = mgr.createQueryContext();
              XmlResults res = mgr
                        .query(
                                  "import module namespace whatever = 'whatever' at 'whatever.xq'; <whatever/>",
                                  qc);
              while (res.hasNext()) {
                   XmlValue n = res.next();
                   System.out.println(n.asString("UTF8"));
                   n.delete();
              res.delete();
              qc.delete();
              testContainer.close();
              mgr.close();
              System.out.println(">> FINISHED <<");
         public static void main(String[] args) throws FileNotFoundException,
                   DatabaseException {
              new Main();
    regards,
    Arnis

    Hello,
    thank you for reply.
    After adding dynamic_cast Java VM still crashes with similar stack trace:
    Thread 1 Crashed:
    0 <<00000000>>      0x0003200d 0 + 204813
    1 libdbxml_java-2.3.jnilib      0x3c4e90ca DbXml::DbXmlURIResolver::resolveEntity(xercesc_2_7::XMLResourceIdentifier*) + 816
    2 libxqilla.1.dylib      0x3caebc5f XQQuery::importModule(XQilla::Language, unsigned short const*, std::vector<unsigned short const*, XQillaAllocator<unsigned short const*> >*, StaticContext*) + 1781
    3 libxqilla.1.dylib      0x3cb79f96 XQParser::yyparse(void*) + 13068 (XQParser.y:1016)
    4 libxqilla.1.dylib      0x3cae66de XQilla::parse(unsigned short const*, XQilla::Language, DynamicContext*, unsigned short const*, unsigned, xercesc_2_7::MemoryManager*) + 336
    5 libdbxml_java-2.3.jnilib      0x3c4466d9 DbXml::QueryExpression::QueryExpression[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&, DbXml::Transaction*) + 761
    6 libdbxml_java-2.3.jnilib      0x3c48817b DbXml::XmlManager::prepare(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&) + 61
    7 libdbxml_java-2.3.jnilib      0x3c488268 DbXml::XmlManager::query(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&, unsigned) + 42
    8 libdbxml_java-2.3.jnilib      0x3c5293fb XmlManager_query__SWIG_2(DbXml::XmlManager*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, DbXml::XmlQueryContext&) + 71
    9 libdbxml_java-2.3.jnilib      0x3c544b0f Java_com_sleepycat_dbxml_dbxml_1javaJNI_XmlManager_1query_1_1SWIG_12 + 553
    10 <<00000000>>      0x045851d1 0 + 72896977
    11 <<00000000>>      0x0457f994 0 + 72874388
    12 <<00000000>>      0x0457f9ea 0 + 72874474
    13 <<00000000>>      0x0457f913 0 + 72874259
    14 <<00000000>>      0x0457d15d 0 + 72864093
    15 libclient.dylib      0x9b9f5ce2 jio_snprintf + 398024
    16 libclient.dylib      0x9b9f5a30 jio_snprintf + 397334
    17 libclient.dylib      0x9ba11d87 JVM_MaxMemory + 7311
    18 libclient.dylib      0x9ba5db9e JVM_FindLoadedClass + 2312
    19 java      0x00003d30 0x1000 + 11568
    20 java      0x00004560 0x1000 + 13664
    21 libSystem.B.dylib      0x90024227 pthreadbody + 84

Maybe you are looking for