Module imports incorrect behaviour. BUG?
Hi,
I was reading the forum and didn't find a solution on this problem, although I saw quite some problems with modules.
I have a problem with module imports in the library module. DB XML 2.5.16/ MacOS 10.6.2. Has been tested using DB XML shell and Java API
I have two modules: mod_slave.xq that is imported by mod_main.xq which in turn imported by the main query:
mod_slave.xq:
module "http://tntbase.mathweb.org/ns";
declare function test_slave() as xs:string {
"test_slave"
mod_main.xq :
module namespace tnt = "http://tntbase.mathweb.org/ns";
import module namespace foo='http://tntbase.mathweb.org/ns' at 'file:/path/to/mods/mod_slave.xq';
declare function tnt:test_main() as xs:string {
foo:test_slave()
main query:
import module namespace tnt = 'http://tntbase.mathweb.org/ns' at '/path/to/mods/mod_main.xq';
tnt:test_main()Executing the main query gives me an error:
query failed, Error: The graph of module imports contains a cycle for namespace 'http://tntbase.mathweb.org/ns' [err:XQST0073], <query>:1:1But there is no cycles: main query imports mod_main and mod_main imports mod_slave which imports nothing.
Moreover XQuery spec says: "it is a static error [err:XQST0073] if the graph of module imports contains a cycle (that is, if there exists a sequence of modules M1 ... Mn such that each Mi imports Mi+1 and Mn imports M1), *unless all the modules in the cycle share a common namespace*.". So even is there were a cycle, the error shouldn't be raised because my modules share a common namespace.
The next observation:
if I change the prefix foo to tnt in the mod_main, then I get the error:
query failed, Error: Namespace prefix has already been bound to a namespace [err:XQST0033], file:///path/to/mods/mod_main.xq:2:25But the spec says: "The namespace prefix specified in a module import must not be xml or xmlns [err:XQST0070], and must not be the same as any namespace prefix bound in the same module by another module import, a schema import, a namespace declaration, or *a module declaration with a different target namespace*". But I have the same namespace in the module declaration and a module import, so the error should not be raised.
The workaround for me for now is to put those two mods into different namespaces or unite both modules.
I would appreciate if anybody could confirm or point me to the real error in my modules. Thanks
Vyacheslav
Hi Vyacheslav,
I think you're analysis of both the XQuery spec and Berkeley DB XML is correct. The behaviour you're seeing is almost certainly a bug, but it's unlikely to be of a high enough priority to get attention in the near future. If fixing this is a priority to you, I expect it would be simple enough to point you in the right direction for the code that implements this.
John
Similar Messages
-
Interface for function module is incorrect in ALE inbound processing
I have created a custom function module and i assign this FM
to the custom process code for ALE INBOUND process and i already assigned this Fm to message type and basictype in Tcode we57.i have assigned this process code to the msgtype in WE20 also.
But while trying to execute the inbound function module through WE19, I get an error message: "interface for the function module is incorrect". What could be wrong?Hi
if you ibserve clearly all the FM's will be having same parameters. Your function module also should contain same interface. Ensure that your FM does contain the same.
*" IMPORTING
*" VALUE(INPUT_METHOD) LIKE BDWFAP_PAR-INPUTMETHD
*" VALUE(MASS_PROCESSING) LIKE BDWFAP_PAR-MASS_PROC
*" EXPORTING
*" VALUE(WORKFLOW_RESULT) LIKE BDWF_PARAM-RESULT
*" VALUE(APPLICATION_VARIABLE) LIKE BDWF_PARAM-APPL_VAR
*" VALUE(IN_UPDATE_TASK) LIKE BDWFAP_PAR-UPDATETASK
*" VALUE(CALL_TRANSACTION_DONE) LIKE BDWFAP_PAR-CALLTRANS
*" TABLES
*" IDOC_CONTRL STRUCTURE EDIDC
*" IDOC_DATA STRUCTURE EDIDD
*" IDOC_STATUS STRUCTURE BDIDOCSTAT
*" RETURN_VARIABLES STRUCTURE BDWFRETVAR
*" SERIALIZATION_INFO STRUCTURE BDI_SER
*" EXCEPTIONS
*" WRONG_FUNCTION_CALLED -
Module import error in pygame when playing midi
I am wondering whether the packaging of the latest version of pygame, 1.9.1, is complete. When running the midi example i get a module import error.
python -m pygame.examples.midi --list
Traceback (most recent call last):
File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/lib/python2.6/site-packages/pygame/examples/midi.py", line 820, in <module>
print_device_info()
File "/usr/lib/python2.6/site-packages/pygame/examples/midi.py", line 25, in print_device_info
pygame.midi.init()
File "/usr/lib/python2.6/site-packages/pygame/midi.py", line 71, in init
import pygame.pypm
ImportError: No module named pypm
I have timidity installed and running as a daemon. pmidi and vkeybd work fine.Hi djszapi,
Sorry for not replying earlier.
The output should be something like this:
python -m pygame.examples.midi --list
0: interface :ALSA:, name :Midi Through Port-0:, opened :0: (output)
1: interface :ALSA:, name :Midi Through Port-0:, opened :0: (input)
2: interface :ALSA:, name :TiMidity port 0:, opened :0: (output)
3: interface :ALSA:, name :TiMidity port 1:, opened :0: (output)
4: interface :ALSA:, name :TiMidity port 2:, opened :0: (output)
5: interface :ALSA:, name :TiMidity port 3:, opened :0: (output) -
IP VRF to VRF Definition Import-Map behaviour changes
Have the import rules changed from IP VRF syntax (IPV4 only) to VRF Definitions (IPV4&6)?
The issue being we have a management VRF which is used for access, monitoring, archiving. which works well in the IP vrf sytnax example:
ip vrf A-IPVPN
rd 9282:1002
import map Customer-Mgmt-Infrastructure
route-target export 9282:1002
route-target import 9282:1002
route-target import 9282:1999
ip vrf Customer-Mgmt
rd 9282:1999
import map Import-Customer-Mgmt
route-target export 9282:1999
route-target import 9282:1999
route-target import 9282:2010
route-target import 9282:1002
route-target import 9282:2011
route-target import 9282:1005
route-map Import-Customer-Mgmt permit 10
match ip address prefix-list Customer-Mgmt-CPE
ip prefix-list Customer-Mgmt-CPE: 2 entries
seq 5 deny 169.254.254.0/24
seq 10 permit 169.254.0.0/16 le 32
This allows all PE's to learn Customers Routes and import and export management details, I believe I have followed best practice and the result is what I would expect, however since creating some new customers with the vrf definition syntax it appears that the Import-Customer-Mgmt now filters out BGP routes within the Local VRF PE-PE, however the the routes are visible via :
show ip bgp vpnv4 rd
but not imported into BGP table.
Vrf definition
rf definition S-C-IPVPN
rd 9282:1005
route-target export 9282:1005
route-target import 9282:1005
route-target import 9282:1999
address-family ipv4
import map Customer-Mgmt-Infrastructure
exit-address-family
After hitting my head against a wall for longer than I would like to admit, I removed the import map and routes in the RD are installed into the BGP Table?
My question is, is this now default behaviour or is it a bug in our particular version (asr1002x-universalk9.03.09.01.S.153-2.S1.SPA.bin)
I had been considering upgrading our syntax using the vrf upgrade-cli, glad i didnt as this would have caused a major outage as we use the a fair amount of import maps with our Internet transit circuits.
If this is normal behaviour what it the best way to match and permit Local vrf RD? baring in mind I would like ideally to reuse the same route-map.
I will continue to investigate, but if anyone has had experience of this behaviour I would appropriate there input
Regard NeilThe following route map has no impact:
route-map Customer-Mgmt-Infrastructure-2 permit, sequence 10
Match clauses:
community (community-list filter): S-C-IPVPN
Set clauses:
Policy routing matches: 0 packets, 0 bytes
Named Community expanded list S-C-IPVPN
permit RT:9282:1005
Think i will need to lab up.
Neil -
LV 8.2 DSC Multiple Variable Editor - Import/Exp​ort bug?
Hi,
Has anyone used the export/import feature in the Multiple Variable Editor in LV DSC 8.2? I'm having problems importing a Comma Separated Variable (CSV) file and it fails to include the "Bind to Source" parameters.
You can test this by simply exporting a bound variable and then importing it into a new library. Not all the features are imported.
Is this a bug or have I simply not read the documentation or is it not meant to work like this!?
...Andy
Lead Engineer, Controls and Electrical
Irvine CARudi,
Apparently this has been identified by Doug Mumford (NI) in an email to our consultant (ThinkG):
"There is a bug in the importing/exporting of CSV files using the Multiple Variable Editor. This will be addressed in the next maintence release of LabVIEW. Attached is a VI that should fix this -- make a backup of the original and replace it with the attached VI. The path to this VI is <labview>\resource\dialog\variable."
See Doug, he'll have the VI.
The bug omitted a ":" e.g. "Network Buffsize" instead of "Network:Buffsize" so that when items were imported back in the items were loaded incorrectly.
Regards...Andy
Lead Engineer, Controls and Electrical
Irvine CA -
Function module import parameter
I had used a bapi in the program and i got a dump.
then i recetified the dump. But kindly tell me the
reason .
My program is like this..
Report xyz.
DATA wa_bapireturn TYPE bapireturn.
DATA it_bapireturn LIKE TABLE OF wa_bapireturn.
DATA wa_bapisdstat TYPE bapisdstat.
DATA it_bapisdstat LIKE TABLE OF wa_bapisdstat.
PARAMETERS p_vbeln LIKE vbap-vbeln.
START-OF-SELECTION.
CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
EXPORTING
salesdocument = so_vbeln
IMPORTING
return = it_bapireturn
TABLES
statusinfo = it_bapisdstat.
now i got the dump because i have used
it_bapireturn for importing.
then i modified the program like..
CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
EXPORTING
salesdocument = so_vbeln
IMPORTING
return = wa_bapireturn
TABLES
statusinfo = it_bapisdstat.
Now the program working fine because i passed
wa_bapireturn. please tell me why it happened like
this. How to know when to pass internal table and when to
pass just a structure.
And also tell me the difference bet type and type ref to.As per the interface definition of the BAPI, it expects one workarea in the RETURN parameter.
but it_bapireturn was an internal table so was the dump
but wa_bapireturn is a work area so it worked.
You can check the interface of the Function Module to know what to be used. Usually work areas are passed in IMPORT AND EXPORT parameters and internal tables in TABLES parameters.
by using TYPE , we create a variable of a pre difined TYPE.
by using TYPE REF we create object of a particual class
Edited by: Swastik Bharati on Aug 21, 2008 2:16 PM -
Directive #Import : Incorrect character in the tooltip?
Hi,
I inserted the directive #Import, and
I had tooltip before compiled. The message have unusual path to file. More precisely, instead the character"\" the message have the character "/" (see image). Question: its correct or Microsoft have petty
bug from Visual Studio?The header file with a extension .tlh is created by "Import". More information:
http://msdn.microsoft.com/en-us/library/8etzzkb6.aspx
Slash / and \ both work well in windows.
http://en.wikipedia.org/wiki/Path_(computing)
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
SQL Developer: import from Excel bug
SQL Developer 1.1.2.25 Build MAIN 25.79
This is a test for import from Excel.
Test table:
create table bla
(x number null,
y varchar2(1) null);
Excel data:
x y
1 a
2 b
3
SQL Deveoper generates:
Error at line 3:insert into BLA (X,Y) VALUES(3,'NULL')
IMPORT into table BLAcomplete
Inserted 2rows.
Failed to insert 1rows.
SQL Error:ORA-12899: value too large for column "BCRCEK"."BLA"."Y" (actual: 4, maximum: 1)
I think there is a bug, because there must be generated NULL without apostrophe.
insert into BLA (X,Y) VALUES(3,NULL);Hi Barry,
That's[b] GREAT NEWS !!!.
So, i just update current release 1.1.2.25 to 1.1.2.25.79 ?
Thanks for the great work.
Zack
Oops !!! Am already using 1.1.2.25.79, same as bcrcek above. So need to wait for Patch Release ?
Regards
Zack
Message was edited by:
Zack.L -
Function Module IMPORT structures not recognized in form subroutines
Hello everyone,
Did some searching on SDN and didn't find the answer, so I apologize if this has been covered before.
Just finished my first Function Module. It's a remote-enabled (RFC) function that will be called by XI to do some processing. I have two components declared on the IMPORT tab, which we'll call "A" and "B". Both "A" and "B" are defined with a user type, each of which is a simple structure of 4-5 fields each. My Function Module also has two tables, and these are defined on the TABLES tab.
Here's my problem: When I do a syntax check, I get an error telling me that "A" and "B" are unknown. However, I only get this error where I reference "A" or "B" in the FORM subroutines I have declared at the end of my function.
I have my other data declarations defined globally in the "LZ...TOP" Include for my Function Module, so those don't pose a problem. But these are my Function Module parameters, so I can't go "declare" those as I already have them defined on the appropriate tabs.
Is there a way for me to get around this error and have them recognized globally, or do I have to resort to moving the values to some globally-declared "hold" field? I'm hesitant to have to add them as parameters passed into the FORM routines because I pretty much reference each of the fields within the structures for "A" and "B".
Thanks everyone. Points definitely awarded for helpful answers.Dave,
The parameters are visible only in the main program of the function module. So, if the subroutines are directly in the main function, they you should not have a issue. But if you subroutines in an include and you are calling them in the main function, then the paramters are not visible in the subroutines. In that case you will have to hold the values in a globally declared tables.
Or you will have to pass them as parameters to Sub routines as well.
Regards,
Ravi
note : please mark the helpful answers
Message was edited by: Ravikumar Allampallam -
Shortdump occured due to function module called incorrectly
Hi experts!
Iam loading the deltas from 2lis_40_reval into 3 cubes.
In one cube the dataload is successful,but in other two cubes deltas are unsuccessful.B'coz a shortdump was occured due to function module was called incorrectly.
can any expert give me a solution.
diyathanks for reply,
i have seen in st22 for this shortdump,it is mentioned..
'the function module interface allows you to specify only fields of particular type under "E_week".the "result" specified here is a different type.
i observed the routines of all cubes.in one cube ,for zcalender year/week a routine week is assigned but there
"E_QTR = result".and zcalender/quater a routine is assined but there is"E_WEEK = result" .and also i checked the properties of zcalender year/week & zcalender/quater .
the lenth for both of these is different.
so,is b'coz of these data is not loading.if so can i change these routines in production.can u pls give the solution
diya -
C4D scene data importing incorrectly CC2014
Having some frustrating results importing scene data into an AE project with the new CC2014. At first I thought it was a frame rate issue, but fixed all that, started afresh but still problems. I have rendered passes that match the C4D project import, but when I extract the scene data the lights don't match the scene... just slightly out as if the time codes aren't quite matching. Repeated the process in AE CC (previous version) and no problems with everything working as expected. Is this a bug or am I missing something? Have yet to try a different project. Anyone else having similar issues? cheers. Pete
After further investigation it would appear that when you import or create a C4D file in AE, AE automatically imposes a 30fps independently of either the AE project it's created from or the C4D project it's importing. No problems for anyone working in 30fps, but over in PAL land it creates all sorts of problems if you pre render your passes and bring those into AE and replace the C4D extracted passes and add scene data such as lights etc... all very confusing... can Adobe and Maxon please fix this help out the brothers in PAL land.
cheers Pete -
Modules Importing Error || ODI 11
Hi
I exported Modules from ODI 11g and i am importing Modules at another ODI 11g. During importing i m having bellow Errors:
1- When i choose " Synonym Mode INSET_UPDATE"
"You are importing an object from another repository with same Identifier. it is forbidden"
com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Import aborted.
at com.sunopsis.dwg.DwgDuplicationTools.checkTheImportRepCoherence(DwgDuplicationTools.java:2031)
at com.sunopsis.dwg.DwgDuplicationTools.checkTheImportRepCoherence(DwgDuplicationTools.java:1955)
at com.sunopsis.dwg.DwgDuplicationTools.synonymImport(DwgDuplicationTools.java:1750)
at com.sunopsis.dwg.DwgObject.importFromObjectLst(DwgObject.java:6205)
at com.sunopsis.dwg.DwgObject.doImport(DwgObject.java:5705)
at com.sunopsis.dwg.DwgObject.importFromXml(DwgObject.java:5365)
at com.sunopsis.dwg.DwgObject.importFromXmlWithCommit(DwgObject.java:5410)
at com.sunopsis.graphical.dialog.SnpsDialogImportXml.doImport(SnpsDialogImportXml.java:360)
at com.sunopsis.graphical.dialog.SnpsDialogImportXml$1.doInBackground(SnpsDialogImportXml.java:1221)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:278)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
at java.lang.Thread.run(Thread.java:662)
2- When i choose "Duplication"
com.sunopsis.core.SnpsInexistantSchemaException: SnpLSchema.getLSchemaByName(): SnpLschema does not exist
at com.sunopsis.dwg.dbobj.SnpLschema.getLschemaByName(SnpLschema.java:350)
at com.sunopsis.dwg.dbobj.SnpTxtCrossR.batchCrossRefComputing(SnpTxtCrossR.java:600)
at com.sunopsis.dwg.DwgObject.importFromObjectLst(DwgObject.java:6314)
at com.sunopsis.dwg.DwgObject.doImport(DwgObject.java:5705)
at com.sunopsis.dwg.DwgObject.importFromXml(DwgObject.java:5365)
at com.sunopsis.dwg.DwgObject.importFromXmlWithCommit(DwgObject.java:5410)
at com.sunopsis.graphical.dialog.SnpsDialogImportXml.doImport(SnpsDialogImportXml.java:360)
at com.sunopsis.graphical.dialog.SnpsDialogImportXml$1.doInBackground(SnpsDialogImportXml.java:1221)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:278)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
at java.lang.Thread.run(Thread.java:662)
Regards
SherSher Ullah Baig wrote:
Hi
I exported Modules from ODI 11g and i am importing Modules at another ODI 11g. During importing i m having bellow Errors:
1- When i choose " Synonym Mode INSET_UPDATE"
"You are importing an object from another repository with same Identifier. it is forbidden"
This is due to repository id clash . Both of your ODI repository has same internal id which is causing the conflict during import. What you can do is to change the internal id of your ODI repository so that these becomes unique.
2- When i choose "Duplication"
com.sunopsis.core.SnpsInexistantSchemaException: SnpLSchema.getLSchemaByName(): SnpLschema does not existThis is due to a logical schema which is prested at exported instance but does not exists in importing instance. -
Strange behaviour (bug?) of 3D widget on iPad2
Hi,
I've just encoutered very strange behaviour when playing around with 3d widget.
Here's what I'm doing:
Created new project from basic template,
On section page removed everything and placed two simple 3d objects (~7000 faces each no textures) and removed title, description, background etc from them, both was set to autorotate.
Send to my iPad using preview button.
What's happening:
When page with 3d objects opens one of them behaves as expected (autorotate), but other is either unresponsive for a very long time (few minutes) or you have to pinch it to full screen to be able to interact with it, however when you close full screen mode every thing gets normal and you can play with both objects at once.
It looks like a bug to me, but maybe someone else could try to reproduce this behaviour to rule out configuration factors.
Do you know when I could fill bug report?
Best regards,
JacobWhile there is no formal bug reporting method similar to what devs have w/apps, iBA does have a 'Provide iBooks Author Feedback' menu item.
As well, confirm your 3d related process here:
iBooks Author: Best practices for using 3D models - Support - Apple -
Web Module Deployment Profile Dependencies Bug
In 903 WAR deployment profiles, the profile dependency tab says that "The selected dependencies will be packaged in the same EAR file as this Web Module."
Unfortunately JDev not only does the above, it also includes dependant *.jar, *.war files with the resulting war file under WEB-INF/lib/. This means that jar files often occur multiple times in a EAR file.
The whole build, deploy, debug cycle is very time consuming and this bug just make it worse.bump.
I am having the exact same problem...
There are a number of configurations regarding the application and/or project deployment profiles that I know work, however as stated above "I need to un-check a jar, save the workspace, re-check the jar then save the workspace again" (the end result being no settings actually changing, just a few saves...) to actually get the deployed application to run.
Otherwise a 'oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NoClassDefFoundError' is thrown in the WLS server log.
Once the application is closed and reopened, and deployment is attempted yet again it fails, and the same process is required to make it work again.
Any help would be greatly appreciated.
I have an open SR lodged with My Oracle Support: SR 7805211.992, if anyone lurking here with access would like to use it for further reference whilst investigating this problem.
Regards,
Matthew.
Edited by: Matthew Carrigy on 6/10/2009 15:46 -
Importing Feedback Error (Bug?)
Hi,
I get the following issue when importing feedback from a prod environment into a dev environment:
ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-20001: You can't import feedback into the same system! <pre>begin wwv_flow_api.set_feedback_origin('MYWORKSPACE', 'DEVELOPMENT'); null; end;</pre>Here's how to replicate it:
Prod Machine:
Workspace: myworkspace
export file
Dev Machine:
Workspace: myworkspace
import file
I get the error message above.
This issue does not occur when the dev and prod workspaces names are different. I'm not sure if this is a bug or intended functionality.
Thanks,
Martin
http://www.talkapex.com
Edited by: Martin Giffy D'Souza on Nov 7, 2010 9:06 PMHi Martin,
your problem is that you have the same "Feedback Synchronization Source Identifier" on body systems. It's defaulted with the workspace name when you create a workspace.
Here is what you have to do.
On your PROD system:
1) Login into INTERNAL (Instance Administration)
2) Go to "Manage Workspaces"
3) Existing Workspaces
4) Pick your workspace and click the "Edit" icon
5) Modify the "Feedback Synchronization Source Identifier" to "PROD" or something else.
On your DEV system:
1) Login into INTERNAL (Instance Administration)
2) Go to "Manage Workspaces"
3) Existing Workspaces
4) Pick your workspace and click the "Edit" icon
5) Modify the "Feedback Synchronization Source Identifier" to "DEV" or something else.
Now your import/export should work without any problems.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf
Maybe you are looking for
-
It has been for a month or 2 that I have not been able to print anything in my Firefox browser (It used to work just fine). I have no problem at all printing in Chrome ( I never use Internet Explorer ). Is it possible that my new printer is the probl
-
hi can anyone please help me??
-
HP 15t - j100 Warranty Information
Hello,I purchased a HP Envy through Costco.com. They provide an extended 2-year warranty over the manufacturers 1-year warranty. My computer is not performing correctly (freezing or corrupting when physically moved, processing power reduced, ect.) du
-
How to programmatically create an employee with BAPI
Is there a BAPI to programmatically create an employee number? What parameters must be provided?
-
How can i keep google maps in ios v6
Is there any way to keep google maps on my iPhone after upgrade to iOS 6?