Proxy Authorization with COS connection limits Issue

Any one having issues with connection limits (nsSizeLimit, nsTimeLimit, etc) be applied on connections that come from the proxy server with the proxy authorization control?
Example:
nsSizeLimit is set on user A to 2000, via a COS Pointer definition. If user A connects directly to the directory the nsSizeLimit of 2000 is used. If user A connects through the proxy, and the proxy connection to the directory is through a proxy authorization connection via ID admin1, the limit is not applied and the system default limit 1000 is applied.
If I over-ride the COS value for nsSizeLimit and say its 3000. If I use the proxy connection in this case the limit of 3000 is used. So it only fails for COS settings.
All the ACI's are being correctly applied via the proxy connection just not the connection limits. So basically I can't get the limits to work when I have a COS value being used via the proxy authorization user.
Any ideas on how I can get around this. I want to avoid having to enter in the different limits into entries. Also using the limits in the proxy would create to many connection handlers.
Thanks for any help you can give.
Cory

Hi,
I don't think that connection limits (Time, Size and Throughput) for User A can apply to operations that are using the Proxy Authorization for that user. Proxy Authz is a delegation of Authorization for the ACI, and does not apply to Connection specific limits.
Regards,
Ludovic.

Similar Messages

  • Proxy authorization with JNDI

    Hi,
    I want to use proxy authorization unsing Java JNDI. I used the following program:
    import java.util.*;
    import javax.naming.*;
    import javax.naming.directory.*;
    import javax.naming.ldap.*;
    import com.sun.jndi.ldap.ctl.*;
    import static javax.naming.Context.*;
    class TestProxyAuthorization
    public static void main(String[] args) throws Exception
         LdapContext ldap=null;
         Hashtable<String,Object> props = new Hashtable<String,Object>();
         props.put(INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
         props.put(SECURITY_PROTOCOL, "ssl");
         props.put(SECURITY_AUTHENTICATION, "simple");
         props.put(SECURITY_PRINCIPAL, "uid=telschow,ou=rt,ou=people,dc=wias-berlin,dc=de");
         props.put(SECURITY_CREDENTIALS, "xxxxxxxx");
         props.put(PROVIDER_URL, "ldap://bolzano.wias-berlin.de/dc=wias-berlin,dc=de");
         try
              ldap = new InitialLdapContext(props, null);
              ldap.setRequestControls(new Control[]{new ProxiedAuthorizationControl("dn:uid=vdsand,ou=fg5,ou=people,dc=wias-berlin,dc=de")});
              Attributes attrs = new BasicAttributes();
              attrs.put("objectClass", "organizationalUnit");
              attrs.put("ou", "aaaaaa");
              ldap.bind("ou=aaaaaa,ou=talk,ou=2004,ou=Literatur",null,attrs);
         catch (javax.naming.NamingException ne){ne.printStackTrace();}
    Running this program I get the error:
    javax.naming.CommunicationException: [LDAP: error code 2 - Protocol Error]; remaining name 'ou=aaaaaa,ou=talk,ou=2004,ou=Literatur'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.c_bind(Unknown Source)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(Unknown Source)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(Unknown Source)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(Unknown Source)
    at javax.naming.directory.InitialDirContext.bind(Unknown Source)
    at TestProxyAuthorization.main(TestProxyAuthorization.java:42)
    What is wrong?
    Can anybody help me?
    Ciao, Gerhard

    Hi,
    I don't think that connection limits (Time, Size and Throughput) for User A can apply to operations that are using the Proxy Authorization for that user. Proxy Authz is a delegation of Authorization for the ACI, and does not apply to Connection specific limits.
    Regards,
    Ludovic.

  • Running windows 7 firefox refuses to come up, proxy server is refusing connections network adminiastrater says proxy servers are correct and is issue with firefox what do I do/ do

    I start up firefox and it says the proxy server is refusing connection. It is configured to use a proxy server that is refusing connections. To check the proxy servers and ask network administrater to make sure proxy server is correct They say the proxy server is correct and it is a firefox problem. So what to I do now?

    Make sure that the Firefox connection settings are the same as in IE.
    You can find the connection settings in "Tools > Options > Advanced : Network : Connection"
    If you do not need to use a proxy to connect to internet then select No Proxy
    In Firefox 3.6.4 and later the default connection settings have been changed to "Use the system proxy settings".
    You can compare them with the IE settings in the Internet Options (Control Panel).
    Control Panel > Internet Options > Connections: LAN Settings

  • Issues with JDBC Connection Pooling

    Hi all,
    I'm experiencing some unexpected behaviour when trying to use JDBC Connection Pooling with my BC4J applications.
    The configuraiton is -
    Web Application using BC4J in local mode
    Using Default Connection Stagegy
    Stateless Release Mode
    Retrieving Application Modules using Configuration.createRootApplicationModule( am , cf );
    Returning Application Modules using Configuration.releaseRootApplicationModule( am, false );
    Three application modules
    AppModuleA - connects to DatabaseConnection1
    AppModuleB - connects to DatabaseConnection2
    AppModuleC - connects to DatabaseConnection2
    My requirement is to -
    Use App Module Pooling and have individual pool for each Application Module
    Use JDBC Pooling and have individual pool for each Database connection
    Note: All configuration was achieved in design mode (i.e. right clicking AppModule->Configurations...)
    1. Initial approach -
    In the configuration for each Application Module I specified the connection type as 'JDBC Datasource' and specified to approriate datasource.
    Tried setting doConnecitonPooling to 'true' as well as 'false'
    In the data-sources.xml I specified all the appropriate info including min-connections and max-connections.
    I would expect, with the above config that BC4J would use OC4J's built in JDBC connection pooling.
    2. Second approach -
    In the configuration for each Application Module I specified the connection type as JDBC URL.
    In the configuration I specified doConnectionPooling = 'true' as well as the max connection, max available and min available
    What I experienced in both cases was that the max connections seem to be ignored as the number of connection as reported by the database (v$session) was exceeded by more than 10.
    In addition to this once the load was removed the number of JDBC connecitons did not drop (I would have expected it to drop to max available connections)
    My questions are -
    1. When specifying to use a 'JDBC Datasource' style of connection, is it in fact OC4J that is then responsible for pooling JDBC connections? And in this case should BC4J's doConnectionPooling parameter be set to true or false?
    2. Are there any known issues with the use of the JDBC Conneciton Pool as stated by the above to approaches?

    Thanks for the additional info. Please see my comments. below.
    Sorry should have been more specififc -
    1. Is each application pool using a different JDBC user? You mentioned DatabaseConnection1 and DatabaseConnection2
    above; are these connections to different schemas / users? If so, BC4J will create a separate connection pool for each
    JDBC user. Each connection pool will have its own maximum pool size.
    Each 'DatabaseConnection' refers to a different database, actually hosted on a seperate physical server, different
    schema and different user.BC4J will maintain a separate connection pool for each permutation of JDBC URL / schema. If each user is connecting
    to a different DB instance then I would expect no greater than 10 DB sessions. However, if a DB instance is hosting
    more than user then I would expect greater than 10 DB sessions (though still no more than 10 DB sessions per user).
    2. Are all the v$session sessions related to the JDBC clients? There should be at least one additional database
    session which will be related to the session that is querying v$session.
    When querying the v$session table I specifically look for connections from the user in quesiton and from the machine
    name in question and in doing so eliminate the database system's connections, as well as the query tools'
    connection. One area I'm not sure about is the connection BC4J uses to write to its temporary tables. I am using
    Stateless release mode and have not explicetly stated to save to the database but I'm wondering if it still does if so
    and how does it come into the equation with max connections?BC4J's internal connections are also pooled and the limits apply as mentioned above. So, if you have specified
    internal connection info for a schema which is different than the users above I would expect the additional conns.
    One helpful diagnostic tool, albeit programmatic, might be to print the information about the connection pools after
    your test client(s) have finished. This may be accomplished as follows:
    // get a reference to the BC4J connection pool manager
    import oracle.jbo.server.ConnectionPoolManagerFactory;
    import oracle.jbo.server.ConnectionPoolManagerImpl;
    import oracle.jbo.pool.ResourcePool;
    import java.io.PrintWriter;
    import java.util.Enumeration;
    // get the ConnectionPoolManager. assume that it is an instance of the supplied manager
    ConnectionPoolManagerImpl mgr = (ConnectionPoolManagerImpl)ConnectionPoolManagerFactory.getConnectionPoolManager();
    Enumeration keys = mgr.getResourcePoolKeys();
    PrintWriter pw = new PrintWriter(System.out, true);
    while (keys.hasMoreElements())
    Object key = keys.nextElement();
    ResourcePool pool = (ResourcePool)mgr.getResourcePool(key);
    System.out.println("Dumping pool statistics for pool: " + key);
    pool.dumpPoolStatistics(pw);
    }

  • How to resolve HTTP/1.1 407 Proxy Authorization Required issue

    Dear Sir,
    I am getting following error when connecting from SQL developer to oracle cloud. I have tested both on SQL developer 3.2.20.09.87 and sqldeveloper-4.0.2.15.21. but getting the same error as below.
    request your in getting the resolution for the same. thanks in advance
    HTTP/1.1 407 Proxy Authorization Required:
    oracle.dbtools.raptor.cloud.auth.AuthenticationFailedException: HTTP/1.1 407 Proxy Authorization Required
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:162)
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.authenticate(BasicAuthenticationEngine.java:63)
      at oracle.dbtools.raptor.cloud.auth.basic.GUIBasicAuthenticationEngine.authenticate(GUIBasicAuthenticationEngine.java:26)
      at oracle.dbtools.raptor.cloud.connection.ConnectionCreator.createConnection(ConnectionCreator.java:24)
      at oracle.dbtools.raptor.cloud.connection.CConnections$C.getConnection(CConnections.java:39)
      at oracle.dbtools.raptor.cloud.connection.CConnections.getConnection(CConnections.java:176)
      at oracle.dbtools.raptor.cloud.navigator.CloudConnection.openConnectionImpl(CloudConnection.java:127)
      at oracle.dbtools.raptor.cloud.navigator.CloudConnection.getConnection(CloudConnection.java:89)
      at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:74)
      at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:38)
      at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.IOException: HTTP/1.1 407 Proxy Authorization Required
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:250)
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:24)
      at oracle.dbtools.raptor.cloud.connection.CloudHander.handleResponse(CloudHander.java:38)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:945)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
      at oracle.dbtools.raptor.cloud.connection.DefaultClient.executeRequest(DefaultClient.java:96)
      at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:153)
      ... 17 more
    Regards,
    Deenanath
    Message was edited by: 2803956
    Hi Brian,
    I did settings for Database and SFTP only. The advanced setting on "new cloud connection" screen fills automatically. when I tried to remove the advanced setting such as host name, port, server path and service name. then it is asking for hostname.
    After doing all the steps i am facing the same issue of " HTTP/1.1 407 Proxy Authorization Required".
    Could you please help me to resolve the issue?
    Thanks for your help and support.

    Did you set up your HTTP Proxies inside of the settings in SQL Developer? Does the particular database you are attempting to access, does the proxy server need authentication? Again, check the http proxy options in sql developer.
    https://docs.oracle.com/cd/E11882_01/doc.112/e12152/intro.htm#CIHFCGCD

  • Proxy authorization doesn't work with JSSE 1.02

    Hello,
    Seems like there is no common way to authenticate with proxy for HTTP and HTTPS.
    Connecting to http://... - works fine, but https://... returns error message:
    Unable to tunnel through 111.111.111.111:8080. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
    (IP address is intentionally changed in the message above)
    I'm using JSSE with VAJ JDK 1.2 and here is a Java code snippet that works well with HTTP connections:
         Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
         System.setProperty("java.protocol.handler.pkgs",
              "com.sun.net.ssl.internal.www.protocol");
         System.setProperty("https.proxyHost", proxyHost);
         System.setProperty("https.proxyPort", proxyPort);
         System.setProperty("http.proxyHost", proxyHost);
         System.setProperty("http.proxyPort", proxyPort);
         try {
              URL url = new URL("https://www.sun.com");
              URLConnection connection = url.openConnection();
              String authString = proxyUserID + ":" + proxyPasswd;
              String encodedAuthString =
                   "Basic " + new sun.misc.BASE64Encoder().encode(authString.getBytes());
              connection.setUseCaches(false);
              connection.setRequestProperty("Proxy-authorization", encodedAuthString);
    Listening to the network traffic helped me to understand that there is a difference between the way HTTP and HTTPS is handled. For some reason HTTPS ignores all the headers that I specify using setRequestProperty().
    Here is example of request and responses sent by HTTPS handler:
    Request:
    CONNECT 198.175.98.32:443 HTTP/1.0
    User-Agent: JSSE
    Proxy response:
    HTTP/1.0 407 Proxy Authentication Required
    Date: Wed, 07 Nov 2001 22:04:11 GMT
    Content-Length: 233
    Content-Type: text/html
    Server: NetCache (NetApp/5.1R2D4)
    Proxy-Authenticate: basic realm="NETCACHE2"
    Please note that there is no Proxy-authorization header in the request above.
    Compare it with HTTPS request sent by Netscape browser:
    Request to proxy:
    CONNECT www.sun.com:443 HTTP/1.0
    Proxy-authorization: Basic am0vbDphrGxHa22lLg==
    User-Agent: Mozilla/4.76 [en] (Windows NT 5.0; U)
    Response:
    HTTP/1.0 200 Connection established
    Proxy-Agent: NetCache NetApp/5.1R2D4
    So, the question is:
    What is the best way to pass "Proxy-authorization" header to proxy server??
    Thanks in advance for your time.

    Hi, I am also facing same problem
    Software : Weblogic jdk1.3.1
    If anyone know the solution ,Please help me
    Thanks,
    Suneel

  • Issues with WiFi connection to Deskjet 3545

    Hi,
    I have number of issues with WiFi connection to my new Deskjet 3545 AIO:
    1. Printer is not able to get IP address automatically from home WiFi router (all other devices get IP with no problem). Using WPS allow printer to register in network but after switching off, WPS setting is not stored, so I have to do it again. This I was able to solve with manual entering of IP address, netwrok mask, DNS and gateway address.
    2. Official HP software installed from HP site was able to find printer for 3dattempt, and it started to work. But after a while, "HP utility" program loose connection to printer,  so I can not see any parameters, and I get "can not find printerä message when start to to print. After a some time (minutes to hours), whithout any action from my side, connection to printer seems to be restored, so I can see printer parameters in "HP utility" and printing is started.
    3.  Official HP software installed from HP site on PC (Windows 7) is not able to find printer on WiFi at all, works only with USB.
    All this is disaponinting and unexpected, as my office HP LaserJet Pro 400 Color works perfect.

    Hi @DmiBro,
    Welcome to the HP Forums!
    I see that you are having some wireless issues with your HP Deskjet 3545 to your Mac OS X 10.10 and Windows 7 computers. I am sorry to hear this, but I am happy to help!
    I would recommend the following guides:
    HP Single-Function and Multifunction Printers - 'Printer is offline' Message Displays on the Compute.... (The solutions for OS X v10.8 Mountain Lion and OS X v10.9 Mavericks will work on Mac OS X 10.19 Yosemite.)
    HP Single-Function and Multifunction Printers - 'Printer is offline' Message Displays on the Compute....
    HP ENVY 4500 and HP Deskjet Ink Advantage 3540 e-All-in-One Printer Series - Printer Does Not Mainta....
    Tips for troubleshooting wireless connection issues
    The following tips can help you troubleshoot and avoid wireless connectivity issues. You can try these tips separately or in combination to get a successful wireless signal.
    Move the printer and the computer closer to the router, but no closer than 6 ft (1.8 m). Wireless signals can be weaker at greater distances between the printer and the router.
    If you are experiencing an intermittent wireless connection, try restarting your router. Consult your router manufacturer, Internet service provider, or network administrator for instructions on how to restart the router.
    Remove any metal objects between the printer, the computer, and the router. Objects such as refrigerators, microwaves, or metal bookcases can interfere with wireless transmission.
    Move any device that emits radio signals, such as microwaves and cordless telephones, farther away from the printer. Such devices can interfere with wireless signals.
    I would also recommend this website, HP Wireless Printing Center - Troubleshooting Issues.
    Hope this information is helpful, and have a nice day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Issues with my connection when gaming (Insurgency)

    Hello,
    I just bought the MSI GT72 2QE. I am very pleased with de specs like the Geforce GTX 980m and the i4710hq but there is an issue that is bothering me some days now. When i am playing my beloved game Insurgency, i get ping spikes all the time. So i followed up some instruction on uninstalling the Killer software suite and just installing the drivers when i encountered the next problem. My Killer Wireless-n/a/ac 1525 Wireless Network Adapter couldn't find the drivers in the 'drivers only' package. But i did my best to find other drivers and accomplished after 5 hours full of frustration. So that is done but still doesn't solve my problem.
    I don't know what to do anymore and I'm starting to think that maybe my Killer Wireless-n/a/ac 1525 Wireless Network Adapter is the issue. Maybe this is a hardware issue. I contacted the store where i bought it and they will contact me in 48 hours with a possible solution but the guy said that after all my effort it seems like a hardware issue indeed. You guys are my last hope or my laptop will be gone for 3 weeks at the factory.
    Video of ping:
    nl.tinypic.com/r/ztisd1/8
    I hope someone has the solution.
    Excuse me for my incorrect English, it's not my native language.
    Bye!

    Thanks for your reply.
    I'm glad (and I'm not glad for the others..) that I'm not the only one. But it's not because there are more devices connected to my router because I am the only one now and I'm still having this problem while my other laptop doesn't have any problems at all. I've tried everything so far now. Resetting my router, restarting my router, reinstalled windows, reinstalled drivers, got rid of the software suite, turned off firewalls, virusscanners etc. Everything.
    I thought it was only with Insurgency but it's also bugging me with Battlefield 4.
    So i have tried and done everything i could find on every forum on the internet. Still I don't get the download/upload/connection I am used to when using wireless. When i am in my room, which is 10m away from the wireless router, my download speed is max 1200 kb/s where I would easily get 2300 kb/s. Also when playing online games I am having big issues with my latency/ping. It goes from 60 to 200 to 400 and back every 15/20 seconds. I also own a Asus laptop and I don't have any issues at all with the wireless connection. When I am in my room there are no problems at all. I am starting to think that the Killer Wireless adapter is just a f*cked up thing. I bought a laptop (GT72 with 980m) for €2300 but I am having all these issues with the connection. It makes me really frustrated.
    Longer vid of ingame netgraph:
    nl.tinypic.com/r/97mjae/8
    I am hoping that there is something that solves my issues. I'm starting to think that another wireless network adapter from another brand is the only option. Is there an option to change the wireless network adapter on my laptop because I will if I can. This piece of sh*t needs to be replaced.
    Bye

  • Issues with changing connection at run-time

    Post Author: dmazourick
    CA Forum: Data Connectivity and SQL
    Weu2019ve tried a lot of different ways to resolve this issue, but are getting every time the different result.
    Probably someone deal with that issue before and know how to correctly resolve it.
    Weu2019re using Crystal Reports Runtime Components X+ (X, XI, XI R2) u2013 all of them has this issue.
    We need client application to connect to multiple data sources u2013 user chooses report, chooses data source and we show the report for specified data source.
    The data sources are tables or stored procedures stored in different databases on different servers.
    For sure, every data source for a single report has the same structure, but that doesnu2019t matter.
    The issue is: when the name of the database on one server is the same as the name of database on second server, the connection caching occurs.
    How we can check that:
    1.       Weu2019re running report for Server1:<DBN> - report shows data from Server1.
    2.       Weu2019re opening second report for Server2:<DBN> - report shows data from Server1.
    3.       Weu2019re closing application and run 1-2 in opposite order, now both reports show data from Server2.
    Weu2019ve tried different approaches u2013 below is a code sample that opens the report for specific connection.
    Juts to be sure that no one will ask u2013 u201CAre you sure youu2019re passing the correct connection info etc.u201D. Yes! We are sure because weu2019re trying to fix this issue for a long time and tried a lot of different approaches and still cannot find the right solution.
    The code looks like below. This is VB6 code, but also the same situation was tried on VC++ 6.0
    Weu2019re not looking into CR.NET solution for now.
    =================================================
    Sub DisplayReport(Server as String, DB as String, UID as String, PWD as String, viewer as Object)
        Dim app As New CRAXDRT.Application
        Dim report As CRAXDRT.report
        Dim database As CRAXDRT.database
        Dim table As CRAXDRT.DatabaseTable
        Dim par As CRAXDRT.ParameterFieldDefinition
        Set report = app.OpenReport("D:\TestReport_X.rpt")
        report.database.LogOnServer "pdssql.dll", Server, DB, UID, PWD
        Set table = report.database.Tables(1)
        table.SetLogOnInfo Server, DB, UID, PWD
        table.Location = table.Name
        report.database.Verify
        viewer.ReportSource = report
        viewer.ViewReport
    end sub
    =================================================
    The result of above code is the following:
    1.       If we will pass the same viewer and will use different Server u2013 the report will be displayed correctly
    2.       If we will pass different viewers and will use different Server u2013 the reports will contain same data
    The result of above code also depends from the version of Crystal Reports the report was designed in:
    1.       For Report designed in 8.5 u2013 passing of the same viewer with same connection info second time will refresh report
    2.       For Report designed in X, XI, XI R2 u2013 no refresh
    Also, a slight modification of the above code helps for reports designed in XI to work properly, but not for reports designed in X and 8.5:
    1.       Before calling LogonServer, make the following: DB = DB & u201C;u201D & Int(rnd()*32767)
    That makes report designed in XI to display properly in different viewers, but doesnu2019t have any impact to X and no any impact to 8.5
    Weu2019re really looking for any help in this question

    Post Author: fburch
    CA Forum: Data Connectivity and SQL
    I am having similar problems and some successes.
    I have 70+ reports and now suddenly I want to point them at two different servers, but at databases with the same name like you talked about.
    I first just tried the following:
    #1. Load report:
    Dim myReport As New ReportDocument
    myReport.Load(filename)
    #2. Pass in parameter values
    ''Get the collection of parameters from the report
    Dim crParameterFieldDefinitions As ParameterFieldDefinitions = r.DataDefinition.ParameterFields
    ''Access the specified parameter from the collection
    Dim crParameter1 As ParameterFieldDefinition = crParameterFieldDefinitions.Item(ParamName)
    ''Get the current values from the parameter field. At this point
    ''there are zero values set.
    'crParameter1Values = crParameter1.CurrentValues
    ''Set the current values for the parameter field
    Dim crDiscrete1Value As New ParameterDiscreteValue
    If crParameter1.ValueType = FieldValueType.DateField Or crParameter1.ValueType = FieldValueType.DateTimeField Then
    If ParamValue Is System.DBNull.Value Then
    crDiscrete1Value.Value = CDate("1/1/1900")
    ElseIf ParamValue Is Nothing Then
    crDiscrete1Value.Value = CDate("1/1/1900")
    Else
    crDiscrete1Value.Value = ParamValue
    End If
    ElseIf crParameter1.ValueType = FieldValueType.StringField Then
    If ParamValue Is Nothing Then
    crDiscrete1Value.Value = ""
    Else
    crDiscrete1Value.Value = ParamValue
    End If
    ElseIf crParameter1.ValueType = FieldValueType.BooleanField Then
    If ParamValue Is Nothing Then
    crDiscrete1Value.Value = False
    ElseIf ParamValue.ToString.ToUpper = "TRUE" Then
    crDiscrete1Value.Value = True
    Else
    crDiscrete1Value.Value = False
    End If
    ElseIf crParameter1.ValueType = FieldValueType.NumberField Then
    If ParamValue Is Nothing Then
    crDiscrete1Value.Value = 0
    Else
    crDiscrete1Value.Value = ParamValue
    End If
    Else
    If ParamValue Is System.DBNull.Value Then
    crDiscrete1Value.Value = Nothing
    ElseIf ParamValue Is Nothing Then
    crDiscrete1Value.Value = Nothing
    Else
    crDiscrete1Value.Value = ParamValue
    End If
    End If
    ''Add the first current value for the parameter field
    Dim crParameter1Values As New ParameterValues
    crParameter1Values.Add(crDiscrete1Value)
    ''All current parameter values must be applied for the parameter field.
    crParameter1.ApplyCurrentValues(crParameter1Values)
    #3 Set "Table Log in info" (most of my reports using stored procedures, but I guess I still needed this step).
    Dim CrTables As Tables = r.Database.Tables
    Dim CrTable As Table
    Dim crtableLogoninfos As New TableLogOnInfos()
    Dim crtableLogoninfo As New TableLogOnInfo()
    With crConnectionInfo
    .ServerName = connectionParser.GetServerName(connectionString)
    .DatabaseName = connectionParser.GetDatabaseName(connectionString)
    If connectionParser.DoesUseIntegratedSecurity(connectionString) = True Then
    .IntegratedSecurity = True
    Else
    .UserID = connectionParser.GetServerUserName(connectionString)
    .Password = connectionParser.GetServerPassword(connectionString)
    .IntegratedSecurity = False
    End If
    End With
    For Each CrTable In CrTables
    crtableLogoninfo = CrTable.LogOnInfo
    crtableLogoninfo.ConnectionInfo = crConnectionInfo
    CrTable.ApplyLogOnInfo(crtableLogoninfo)
    If InStr(CrTable.Location, ".dbo.") = 0 Then
    CrTable.Location = crConnectionInfo.DatabaseName + ".dbo." + CrTable.Location
    End If
    Next
    If r.Subreports.Count > 0 Then
    Dim crSections As Sections
    Dim crSection As Section
    Dim crReportObjects As ReportObjects
    Dim crReportObject As ReportObject
    Dim crSubreportObject As SubreportObject
    Dim crDatabase As Database
    Dim subRepDoc As New ReportDocument()
    'SUBREPORTS
    'Set the sections collection with report sections
    crSections = r.ReportDefinition.Sections
    'Loop through each section and find all the report objects
    'Loop through all the report objects to find all subreport objects, then set the
    'logoninfo to the subreport
    For Each crSection In crSections
    crReportObjects = crSection.ReportObjects
    For Each crReportObject In crReportObjects
    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
    'If you find a subreport, typecast the reportobject to a subreport object
    crSubreportObject = CType(crReportObject, SubreportObject)
    'Open the subreport
    subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
    crDatabase = subRepDoc.Database
    CrTables = crDatabase.Tables
    'Loop through each table and set the connection info
    'Pass the connection info to the logoninfo object then apply the
    'logoninfo to the subreport
    For Each CrTable In CrTables
    crtableLogoninfo = CrTable.LogOnInfo
    crtableLogoninfo.ConnectionInfo = crConnectionInfo
    CrTable.ApplyLogOnInfo(crtableLogoninfo)
    If InStr(CrTable.Location, ".dbo.") = 0 Then
    CrTable.Location = crConnectionInfo.DatabaseName + ".dbo." + CrTable.Location
    End If
    Next
    End If
    Next
    Next
    #4 go get the data
    crv.ReportSource = myReport
    crv.Refresh()
    #5 Call export to disk function.
    This was not changing server - did not realize it was a caching problem as you suggested. That makes sense. So anyway, then of course I threw a verify database statement on there, before I get the data. Now looks like this:
    #1 Load Report
    #2. Pass in parameter values (dummy values that will generate schema of table without having to actually run long running procedures, i.e. select (cast 1 as int) as somefield1, cast(2.0 as numeric(10,0)) as somefield2
    #3 Set "Table Log in info"
    #3b Verify the database which seems to be a necessity:
    myReport.VerifyDatabase()
    #3c Re-populate the report with real parameter values, same as #2 but this time with the ones that will generate the real data
    #4 go get the data
    #5 Call export to disk function.
    This does work, some of the time. When the datasource underlying report are tables, it works. I made a dummy crystal report with lots of different types of params (stored procedure underlying database) - this also worked!
    Unfortunately, when I run this against the majority of my reports, I get this stupid "invalid mapping type value", for which I have not been able to resolve yet.
    I also tried putting a myreport.SetDatabaseLogon("","") -- what would this do, clear it out? (saw this referenced somewhere).
    Then I tried putting the real connection info in there as well ...
    myReport.SetDatabaseLogon(uid, pwd, serverName, DBname)
    I put this setdatabase thing before I called verifydatabase, which is where the process is bombing out and giving me invalid mapping type for the reports that do not run.
    At this point I am still working on solution. I have tried creating dummy report that used same parameter types as a report that was failing and voila - the dummy report worked. Anyway, let me know if you get your problem fixed and I will do the same. Looks like you are using a different method that I didn't notice "LogOnServer"

  • Issues with ODI connection to Hyperion Financial Management

    Hi,
    I am having some issues with ODI connection to Hyperion Financial Management. ODI and Financial management are setup on different machines.
    The ‘Cluster(Data Server)’ name in Topology is given as ‘hfm03cl’. On reverse-engineering a model it gives the following error:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 38, in ?
    com.hyperion.odi.common.ODIHAppException: Error occurred in driver while connecting to Financial Management application [HFM1] on [hfm03cl] using user-name [admin].
    at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:58)
    When HFM is installed on the same machine, it works fine. How does ODI identify a cluster on a different machine? Do I have to give the machine name along with the cluster name? If so, what is the format?
    Thanks,
    Su

    You will need to have the HFM client installed on any machine that will be running ODI (i.e. Designer or Agent) that will be executing connections to an HFM server.
    Once you have the HFM client installed, see if you can actually connect to HFM from that machine using the HFM client.
    Couple of other thing, in the Physical Schema, have you set the Application Catalog and Work Catalog to the same HFM application?
    Also, when you are reversing, are you using the local agent or one you have installed using agentservice?
    geeo

  • Issues with OCI connection..

    I've been working on this for over a day, with infinite variations on the theme; but I cannot get a basic query to give back data. I've got the following code:
    <?
    $orcl = <<<OUT
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)(INSTANCE_NAME = orcl)
    OUT;
    $oci = oci_connect('','',$orcl)
    or die('Connection error.');
    if(!$oci) {
         echo 'Connection error: ';
         if(oci_error($oci)) {
              $oerr = oci_error();
              echo $oerr['code'];
         die;
    echo '<p>Initiated connection.</p>';
    $input = <<<OUT
         select * from user_objects
         where object_name not like '%SYS_%'
         order by object_name;
    OUT;
    $query = oci_parse($oci, $input);
    if(!$query) {
         $oerr = oci_error($oci);
         echo $oerr['code'];
    if(oci_execute($query)) {
         while($output = oci_fetch_array($query)) {
              $object = $output['OBJECT_NAME'];
              echo $object . '
    } else {
         echo 'Issue occurred..';
    oci_close($oci);
    ?>
    If I open this in a browser, it gives back the following:
         Initiated connection.
         Issue occurred..
    In other words, this indicates to me that the connection is being created, but that the query itself isn't being parsed or executed correctly. I've changed various things, for instance inserting 'orcl' instead or $orcl in the oci_connect(), including environment variables, etc. etc.; but I've gotten no further than this with it.
    Interestingly, if I do 'php index.php' on the command line, I get an ORA-12557 error (why is the page giving back 'Initiated connection' if this is the case).
    Installed Oracle is 10g 10.1.0 on Windows, connection is local. Thanks very much for any input..

    Odd; but thank you.
    I generally do that in order to offset db interactions a bit from other code and it's never been an issue with postgres interactions; but in this case I changed that and it's working now. I'm off to look into why this is (I imagine oci_parse isn't into it while PEAR::DB or pg_query ignore it; but I'm not certain).
    In either case, thank you.

  • Since the Mountain Lion OS update today I've had issues with internet connection and e-mail, has anyone else?

    Since the Mountain Lion OS update today I've had issues with internet connection and e-mail, has anyone else?

    That's what I would have thought, but even after saving the setting, as soon as I shut down my computer or log out of Mail, it automatically defaults back to 25. It's a bit frustrating.
    Now I just need to figure out how to get rid of those horrible pop-up banners but still have my glass sound and number of emails in the red dot when I get an email...
    These little tweaks are the only thing I HATE about upgrading my OS.

  • Iphone 5 issues with wifi connection

    Hope someone can help.  in the past few days my iphone 5 cannot or will not connect to the wifi network in my home.  It will connect if in close proximity to the home hub.
    Hub security been checked and all ok
    My phon has worked fine with wifi until then, and no issues.
    Two other iphone 5's in the house and they have no issue and connect without issue
    Can anyone help
    Regards
    Atomictnt

    Try resetting your network settings, go to settings>general>reset then tap reset network settings, then restart your iPhone by holding down the on/off and the home buttons until you see the Apple logo. 
    If you are still having problems try restarting your router. 

  • I'm trying to connect to my home wifi with my imac gh5. After I enter the password it says connection timeout or password incorrect. I know there's no issue with the connection but I don't know what else to do. Does anyone know how to fix this problem?

    I'm trying to connect to my home wifi with my imac gh5. After I enter the password it says connection timeout or password incorrect. I know there's no issue with the connection but I don't know what else to do. Does anyone know how to fix this problem?

    What is the make & model of your home Wi-Fi router that you are attempting to connect your G5 iMac to? Which exact model of iMac do you have?
    What wireless security type is your router using: WEP, WPA, or WPA2? If you temporarily disable wireless security, can the iMac connect to it now?

  • My itunes account shuts down for no reason.  It wont recognize my iphone and there is an issue with network connectivity and itunes.  I have already  reinstalled itunes and did a syste restore on my computer, firewall checked and virus scan done.  Ideas??

    My itunes account on windows xp shuts down for no reason.  If even try to delete something from my library it shuts down.   It wont recognize my iphone and there is an issue with network connectivity and I can't connect to the store.  I have already  reinstalled itunes and did a system restore on my computer, firewall has been checked, itunes is ok on firewall and virus scan done.  Ideas??

    Same problem. I can see the itunes store so not a problem with windows firewall. The account is active on my iphone so i know i am not locked out. I can connect the PC to my iphone so i know itunes is working ok. It is just logging into itunes on this pc which doesn't work. Only thing I can think of is that the email address I use for my apple id has been offline for a while and is working again now, I'm wondering whether this has been the case for others who are having this issue?

Maybe you are looking for