0x8007000e (E_OUTOFMEMORY) while adding a firewall rule using the windows firewall COM API

Hello,
Configuration: Windows Embedded 8 64-bit.
I'm using the Windows Firewall with Advanced Security COM API. The program uses the INetFwRules interface. Basically, I'm using the following code (Form the code sample available here : http://msdn.microsoft.com/en-us/library/windows/desktop/dd339604%28v=vs.85%29.aspx.)
 I get the error when performing "hr = pFwRules->Add(pFwRule);".
We can also encounter the problem when removing a rule (using pFwRules->Remove(ruleName);)
HRESULT hrComInit = S_OK;
HRESULT hr = S_OK;
INetFwPolicy2 *pNetFwPolicy2 = NULL;
INetFwRules *pFwRules = NULL;
INetFwRule *pFwRule = NULL;
long CurrentProfilesBitMask = 0;
BSTR bstrRuleName = SysAllocString(L"SERVICE_RULE");
BSTR bstrRuleDescription = SysAllocString(L"Allow incoming network traffic to myservice");
BSTR bstrRuleGroup = SysAllocString(L"Sample Rule Group");
BSTR bstrRuleApplication = SysAllocString(L"%systemroot%\\system32\\myservice.exe");
BSTR bstrRuleService = SysAllocString(L"myservicename");
BSTR bstrRuleLPorts = SysAllocString(L"135");
// Initialize COM.
hrComInit = CoInitializeEx(
0,
COINIT_APARTMENTTHREADED
// Ignore RPC_E_CHANGED_MODE; this just means that COM has already been
// initialized with a different mode. Since we don't care what the mode is,
// we'll just use the existing mode.
if (hrComInit != RPC_E_CHANGED_MODE)
if (FAILED(hrComInit))
printf("CoInitializeEx failed: 0x%08lx\n", hrComInit);
goto Cleanup;
// Retrieve INetFwPolicy2
hr = WFCOMInitialize(&pNetFwPolicy2);
if (FAILED(hr))
goto Cleanup;
// Retrieve INetFwRules
hr = pNetFwPolicy2->get_Rules(&pFwRules);
if (FAILED(hr))
printf("get_Rules failed: 0x%08lx\n", hr);
goto Cleanup;
// Create a new Firewall Rule object.
hr = CoCreateInstance(
__uuidof(NetFwRule),
NULL,
CLSCTX_INPROC_SERVER,
__uuidof(INetFwRule),
(void**)&pFwRule);
if (FAILED(hr))
printf("CoCreateInstance for Firewall Rule failed: 0x%08lx\n", hr);
goto Cleanup;
// Populate the Firewall Rule object
pFwRule->put_Name(bstrRuleName);
pFwRule->put_Description(bstrRuleDescription);
pFwRule->put_ApplicationName(bstrRuleApplication);
pFwRule->put_ServiceName(bstrRuleService);
pFwRule->put_Protocol(NET_FW_IP_PROTOCOL_TCP);
pFwRule->put_LocalPorts(bstrRuleLPorts);
pFwRule->put_Grouping(bstrRuleGroup);
pFwRule->put_Profiles(CurrentProfilesBitMask);
pFwRule->put_Action(NET_FW_ACTION_ALLOW);
pFwRule->put_Enabled(VARIANT_TRUE);
// Add the Firewall Rule
hr = pFwRules->Add(pFwRule);
if (FAILED(hr))
printf("Firewall Rule Add failed: 0x%08lx\n", hr);
goto Cleanup;
This works pretty well but, sometimes, at system startup, adding a rule ends up with the error 0x8007000e (E_OUTOFMEMORY) ! At startup, the system is always loaded cause several applications starts at the same time. But nothing abnormal. This is quite a random
issue.
According MSDN documentation, this error indicates that the system "failed to allocate the necessary memory".
I'm not convinced that we ran out of memory.
Has someone experienced such an issue? How to avoid this?
Thank you in advance.
Regards, -Ruben-

Does Windows 8 desktop have the same issue? Are you building a custom WE8S image, or are you using a full WE8S image? The reason I ask is to make sure you have the modules in the image to support the operation.
Is Windows Embedded 8.1 industry an option?
www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

Similar Messages

  • After downloading Firefox 5, I had some firewall issues. I am unable to use my McAfee AT&T firewall with Firefox 5. I don't like using the windows firewall. What can I do?

    I can't think of any additional details other than my question above.

    I had the same problem. I'm running 10.5 but on a Motorola chip. The Firefox download page is not clear on OS and machine requirements. To fix the problem, trash the newly installed Firefox 4. Download Firefox 3.6.16 and reinstall. All of your preferences and bookmarks will still be there as they are contained in a different place. Hope this helps.

  • [Solved] Windows Firewall rule that allows Windows Update

    Can anyone kindly give me a Windows Firewall rule that allows Windows Update? Assume I'm running MMC's "Windows Firewall with Advanced Security" snap-in as Administrator. Note that a "solution" that takes down the outbound firewall is
    not acceptable.
    Thank You.
    ===== Solution =====
    Suppose that, as the default, you've set the outbound firewall to block (see
    To close the outbound firewall, below). In order for Windows Update to check whether an update is available and then to download the update files, you first need an outbound firewall
    allow-rule that allows the Windows Update service to pass through the outbound firewall.
    Prerequisite: Knowledge of the Microsoft Management Console (MMC) and its "Windows Firewall with Advanced Security" plug-in.
    What you will do: You will use the "Windows Firewall with Advanced Security" MMC plug-in to create an outbound firewall rule that
    allows '%SystemRoot%\System32\svchost.exe' (the generic service driver) to pass through the outbound firewall on behalf of 'wuauserv' (the name of the specific service that performs the update).
    Warning: If you don't know what I'm writing about, get help.
    Name: Allow Windows Update (...or any name you prefer - it doesn't matter)
    Group:
    Profile: Public
    Enabled: Yes
    Action: Allow
    Program: %SystemRoot%\System32\svchost.exe
    Local Address: Any
    Remote Address: Any
    Protocol: Any
    Local Port: Any
    Remote Port: Any
    Allowed Computers: Any
    Status: OK
    Service: wuauserv
    Rule Source: Local Setting
    Interface Type: All interface types
    Excepted Computers: None
    Description:
    To open the outbound firewall:
    More accurate wording would be
    Outbound connections are allowed unless explicitly blocked by a rule.
    If you look at the standard rules you will find no block-rules. That means that nothing is blocked, everything is allowed, and the outbound firewall is wide open.
    To close the outbound firewall:
    More accurate wording would be
    Outbound connections are blocked unless explicitly allowed by a rule.
    If you look at the standard rules you will find only allow-rules that have been crafted to allow the vital Windows connections to pass through the outbound firewall. To an informed observer it's obvious that the firewall engineers crafted these
    allow-rules so that users who closed the outbound firewall wouldn't have to write them. But the firewall engineers left out Windows Update.

    Hi mark,
    Thanks for sharing, it will help other users who have similar issue.
    Regards

  • Time Machine error message while restoring..."an error occurred while adding a recovery system to the destination disk

    I had to change my hard drive in my MBP 15".  I use Time Machine on a Time Capsule for backup.  I am booting up my laptop with a bootable USB key.  I have partitioned my new hard drive (bigger than the old one) and named it Macintosh HD (same as the old one).  I select the option to restore from Time Machine Backup.  I select one of my latest backup....select my destination drive...the restore process starts but stop within minutes with the following message.  "An error occurred while adding a recovery system to the destination disk"  It then prompts me to restart....
    I need your help...what can it be.
    Thanks

    I've encountered this issue when the Time Machine was encrypted with FileVault.
    Article:  HT4718
    Additional Information
    Please note that OS X Recovery must be present on the computer's startup volume in order to use FileVault 2. Using RAID partitions or a non-standard Boot Camp partition on the startup disk may prevent OS X from installing a local Recovery system. See "OS X: Some features of Mac OS X are not supported for the disk (volume name)" for more information.
    What seems to work, is reinstalling the OSX from the internet, and then using migration assistant to pull the user from the time machine backup external when logged into a temporary administrator user to move the original user back over.
    Perhaps if you're stubborn, what would work is the following from the same article:
    What to do if the installer warns that no Recovery System can be created
    Some disk partition configurations may result in the OS X installer reporting that it could not create a Recovery System. In these situations, even if you are permitted to continue the install, you may want to quit the installation and create an external, bootable OS X hard drive with a Recovery System, first. You can continue your OS X upgrade on your computer's startup drive after creating an external Recovery System.
    Your storage device must have at least 13 GB available (after formatting) to install OS X Lion or later and a Recovery partition.
    These steps erase and reformat the storage device. This article instructs you on setting up a storage device to use the GUID partition scheme and the Mac OS Extended (Journaled) format, which are required to install OS X and a Recovery partition on your external storage device. You should back up any important files that are on the device to a different drive.
    This procedure installs a version of OS X that is compatible with the Mac it was created with. Using this OS X system with a different Mac model may produce unpredictable results.
    Your computer's serial number is sent to Apple as part of this process to help authenticate your request to download and install OS X Lion.
    All of this information was collected by browsing through the public articles on the Apple Support website.

  • On my MacBook Pro, while using the windows side, I have no audio. Any suggestions

    On my MacBook Pro while using the Windows hard drive, I have no audio. The icon shows that I should (no mute insignia).  Any thoughts what I might do to correct?
    Thnaks.
    Tom

    Whoa, I found the answer by clicking on one of the questions in the "More Like This" box to the right.  I do  wonder how to find that box before posting my dumb question.  The answer turned out to be checking the youtube volume control.  I turned that up and it solved the problem for Comast as well.

  • Is the windows firewall supose to be on or off when using Firefox

    Microsoft security essentials disappeared.

    To keep your PC secure, it is highly recommended that you keep the Windows Firewall on. You need to make some settings to use Firefox for browsing the internet. Please read these articles for more information: [http://support.mozilla.com/en-US/kb/Firewalls Firewalls], [http://support.mozilla.com/en-US/kb/Configuring%20Windows%20Firewall Configuring Windows Firewall] and [http://kb.mozillazine.org/Firewalls more about Firewalls]

  • Set a timeout for crystal sessions while using the Windows.Forms.Viewer?

    Hi,
    I am looking for a way to set the timeout for the crystal report sessions when using the Windows.Forms.Viewer in a .NET application. I guess that the default value is 20 minutes (like in the entperprise installations) but we cannot afford to keep many sessions open for that long. Is there a registry entry which can be set? Or even a way to do this programmatically?
    Thank you in advance,
    Stratos

    Hi David,
    we are talking here about a standalone .NET application where the reports are installed locally (like the application itself). We are not retrieving the reports from a server. The whole thing was developed using the crystal report viewer model probably because it was easier to do so. Is there a method in this model to tell the crystal runtime to do the clean-up work either for a report (like the ReportDocument.Close() ) or for the entire runtime instance. Dispose() does not seem to help us. If you say that there is no other way than redesign then we have to consider this option also.
    Cheers
    Stratos
    PS: What I was thinking of (as Plan B instead of using the ReportDocument object model) is to instantiate the crystal report viewer object in a separate process (.exe). Please note that we open a new crystal report viewer windows for each report, which is displayed. Closing the viewer window (ie. terminate the process) will at least then clean up and release the crystal DLLs and hopefully close the database connections. Or am I missing something here?
    Edited by: Efstratios Karaivazoglou on Jul 29, 2008 10:05 PM

  • Can I use the Window XP bundled with MS virtual PC in setting up boot camp?

    Hi hi,
    before having the new 24" iMac, I have MS office professional for Mac running on my 17" G5 iMac it. The bundle pack contains Window xp professional software running on Virtual pc program.
    I want to install boot camp on my new intel mac but can i use the window xp program which is bundled with MS virtual pc software for setting up boot camp?
    please advise.
    iMac 24"   Mac OS X (10.4.8)  

    Technically, so long as your bundled version is XP with service pack 2 then you should be able to use it.
    Legally, no. When Windows comes with a PC, even a virtual PC, it's license is for an OEM installation. While it's still functionally the same as a copy you'd buy in the store its license is for use only with that PC it came with and no others.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.7)  

  • Issue using the DBFS PL/SQL API

    Hi guys,
    I'm trying to use the DBFS PL/SQL APIs and create some simple functions that for example return the file size or move a file to a different path. I created a user DBFS_USER and granted DBFS_ROLE to that user. Using SQLDeveloper, when I run the following code, it works fine:
    SET SERVEROUTPUT ON
    DECLARE
    l_props DBMS_DBFS_CONTENT_PROPERTIES_T;
    l_prp dbms_dbfs_content_property_t;
    l_blob BLOB;
    l_item_type INTEGER;
    BEGIN
    DBMS_DBFS_CONTENT.getPath (
    path => '/staging_area/test_dir/IAMDBFS_USER.txt',
    properties => l_props,
    content => l_blob,
    item_type => l_item_type);
    FOR x in 1..l_props.count LOOP
    l_prp := l_props(x);
    if (l_prp.propname = 'std:length') then
    DBMS_OUTPUT.put_line(l_prp.propname || ' : ' || l_prp.propvalue);
    end if;
    END LOOP;
    END;
    However, when I try to put it in a package, I get the error message "Error(415,10): PLS-00201: identifier 'DBMS_DBFS_CONTENT_PROPERTY_T' must be declared" while trying to compile. This is what my package and its body looks like:
    create or replace
    PACKAGE MY_DBFS_PKG IS
    Function GetFileLength
    (P_FILE_PATH IN Varchar2
    ,P_ErrMsg OUT Varchar2)
    Return Number;
    END MY_DBFS_PKG
    Body:
    create or replace
    PACKAGE BODY MY_DBFS_PKG IS
    FUNCTION GetFileLength(
    P_FILE_PATH IN VARCHAR2 ,
    P_ErrMsg OUT VARCHAR2)
    RETURN NUMBER
    IS
    l_return NUMBER;
    l_props DBMS_DBFS_CONTENT_PROPERTIES_T;
    l_prop DBMS_DBFS_CONTENT_PROPERTY_T;
    l_blob BLOB;
    l_item_type INTEGER;
    BEGIN
    l_Return := 0;
    P_ErrMsg := NULL;
    DBMS_DBFS_CONTENT.getPath ( path => p_file_path, properties => l_props, content => l_blob, item_type => l_item_type);
    FOR x IN 1..l_props.count
    LOOP
    l_prop := l_props(x);
    IF (l_prop.propname = 'std:length') THEN
    l_Return := l_prop.propvalue;
    EXIT;
    END IF;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    l_Return := NVL(SQLCODE, -1);
    p_ErrMsg := SQLERRM;
    RETURN l_return;
    END GetFileLength;
    END MY_DBFS_PKG;
    Am I missing an extra grant somewhere? Or have I missed a declaration in the package or package body?
    I am not a DB person so pardon the probably inefficient loop to find the length or wrong declaration somewhere. I'm open to suggestions/recommendations but want to use the DBFS PL/SQL API as I need other functions out of it.
    Thanks very much in advance.
    Cappa

    Hi guys,
    I'm trying to use the DBFS PL/SQL APIs and create some simple functions that for example return the file size or move a file to a different path. I created a user DBFS_USER and granted DBFS_ROLE to that user. Using SQLDeveloper, when I run the following code, it works fine:
    SET SERVEROUTPUT ON
    DECLARE
    l_props DBMS_DBFS_CONTENT_PROPERTIES_T;
    l_prp dbms_dbfs_content_property_t;
    l_blob BLOB;
    l_item_type INTEGER;
    BEGIN
    DBMS_DBFS_CONTENT.getPath (
    path => '/staging_area/test_dir/IAMDBFS_USER.txt',
    properties => l_props,
    content => l_blob,
    item_type => l_item_type);
    FOR x in 1..l_props.count LOOP
    l_prp := l_props(x);
    if (l_prp.propname = 'std:length') then
    DBMS_OUTPUT.put_line(l_prp.propname || ' : ' || l_prp.propvalue);
    end if;
    END LOOP;
    END;
    However, when I try to put it in a package, I get the error message "Error(415,10): PLS-00201: identifier 'DBMS_DBFS_CONTENT_PROPERTY_T' must be declared" while trying to compile. This is what my package and its body looks like:
    create or replace
    PACKAGE MY_DBFS_PKG IS
    Function GetFileLength
    (P_FILE_PATH IN Varchar2
    ,P_ErrMsg OUT Varchar2)
    Return Number;
    END MY_DBFS_PKG
    Body:
    create or replace
    PACKAGE BODY MY_DBFS_PKG IS
    FUNCTION GetFileLength(
    P_FILE_PATH IN VARCHAR2 ,
    P_ErrMsg OUT VARCHAR2)
    RETURN NUMBER
    IS
    l_return NUMBER;
    l_props DBMS_DBFS_CONTENT_PROPERTIES_T;
    l_prop DBMS_DBFS_CONTENT_PROPERTY_T;
    l_blob BLOB;
    l_item_type INTEGER;
    BEGIN
    l_Return := 0;
    P_ErrMsg := NULL;
    DBMS_DBFS_CONTENT.getPath ( path => p_file_path, properties => l_props, content => l_blob, item_type => l_item_type);
    FOR x IN 1..l_props.count
    LOOP
    l_prop := l_props(x);
    IF (l_prop.propname = 'std:length') THEN
    l_Return := l_prop.propvalue;
    EXIT;
    END IF;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    l_Return := NVL(SQLCODE, -1);
    p_ErrMsg := SQLERRM;
    RETURN l_return;
    END GetFileLength;
    END MY_DBFS_PKG;
    Am I missing an extra grant somewhere? Or have I missed a declaration in the package or package body?
    I am not a DB person so pardon the probably inefficient loop to find the length or wrong declaration somewhere. I'm open to suggestions/recommendations but want to use the DBFS PL/SQL API as I need other functions out of it.
    Thanks very much in advance.
    Cappa

  • Thinking about using the Windows Event Logs as my main log store - looking for pros and cons

    I have been writing some larger scripts that write to physical log files.  Until today I have avoided trying to use the Windows Event logs, but, am beginning to rethink this and wondered if anyone has done this, and, what the strengths and weaknesses
    of this logging approach has been.  If I do it, I will probably write a function that accepts pipelined input and simply pass output to the log.  I wanted to get a feel for what I would be getting into before I started writing things up since this
    will probably take a little bit of work to get set up to run properly.

    At my company we use the Windows event log for many of our batch process logging for several reasons:
    Unlike logging to a central database, the Windows event log is always available. I've seen poorly thought out logging solution which log to a database and if the database happens to be unavailable the batch process would fail.
    Monitoring tool such as SCOM already have Windows event log watchers so adding alerts to take action based on message written to the Windows event log is easy
    Built-in support for writing Windows event log entries in the Powershell V2 write-eventlog cmdlet, a simple CLR can created in SQL Server or even command-line eventcreate.exe
    Easy to create a custom event log so you don't have to use the default application log in Windows 2008 and higher.
    Most shrink-wrap S/W already use the event log
    Issues I've seen:
    Windows 2008 with UAC on requires "registering" i.e. creating a new event log source with UAC. This can be done one time manually. Unfortunately there isn't a way to automate UAC--pure GUI. The Powershell command would be "New-EventLog -LogName Application
    -Source  mysource" if you're using the Application log and must be run as  administrator.
    Errant process writes many entries to the event log. Depending on the volume like for example writing stack dumps this can performance problems. I  think I recall an issue an Windows 2003 or Windows 2008 with UAC off  if you're creating a new
    event log source each time (which you shouldn't) then these results in many registry entries which can cause problems.
    I don't think the issues outweigh the benefits--just something to be aware of.

  • For someone who can't use the windows installer cleanup utility.

    I have been an iTunes user for years and have usually updated to the newest version whenever prompted and have had very little trouble with the program despite always using PCs. However, I recently purchased an iPhone which is fun, but requires the newest iTunes.
    I tried to install the new version and received a message which many people have, which said "The feature you are trying to use is on a network resource that is unavailable."
    I searched online and found the solution that said to use the Windows Cleanup Utility or whatever, however, my computer barred me from doing this for some reason. Even when I manually attempted to register with the Command Prompt window, I was unable to get the program to work. I tried to fix THIS part, but received another error message which directed me to format my computer, which I am unwilling to do at this time. I don't even want to lose my library but I'm kind of resigned to that at this time.
    So what I'm asking is, is there any other way to get this sorted out without the utility package? Any way to direct my computer to where itunes.msi would be on my computer? Is there anyway to fix this, seeing as it seems to be a recurring problem in the installation of this version? Thank you.

    +it's essentially telling me I'm not the administrator when not only am I, but I'm the ONLY user on this computer+
    Your sig says XPS. I assume that means XP. Your permissions must be corrupt in the registry, even though you are on an admin account. I got this same error when I upgraded my laptop to XP SP3. I had to run a tool from microsoft to fix it.
    Scroll down to the advanced troubleshooting section on this page and run the subinacl stuff. I went and watched a movie while it ran - just be patient.
    http://support.microsoft.com/kb/949377
    *Method 1: Reset the registry and the file permissions*

  • How do I enable iTunes in the Windows Firewall

    How do I enable iTunes in the Windows Firewall?  I use ESET Security which manages my Firewall.

    Try this document instead:
    iTunes 10 for Windows: Enable iTunes in the Windows Firewall

  • Can you tell me how I can ask for help with the following Indesign question:  I am a new Indesign user and a Creative Cloud member.  I was using the Window/Pages drop down window to view my pages alphabetically or by page number and also to determine whet

    I am a new Indesign user and a Creative Cloud member.  I was using the Window/Pages drop down window to view my pages alphabetically or by page number and also to determine whether or not my JPEG files were sufficiently HI-Res for the printer.  I don't know how I did it but somehow the window has changed so that now it does not have the alphabetical/numerical/Hi-Res information.  It just shows the pages in a two page spread in numerical order.  How can I restore the window so that I will be able to view the information as I did previously.
    Your help will be appreciated,
    Don Unwin
    [Personal Information Removed]

    The pages panel is not the place where you see this information.  You can customize the Links panel to show all sorts of things, including the page number, effective and actual ppi, and whether the link is OK or needs updating.

  • How to use the user and role API's and where to use it

    Hi All,
    I have configured SSO for my UCM11g. Now my application authenticates through the Oracle SSO login page. Currently it is working with SQL authenticator.
    Now, i have to use LDAP authenticator. when i will configure the LDAP authenticator, i have to use the user and role API's to fetch the user profile information from LDAP. i have got the API's which will be used to fetch the respected information, but i am not getting as where i will write those java programs and how this API will be used in my application. what settings i need to do on it so that application uses the API's. ?
    Please can anyone help me on this.
    thanks,
    Saurabh

    Hi, Mithu,
    Thanks a lot for your help in advance.
    I have carefully read the document: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6b66d7ea-0c01-0010-14af-b3ee523210b5.
    Now, I think I have to set the processor of every actions in every process if I use the GP for processing the workflow.
    I am better to hope that I can set the processor to the role for every actions in every process in the runtime through get the organizational structure in the WDA(webdynpro for java or webdynpro for java). Thus, the customer don't set the processor to the role for every action in every process when runing in the GP.   I don't know how to do this. 
    Whether the function is not supported in the GP? If so, I have to config two organizational structure: in the R/3 and in the Portal. I don't think our customer don't receipt this solution.
    Do you give me some hints? Thanks a lot.  My email: [email protected]
    Thanks again.
    Thanks & Regards,
    Tao

  • Using the Data Engine Java API

    I try to use the Data Engine Java API to generate an XML document from database data.
    So as mentioned in the documentation Business Intelligence Publisher User's Guide Release 10.1.3.2 (page 4-26 to 4-27)
    a) I created a java class (using Jdev Version 11.1.1.0.0)
    package oracle.apps.XMLPublisher.client;
    import com.sun.java.util.collections.Hashtable;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import oracle.apps.xdo.XDOException;
    import oracle.apps.xdo.dataengine.DataProcessor;
    public class XMLFileGenerator {
    public XMLFileGenerator() {
    public static void dataEngine() throws ClassNotFoundException, Exception {
    XMLFileGenerator xMLFileGenerator = new XMLFileGenerator();
    try {
    //Initialization instantiate the DataProcessor class//
    DataProcessor dataProcessor;
    dataProcessor = new DataProcessor();
    //Set Data Template to be executed
    dataProcessor.setDataTemplate("PERFRBS.xml");
    Hashtable parameters;
    parameters = new Hashtable();
    parameters.put("P_LEGAL_ENTITY_ID", "3259");
    parameters.put("P_TRU_ID", "3262");
    parameters.put("P_YEAR", "2009");
    dataProcessor.setParameters(parameters);
    // Now set the jdbc connection to the database that you
    // wish to execute the template against.
    // This sample assumes you have already created
    // the connection object 'jdbcConnection'
    Class.forName("oracle.jdbc.OracleDriver");
    String url =
    "jdbc:oracle:thin:@ap6005sdb.us.oracle.com:1526:hremeadv";
    Connection jdbcConnection;
    jdbcConnection= DriverManager.getConnection(url, "apps", "*****");
    dataProcessor.setConnection(jdbcConnection);
    System.out.println("Here1");
    // Specify the output directory and file for the data file
    dataProcessor.setOutput("BilanSocial.xml");
    System.out.println("Here2");
    dataProcessor.processData();
    System.out.println("Here3");
    } catch (SQLException e) {
    System.out.println("SQLException " + e.getMessage());
    } catch (XDOException e) {
    System.out.println("XDOException" + e.getMessage());
    public static void main(String[] argv) throws ClassNotFoundException,
    Exception {
    XMLFileGenerator xmlPublisher = new XMLFileGenerator();
    XMLFileGenerator.dataEngine();
    b) to generate my xml file based on the following data template
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <dataTemplate name="PERFRBS" defaultPackage="" version="1.0">
    <parameters>
    <parameter name="P_LEGAL_ENTITY_ID" dataType = "number"></parameter>
    <parameter name="P_TRU_ID" dataType = "number"></parameter>
    <parameter name="P_YEAR" dataType = "number"></parameter>
    </parameters>
    <lexicals>
    </lexicals>
    <dataQuery>
    <sqlStatement name="Q_INDICATORS">
    <![CDATA[ SELECT pai.action_information3   YEAR,
                    pai.action_information17  INDICATOR_VALUE
              FROM   pay_action_information pai 
             WHERE  pai.action_information_category     = 'HR_FR_BS'
                AND    pai.action_context_type             = 'PA'
                AND    pai.action_information1             = :P_LEGAL_ENTITY_ID
                AND    pai.action_information2             = :P_TRU_ID
                AND    pai.action_information3            = :P_YEAR       
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_YEARS" dataType="varchar2" source="Q_INDICATORS">
    <element name="YEAR" dataType="varchar2" value="YEAR"/>
    <element name="INDICATOR_VALUE" dataType="number" value="INDICATOR_VALUE"/>
    </group>
    </dataStructure>
    </dataTemplate>
    ---> But when I run it , it fails when calling the data processor with the following error
    D:\Jdeveloper11g\jdk\bin\javaw.exe -client -classpath "D:\Jdeveloper11g\jdevhome\XMLPublisher\src\Client\classes;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\versioninfo.jar;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\xdocore.jar;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\collections.jar;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\xmlparserv2-904.jar;D:\BI publisher\XMLP562_WIN\XMLP562_WIN\manual\lib\i18nAPI_v3.jar;D:\Jdeveloper11g\jdbc\lib\ojdbc14dms.jar;D:\Jdeveloper11g\jlib\orai18n.jar;D:\Jdeveloper11g\diagnostics\lib\ojdl.jar;D:\Jdeveloper11g\jlib\dms.jar" -Dhttp.proxyHost=emeacache.uk.oracle.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts= -Dhttps.proxyHost=emeacache.uk.oracle.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts= oracle.apps.XMLPublisher.client.XMLFileGenerator
    Here1
    Here2
    Exception in thread "main" java.lang.IllegalAccessError: tried to access class oracle.jdbc.driver.OracleStatement from class oracle.apps.xdo.dataengine.DBConnection
         at oracle.apps.xdo.dataengine.DBConnection.setRowPrefetchSize(DBConnection.java:42)
         at oracle.apps.xdo.dataengine.XMLPGEN.setRowPrefetchSize(XMLPGEN.java:1224)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:420)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:281)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:251)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:192)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:222)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:334)
         at oracle.apps.XMLPublisher.client.XMLFileGenerator.dataEngine(XMLFileGenerator.java:50)
         at oracle.apps.XMLPublisher.client.XMLFileGenerator.main(XMLFileGenerator.java:62)
    Process exited with exit code 1.
    Thanks by advance for your help

    Make sure you have the Oracle JDBC library setup in project parties and it's setup to export. The api's are fine. Have you looked at the BIPublisherIDE I wrote. All this code is already written for you. There is a manual on the site as well
    http://bipublisher.blogspot.com/2008/03/bi-publisher-bipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com

Maybe you are looking for

  • How can I ensure my iPhone calendar is in sync with my Google calendar?

    I sync my office Lotus notes desktop calendar with Google calendar and generally the two are in sync. However I find my calendar on the iPhone which I sync with the Google calendar through Exchange (along with mail and contacts) is simply out of sync

  • Adobe Acrobat XI suddenly stops working

    I have acrobat XI pro. I keep having a problem that I will be working on some and it works fine then all of a sudden it just stops working and won't open or let me open any documents. this has happed to me 2 times in week. please help me.

  • Scilab crashes when trying to display a graph

    Hi, I'm trying to use Scilab. I installed it via AUR with JOGL : https://aur.archlinux.org/packages/scilab/ https://aur.archlinux.org/packages/jogl/ I can launch the software, but as soon as I try a "plot" command, it crashes and I got the following

  • Files in itunes but not ipod

    Ok so I have this problem with some files. I imported a few songs into my ipod and when I click to see what is on my iPod library in itunes the songs are there but when I find them in my iPod they're not there. Also, some of the artists show up twice

  • Desktop buttons on os x

    Is there a button option for desktop icons in OS X. In OS 9.x there were options, list, icon or BUTTONS. One click and the document/ app what be launched. Does that option exist in OS X and how do you do it? RANDAL