Loading RSLs from Modules
For a while I've been wanting to be able to load an RSL from a Module. The reason for this is that some modules require some RSL but that RSL is not needed in the MainApp.
I've googled alot on this subject and can't find any information that will show that this is possible, but now reading up on the enhancements of the Hero Sdk (http://opensource.adobe.com/wiki/display/flexsdk/RSL+Enhancements) it seems to be possible.
To be specific here is a quote from the info
3. Going into Flex 4 we only expected sub-applications and modules to re-use the RSLs loaded by the main application. But now we see modules that are being used to load custom RSLs. Expecting the main application to load all of the RSLs won't work anymore. We are also seeing cases where modules want to be independent of the application and load all the RSLs it needs without regard for which RSLs the application is loading. Today this can result in multiple loads of the same RSL.
From reading that, it is possible. Can anyone please point me in the direction on to how to acomplish that. How to load an RSL that a module needs when loading the module?
Thanks,
Art
In 2008 and 2009 I was heavily involved in trying to develop modular Flex and AIR applications. I have not been heavily involved for the past 10 months, so I don't know whether I can offer any help or not. Some things have changed with Flex 4 and AIR 2, and while I have only spent a couple of days trying to catch up, it is very clear that Flex 4 and AIR 2 ended up being surprisingly different from what I was doing with Flex 3.3, AIR 1.5 and Gumbo.
If you would like to chat about it, please send me an email: tcorbet at ix.netcom.com. I recommend that for two reasons. First, I was never able to get much help from any of the myriad of Adobe Forums in trying to discuss the concepts of modularization as they apply to an AIR application. There was that lengthy white paper for Flex, but trying to get specific help on code-level implementations was not successful. Second, since what I think I may know about the topic is so apt to be wrong, it would be better just to confuse you rather than everyone!
That said, for some perspective, in my mind the topic of RSL loading covers two closely related matters. One has to do with the RSL support for the various Open Source frameworks. While I was wrestling with trying to manage which versions of which SWZ and/or which SWC would be needed by various sub-applications, I asked why in the world we had to do this anyway. So, I am happy to see -- but have not yet tried to re-engineer my solutions -- that Adobe has agreed to host those RSL files rather than asking each of us to do it.
The other RSL -- my frame of reference, maybe not yours -- topic is the managment of your own modular application code. I finally ended up with an application manifest file that could be used to determine the current release level of each 'module' and each 'SWC/SWZ' installed on the users desktop. Then I could make a quick check of the current release level available on the server, and push out only whatever library needed to be refreshed. If nothing needed to be refreshed, the load was just local, otherwise it was downloaded, inserted into the user's file system and then loaded on demand, only if the user was working in some part of the application for which that library was required. If the user was not working with that sub-application, he would not see the overhead of checking for or installing the updated library code.
So, if those are things on your mind, maybe I can help, but since the Adobe developers seem to have a much different perspective on the dangers of loading code into a desktop or web-centric application, I am pretty sure that what was working for me 10 months ago will not work with the Flex 4.1, AIR 2.0.2, and I will once again be looking for some white paper where someone tries to explain all the reasons for all those sandbox bridges.
Similar Messages
-
[svn] 4525: Fix loading RSLs from applications loaded from bytes.
Revision: 4525
Author: [email protected]
Date: 2009-01-14 10:15:45 -0800 (Wed, 14 Jan 2009)
Log Message:
Fix loading RSLs from applications loaded from bytes.
QE Notes: None
Doc Notes: None
Bugs: SDK-18250
Reviewer: Alex
tests: checkintests
SystemManager.as
Normalize the root urls passed into the RSLItems.
LoaderUtil.as
Test rootURL first before all the url tests. No need to perform all url tests if rootURL is null.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-18250
Modified Paths:
flex/sdk/branches/3.3.0/frameworks/projects/framework/src/mx/managers/SystemManager.as
flex/sdk/branches/3.3.0/frameworks/projects/framework/src/mx/utils/LoaderUtil.asRevision: 4525
Author: [email protected]
Date: 2009-01-14 10:15:45 -0800 (Wed, 14 Jan 2009)
Log Message:
Fix loading RSLs from applications loaded from bytes.
QE Notes: None
Doc Notes: None
Bugs: SDK-18250
Reviewer: Alex
tests: checkintests
SystemManager.as
Normalize the root urls passed into the RSLItems.
LoaderUtil.as
Test rootURL first before all the url tests. No need to perform all url tests if rootURL is null.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-18250
Modified Paths:
flex/sdk/branches/3.3.0/frameworks/projects/framework/src/mx/managers/SystemManager.as
flex/sdk/branches/3.3.0/frameworks/projects/framework/src/mx/utils/LoaderUtil.as -
[svn:fx-trunk] 12665: Load RSLs relative to module.
Revision: 12665
Revision: 12665
Author: [email protected]
Date: 2009-12-08 13:13:20 -0800 (Tue, 08 Dec 2009)
Log Message:
Load RSLs relative to module.
Also dispatch an error message from ModuleLoader if a module cannot be created.
build.xml
Include modules.properties file in framework resource bundle.
src/mx/core/FlexModuleFactory.as
Pass rootURL to RSLItem to support relative urls for the import loading style of RSL loading.
src/mx/modules/ModuleLoader.as
Dispatch an error if we cannot create a module for whatever reason. In the scenario for this bug the module had a custom library that was externalized but it did not try to load the RSL partly due to user error and partly to tooling. This caused the Module?\226?\128?\153s main class to not be present in the module factory?\226?\128?\153s application domain.
Bug FB-24689 has been written up to address compiling modules to load RSLs from Flash Builder.
bundles/en_US/modules.properties
New bundle for modules.
QE notes: None.
Doc notes: None.
Bugs: SDK-20632
Reviewer: Alex
Tests run: checkintests, Modules
Is noteworthy for integration: no
Ticket Links:
http://bugs.adobe.com/jira/browse/FB-24689
http://bugs.adobe.com/jira/browse/SDK-20632
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/build.xml
flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleLoader.as
Added Paths:
flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/modules.properties -
[svn:fx-trunk] 12000: Load RSLs relative to a module.
Revision: 12000
Revision: 12000
Author: [email protected]
Date: 2009-11-19 11:46:14 -0800 (Thu, 19 Nov 2009)
Log Message:
Load RSLs relative to a module.
Load RSLs relative to the module. Delay loading RSLs until the Event.INIT event because before that the loaderInfo.url is not ready. Without the loadInfo.url we can?\226?\128?\153t load RSLs relative to the module.
QE notes: None.
Doc notes: None.
Bugs: SDK-20632
Reviewer: Alex
Tests run: checkintests, Modules
Is noteworthy for integration: no
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-20632
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as -
How to load data from Quikbooks into PeopleSoft General Ledger module ?
Folks,
Hello.
My client's data is currently stored in Quikbooks.
After install PeopleSoft FSCM 9.0, I need to load the data from Quickbooks into PeopleSoft General Ledger module. But I don't know how to use PeopleSoft Integration Broker to integrate with Quikbooks.
Can any folks tell me how to load data from Quikbooks into PeopleSoft General Ledger module ?Hi,
If the data load is one time process, then you can use PL/SQL or datamover to load the data to PeopleSoft application.
If you want to load the data in real time, then you need to create In-bound and out-bound nodes to perform the transaction.
Thanks
Soundappan -
Loading data from SAP FI module to BW
Hi,
Can any one give some idea or documents which could be helpfull in loading data from SAP FI module to SAP BW.
Thanks
PrashantStandard Business Content for Financials:
http://help.sap.com/saphelp_bw30b/helpdata/en/65/7beb3cad744026e10000000a11405a/frameset.htm
Are you sure its Finance or CO-PA? CO-PA extraction is slightly different as you genrate a datasource based on the structure of your CO-PA module. -
Is it possible to load REMOTE resource module from an Air application ?
Hi All,
Am trying to load remote resource module swf file from an AIR application, am not able make it work,am getting the following error
code:
eventDispatcher = ResourceManager.getInstance().loadResourceModule(remoteURL);
ERROR:
"Unable to load resource module from ".
Please help me out..
Thanks
J KishoreThis might help you out: http://aaronhardy.com/flex/loading-a-remote-module-into-a-local-app/
-
How do I suppress messages/loading bars from Import-Module and Import-PSSession?
Hello,
How do I suppress messages/loading bars from Import-Module and Import-PSSession?
I am writing a script that will be using these commands and it makes the script look clunky/scary to novice users.
Thank you for your time.Sorry to bring this back up, but it seems that the ProgressPreference worked for Exchange, but it didn't affect the Active Directory progress bar. Any ideas why?
Strange, this worked just fine for me (no module loading indication):
PS C:\Users\mike.admin> $ProgressPreference = 'SilentlyContinue'
PS C:\Users\mike.admin> Get-ADUser mike.admin | Select Name
Name
mike.admin
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing)
I do run the Import-Module command inside a function, but I doubt that would do it because I assume the preference is set scriptwide.
This will work anywhere.
$global:ProgressPreference='SilentlyContinue'
¯\_(ツ)_/¯ -
Unable to load data from an ODS to a Cube
Hi all,
I am traying to load data from an ODS to a cube, and I'm getting the following msg at the bottom of the screen monitor: <b>"No corresponding requests were found for request REQU_BZUH9ZPYNL5XLQNB7K8IQDKFS in the ODS/Cube" Message no. RSBM043.</b>
I am unable to load the data. The QM status is yellow. When the process starts, on the left hand of the monitor it shows: "0 of 84408 records" which is ok. I load that with this package before and it works well.
Can you help me what I have to do? I tried to wait but it was the same: no progress and no data in the cube.
Thank you very much and kind regards,
MM.
May be this helps...
When I look at the status, it says that I have a short dump at BW. It was CALL_FUNCTION_REMOTE_ERROR and the short text is "The function module "SUBST_TRANSFER_UPGEVAL" cannot be used for 'remote'". This short dump occurs very much before I shoot the upload.
Thanks again.Hello MM,
Can you do the following..
make the Total status Red Delete the request from cube.
goto ODS -> Remove the Data Mart Status -> Try loading it again.
The error message that you get is common when we are trying to run a infopackage with the source object having no new request, (means all the requests available in the source are already moved to the targets). So please try the steps given above.
Hope it will help! -
Unable to load the kernel module 'nvidia.ko' [SOLVED]
After my most recent kernel upgrade, I can't get my GUI to run. I've tried reinstalling the nvidia driver to no avail.
Any insight would be greatly appreciated. I'm using a GeForce 8400 GS
cat /var/log/nvidia-installer.log
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
installed in this system is not supported by this NVIDIA Linux graphics
driver release.
Please see the log entries 'Kernel module load error' and 'Kernel
messages' at the end of the file '/var/log/nvidia-installer.log' for
more information.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
-1 No such device
-> Kernel messages:
NVRM: This can occur when a driver such as nouveau, rivafb,
NVRM: nvidiafb, or rivatv was loaded and obtained ownership of
NVRM: the NVIDIA device(s).
NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
NVRM: No NVIDIA graphics adapter probed!
NVRM: The NVIDIA probe routine was not called for 1 device(s).
NVRM: This can occur when a driver such as nouveau, rivafb,
NVRM: nvidiafb, or rivatv was loaded and obtained ownership of
NVRM: the NVIDIA device(s).
NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
NVRM: No NVIDIA graphics adapter probed!
NVRM: The NVIDIA probe routine was not called for 1 device(s).
NVRM: This can occur when a driver such as rivafb, nvidiafb or
NVRM: rivatv was loaded and obtained ownership of the NVIDIA
NVRM: device(s).
NVRM: Try unloading the rivafb, nvidiafb or rivatv kernel module
NVRM: (and/or reconfigure your kernel without rivafb/nvidiafb
NVRM: support), then try loading the NVIDIA kernel module again.
NVRM: No NVIDIA graphics adapter probed!
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
Last edited by wsims (2010-06-22 15:06:04)if you used the packages from repos, the blacklist is done automatically in nvidia,
$ pacman -Qo /etc/modprobe.d/nouveau_blacklist.conf
/etc/modprobe.d/nouveau_blacklist.conf is owned by nvidia 195.36.31-1
$ cat /etc/modprobe.d/nouveau_blacklist.conf
blacklist nouveau
but i guess you just want to mess your system by using unsupported and very bad ways and you are way smarter than the devs if you used that installer
Last edited by wonder (2010-06-22 14:10:01) -
Error while loading data from flat file to Oracle DB
I am new to ODI. I am trying to load data from a flat file to Oracle DB using the LKM File to Oracle (External Table) and using the IKM Oracle Incremental Update. I am getting the following exception during the "Create External Table" stage:
org.apache.bsf.BSFException: exception from Jython:
Traceback (most recent call last):
File "<string>", line 44, in <module>
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:202)
at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1110)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:2251)
at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:2192)
at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:347)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
java.sql.SQLException: java.sql.SQLException: ORA-30088: datetime/interval precision is out of range
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2473)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:48)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:561)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
at java.lang.Thread.run(Thread.java:662)
Caused by: Traceback (most recent call last):
File "<string>", line 44, in <module>
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:202)
at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1110)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:2251)
at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:2192)
at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:347)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
java.sql.SQLException: java.sql.SQLException: ORA-30088: datetime/interval precision is out of range
at org.python.core.PyException.fillInStackTrace(PyException.java:70)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at org.python.core.PyException.<init>(PyException.java:46)
at org.python.core.PyException.<init>(PyException.java:43)
at org.python.core.Py.JavaError(Py.java:455)
at org.python.core.Py.JavaError(Py.java:448)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:177)
at org.python.core.PyObject.__call__(PyObject.java:355)
at org.python.core.PyMethod.__call__(PyMethod.java:215)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
at org.python.core.PyMethod.__call__(PyMethod.java:206)
at org.python.core.PyObject.__call__(PyObject.java:397)
at org.python.core.PyObject.__call__(PyObject.java:401)
at org.python.pycode._pyx1.f$0(<string>:50)
at org.python.pycode._pyx1.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1204)
at org.python.core.Py.exec(Py.java:1248)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
... 1 more
Caused by: java.sql.SQLException: ORA-30088: datetime/interval precision is out of range
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:202)
at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1110)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:2251)
at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:2192)
at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:347)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)
... 33 more
Could anyone please provide any pointers.
Thanks,
Srini.The code that is executed is as follows:
createTblCmd = r"""
create table ODITEMP.C$_0PARTNER
C1_C1 NUMBER(14),
C2_C2 VARCHAR2(12),
C3_C3 VARCHAR2(18),
C4_C4 NUMBER(7),
C5_C5 TIMESTAMP(11)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY dat_dir
ACCESS PARAMETERS
RECORDS DELIMITED BY 0x'0D0A'
CHARACTERSET 'WE8ISO8859P1'
STRING SIZES ARE IN CHARACTERS
BADFILE 'partners.txt_%a.bad'
LOGFILE 'partners.txt_%a.log'
DISCARDFILE 'partners.txt_%a.dsc'
SKIP 0
FIELDS
MISSING FIELD VALUES ARE NULL
C1_C1 POSITION(1:14) ,
C2_C2 POSITION(15:26) ,
C3_C3 POSITION(27:44) ,
C4_C4 POSITION(45:51) ,
C5_C5 POSITION(52:62)
LOCATION ('partners.txt')
PARALLEL
REJECT LIMIT UNLIMITED
# Create the statement
myStmt = myCon.createStatement()
# Execute the trigger creation
myStmt.execute(createTblCmd)
myStmt.close()
myStmt = None
# Commit, just in case
myCon.commit() -
Urgent : Error while loading data from PSA to DSO
Hi,
I am working on 7.0.
When i look for data into PSA then i have 1 date field which is containing data in proper date format. This date field is mapped with 0CALMONTH & 0CALYEAR for which i have written routine and directly assigned to 0DOC_DATE .
I have written a start routine to do some modifications in SOURCE_PACKAGE.
But When i am loading data from PSA to DSO its giving below error:
" Exception wrong_date ; see long text RSTRAN 303
Diagnosis
An exception wrong_date was raised while executing function module
RST_TOBJ_TO_DERIVED_TOBJ .
System Response
Processing the corresponding record has been terminated.
Procedure
To analyze the cause, set a break point in the program of the
transformation at the call point of function module
RST_TOBJ_TO_DERIVED_TOBJ . Simulate the data transfer process to
investigate the cause. "
I am not getting why this error is coming up
pls guide me !!you can map the code to DOC_DATE .
The code is used to read from any date and convert that into Fiscal year/period.
Try this code.
data: l_fiscyear type t009b-bdatj.
call function 'FISCPER_FROM_CALMONTH_CALC'
exporting
id_date = COMM_STRUCTURE-doc_date
iv_periv = 'V9'
importing
ev_fiscyear = l_fiscyear.
result value of the routine
RESULT = l_fiscyear. -
Issue to load data from database to XML file. error: ODI-40768
Hi,
While I am trying to load data from database to XML following error is appearing.
ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
at java.lang.Thread.run(Thread.java:662)
jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
physical schema: TESTSQL
Knowledge modules are:
LKM: LKM SQL to SQL
IKM: IKM XML Control Append
CKM: CKM SQL
Parameters set are:
CREATE_XML_FILE: true
XML_PATH:<default>:C:\DATA_FILE\www.xml
I have tried to change the directory path but error is still there.
Could some one please help me to resolve the issue?
Regards,
user1672911Hi,
The trouble in "<default>:" - if you set XML_PATH as C:\DATA_FILE\www.xml instead <default>:C:\DATA_FILE\www.xml- it will work correctly.
Greetings,
Eugene -
Erros while loading data from SAP R/3
Hi Friends.,
I'm going to load data from SAP R/3 all FI Modules to SAP BW in SAND BOX, before going to load master and tran data i would like to know, what are the errors might usualy be occurred while loading master & tran data using completly Business Content Objects?
Pls can anybody tell me ?
Regards.,
Balaji K. ReddyHi,
Some of the errors will be :
1. Missing master data while loading transaction data.
2. Invalid characters
3. RFC errors
4. Data format errors
5. IDoc errors
6. Locks
7. Table space errors
Also look at the thread below :
Troubleshoot Errors while Data Extraction...!!!
Cheers,
Kedar -
Functions from Module Scoping Question
Hello,
I have the following case:
I`m using module that contains several functions, some of them are executing commends in remote sessions. These functions are used from Powershell Script.
The issue is that when function refers to variable from the local computer using the “$Using:var” syntax, it does not tries to access the variables that is defined in Script scope.
The exception is:
“Invoke-Command : The value of the using variable ‘$using:var’ cannot be retrieved because it has not been set in the local session.”
This behavior is not reproduced when the functions are defined in the Script. I`m aware that Modules have their own “Scope”(or Context or whatever…), so I suppose the behavior is by design
I`m able to workaround it in two ways:
Using the “$Using:global:var” syntax in the script block or dot source the script.
However it`s not so appropriate for my purpose.
My Question is:
Can I force the Functions that comes from Module to behave the same way as if they are defined in the Script.
Any other suggestions are welcome.
Some examples:
Module content:
function Main
param
$sb2
$ses = New-PSSession -ComputerName sof-srv01
Execute -ses $ses -sb $sb2
function Execute
param (
$sb,
$ses
Invoke-Command -Session $ses -ScriptBlock $sb
Export-ModuleMember Execute,Main
Script content:
$var = ‘winrm’
$scr = {Get-Service $using:var}
Main -sb2 $scrYou're wrong as always: there's such a thing as DOT SOURCING MODE when using Import-Module.
Finally, you must know by now, that your post above is plain RUBBISH.
In other words, you are a complete PowerShell ignorant ( probably, you are a good rubbishellian ).
Surely, you re-read your BUGGY bug report https://connect.microsoft.com/PowerShell/feedback/details/828782/functions-in-script-modules-do-not-inherit-variables-from-the-scope-of-their-caller.
Now, someone posted how-to-do-it ...
I have no idea WHERE and WHY you got these three letters: m, v and p...
P.S.: How do you dare to post your rubbishell concepts in my reports? Leave my posts
clean!
Well, at least you finally had the guts to post what you meant by "Import-Module in DOT SOURCING MODE". As expected, it's garbage.
As you've pointed out, when you pass a path to a .ps1 file to Import-Module, it recognizes that a .ps1 file is not a module, and just dot-sources the script to load its contents instead. (And as you pointed out in your report on connect, this behavior
is buggy. Microsoft probably shouldn't have included it at all, and just had Import-Module produce an error if you try to point it as a non-module file, but whatever. The functionality is there now.)
Any discussion of Script Modules has nothing do with dot-sourcing a ps1 file, regardless of whether you did it yourself, or called Import-Module. Script Modules are psm1 files, and when they are imported, it happens in a very different way than when
a script is dot-sourced. Modules get their own session state which is separate from the main PowerShell session (except for the Global scope, which is shared by everything). That separation of session state is what leads to the types
of problems the OP posted here.
Now that you've finally owned up to what you were talking about, it would appear that your proposed solution is to stop using Script Modules, and just dot-source ps1 files instead. Have fun with that.
Maybe you are looking for
-
HTML Coding Issues with Dynamic Sites
I am trying to create a button using the sliding doors technique and I think I have the correct css, but the issue comes with the HTML. Here is the CSS: .Button /* Sliding right image */ background: transparent url('../Images/button_right_02.png'
-
Bypassing the non destructive editing for emptying trash
Hey. I am completey at my wits end over this. I have footage imported to three separate imovie projects. I have to try and combine these on the one timeline. However everytime I try to move anything it tells me I don't have enough memory. Fair enough
-
I know this might be a simple solutions but how do you create groups in the contacts part of the iphone, specifically so you can send a text message to more than one person without having to add each time for every text message.
-
Opening ADOBE forms is very slow.
Lately, once I enter my username and password, opening ADOBE forms is very slow.
-
How to setup remote web/client login to my BO XI 4.0 server in Bangalore?
I have setup BO XI 4.0 server with Win 2008 R2 in Bangalore. But I'm not able to configure remote login to this server. For example, To connect Interactive Analysis - Desktop from a remote system to my server installed in different machine. Any thoug