Engine sweep unique parameter

For what interval of time should arise some unique connections that has been created alert?
This interval - one minute or not?

This is not a fixed time, this can be configured to a different value...

Similar Messages

  • Timeperiode for sweep-engine

    What ist the timerperiode for sweep-engine. I need it for tuning the unique parameter. I cant find in Dokumentation
    see:...
    The unique parameter triggers the alert when more than the unique number of  ports or hosts is seen on the address set within the time period!
    Kind Regards
    Gernro

    Here I'll deal with my own question; eventually -- after I had gotten the thing to work -- I found a pretty good detailing of how to approach this business of syncing up a Palm with the address book, etc. I don't know if there is a link directly to this article in these discussions, so I will provide one. This is an article from Apple created in August, 2005 and modified (as of this writing) in December, 2005, and relating particularly to Tiger users.
    http://docs.info.apple.com/article.html?artnum=302120
    It seems a fuller discussion than that provided in the Help documentation for iSync.
    Mac mini   Mac OS X (10.4.4)  

  • Sweep signatures and summarization

    Hello, everybody!
    I try to use summarization for sweep-engine signatures. I use for my test signature 2100 "ICMP Network Sweep w/ECHO". I set unique parameter to 10 and Summary mode to "Fire All" with Summary Threshold set to 3. After that I made simple nmap ping-scan of network with 256 nodes.
    I received 4 alerts with 10 addresses of scanned nodes and no summary alert at all.
    I tried several parameters with no success at all. Every time I got several alerts with no summary.
    Can anybody explain such behavior of the engine?
    With best regards
    Maxim Zimovets
    P.S. I use version 6.2(1)E3 of IPS software.

    What was your Summary Interval set to?
    Did all 4 alerts happen within the Summary Interval? If not, then they did not happen fast enough to kick in the auto summarization. It is not just the number of alerts, but the number of alerts within a specific time.
    My best guess is that the alerts were spread over a minute or 2 instead of the 30 seconds that is the default Summary Interval.
    Trying to force the automatic summarization for the sweep engines can often be very tricky. It is not always easy to tell how many alerts you should see from a sweep. A sweep is really just a single attack. If it lasts long enough you might get some additional alerts firing, but it is still really just the same attack. There are some internal timers within the sensor that control how often additional alerts will be produced for that same sweep. And users do not have control over those timers.
    NOTE: Other engines are easier to test for Summarization. This is because you are not relying on internal timers in the sensor. In the atomic engine if you send 10 packetsvery fast, then you know 10 alerts will be internally generated, and can much easier calculate and determine how those 10 alerts should be treated by the automatic summarization.
    If you really want to set the Threshold so low, you are probably better off avoiding the "automatic" upgrade to summarization. Instead just simply set it to Summarization mode to begin with, and have it always be summarized.

  • UNIQUE INDEX and PRIMARY KEYS

    Hi Friends,
    I am confused about primary keys.
    What is the purpose of this key again? I know it is used for unique constraints.
    Supposing I have a table with two (2) columns which are each indexed as unique.
    Then they can me both candidate at primary key right?
    So why do I need a primary key again? when I have 2 columns which are uniquely index?
    Thanks a lot

    A UNIQUE index creates a constraint such that all values in the index must be distinct. An error occurs if you try to add a new row with a key value that matches an existing row. This constraint does not apply to NULL values except for the BDB storage engine. For other engines, a UNIQUE index allows multiple NULL values for columns that can contain NULL
    The differences between the two are:
    1. Column(s) that make the Primary Key of a table cannot be NULL since by definition; the Primary Key cannot be NULL since it helps uniquely identify the record in the table. The column(s) that make up the unique index can be nullable. A note worth mentioning over here is that different RDBMS treat this differently –> while SQL Server and DB2 do not allow more than one NULL value in a unique index column, Oracle allows multiple NULL values. That is one of the things to look out for when designing/developing/porting applications across RDBMS.
    2. There can be only one Primary Key defined on the table where as you can have many unique indexes defined on the table (if needed).
    3. Also, in the case of SQL Server, if you go with the default options then a Primary Key is created as a clustered index while the unique index (constraint) is created as a non-clustered index. This is just the default behavior though and can be changed at creation time, if needed.
    So, if the unique index is defined on not null column(s), then it is essentially the same as the Primary Key and can be treated as an alternate key meaning it can also serve the purpose of identifying a record uniquely in the table.

  • Single parameter report running from java application

    hi,
    I had developed one servlet to run the crystal report template which will take one parameter.
    The service method from my servlet I am placing here.
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              ReportClientDocument clientDocument = new ReportClientDocument();
              CrystalReportViewer viewer = new CrystalReportViewer();
              Fields fi= null;
              viewer.setName("one");
              try
                   clientDocument.open("C:/Documents and Settings/Administrator/Desktop/lib-so/oneParamReport.rpt", 0);
              catch (ReportSDKException e)
                   e.printStackTrace();
              Fields oFields = new Fields();  
                        ParameterField portfolio = new ParameterField();
                        portfolio.setName("Portfolio");
                       Values oValues = new Values();
                       ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
                       oParameterFieldDiscreteValue.setValue(new Integer(16));
                       oValues.add(oParameterFieldDiscreteValue);
                       portfolio.setCurrentValues(oValues);
                       portfolio.setReportName(fileName);
                       oFields.add(portfolio);
              try {
                   viewer.setParameterFields(oFields );
                   viewer.processHttpRequest(request, response,request.getSession().getServletContext(), response.getWriter());
                   viewer.dispose();
              } catch (ReportSDKExceptionBase e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    while running this servlet I am getting one exception
    "JRCAgent1 detected an exception: Error finding JNDI name (sql server)"
    I am using jdk 6, sql server 2005, jboss 5, and crystal reports x1.
    what could be the wrong in my code please tell me the reason and solution  for this .
    thanks ,
    mallikarjun
    Edited by: mallikarjuna.ch on May 15, 2009 3:14 PM
    Edited by: mallikarjuna.ch on May 15, 2009 3:15 PM
    Edited by: mallikarjuna.ch on May 15, 2009 3:15 PM

    thanks a lot neeraj for your response.I got resolved the database connection problem through programetically as shown bellow.
    ITable table =  databaseController.getDatabase().getTables().getTable(0);
    ITable oldtable = table;                     
    table.setQualifiedName("sp2m.dbo." + table.getName());
    IConnectionInfo connectionInfo = table.getConnectionInfo();
    PropertyBag propertyBag = new PropertyBag();
    propertyBag.put("Trusted_Connection", "false");
    propertyBag.put("Server Name", "testsvr2"); //Optional property.
    String CONNECTION_STRING="Use JDBC=b(true);Connection URL=s(jdbc:microsoft:sqlserver://testsvr2:1433); /Database Class Name=s(com.microsoft.jdbc.sqlserver.SQLServerDriver);Server=s(testsvr2); /User ID=s(sa);Password=cispl;Database=s(sp2m);Trusted_Connection=b(false); /JDBC Connection String=s(!com.microsoft.jdbc.sqlserver.SQLServerDriver!jdbc:microsoft:sqlserver://testsvr2:1433; /     DatabaseName=;user=;password=!)";
                        propertyBag.put("Connection String", CONNECTION_STRING);
                        propertyBag.put("Database Name", "sp2m");
                        propertyBag.put("Server Type", "JDBC (JNDI)");
                        String URI="!com.microsoft.jdbc.sqlserver.SQLServerDriver!jdbc:microsoft:sqlserver://testsvr2:1433;DatabaseName=;user=;password=!";
                        propertyBag.put("URI", URI);
                        propertyBag.put("Use JDBC", "true");
                        propertyBag.put("Database DLL", "crdb_jdbc.dll");
                        System.out.println("is this setlocation");            
                        connectionInfo.setAttributes(propertyBag);
                        connectionInfo.setUserName("sa");
                        connectionInfo.setPassword("cispl");
                        connectionInfo.setKind(ConnectionInfoKind.SQL);
                        table.setConnectionInfo(connectionInfo);
                        try {
                             databaseController.setTableLocationEx(oldtable,table);
                        } catch (ReportSDKException e) {
                             e.printStackTrace();
    i am connecting mydatabase like above through programetically. it is coming fine , also it was working fine with crystal report tool, now I am getting new problem i.e crystal report engine not accepting parameter values set by me through program and asking to enter the parameters by generating one jsp page like as an interface in crystal report tool. Onece I submit that values it is generating the output properly .I have to avoid this unwanted page and I have to pass my parameter values from my jsp.
    please help me in this,
    thank u.
    Edited by: mallikarjuna.ch1 on May 17, 2009 8:14 AM
    Edited by: mallikarjuna.ch1 on May 17, 2009 8:27 AM
    Edited by: mallikarjuna.ch1 on May 17, 2009 8:43 AM

  • Multiple selection of parameter values (BIP 10.1.3.2)

    Hi there,
    I'm working with BI Publisher 10.1.3.2 and I'd like to use parameters allowing multiple selection. I've tried it with both data templates and SQL queries ... but I'm not getting it work ...
    I've established a simple "Show me department name and id"-example according to my parameter selection (you can select multiple values e.g. Administration, Marketing, Sales ... and the "All"-option is activated as well), based on the HR/OE schema.
    Here's just a quick note, where I tested the way the Publisher Engine copes with parameter selection in general
    5.6.2
    single selection => e.g. Administration
    multiple selection => e.g. Administration,Marketing
    All => *
    10.1.3.2
    single selection => e.g. Administration
    multiple selection => e.g. 'Administration','Marketing'
    All => null
    So, in 10.1.3.2 there's been an improvement concerning single quotes - in the case of multiple selection only. I do not know why there are no single quotes for a single selection, but it seems like that's the way it is ...
    Well, I've created a simple SQL query as follows:
    CASE 1 *
    select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME
    from DEPARTMENTS
    where DEPARTMENT_NAME IN (:myParameter)
    => All does not work
    => Single Selection is working
    => Multiple Selection is working
    sample output in the case of selecting "Marketing" (single selection):
    <TESTINGIN>
    <myParameter>Marketing</myParameter>
    <LIST_DEPTS>
    <DEPTS>
    <_MYPARAMETER>Marketing</_MYPARAMETER>
    <ID>20</ID>
    <NAME>Marketing</NAME>
    </DEPTS>
    </LIST_DEPTS>
    </TESTINGIN>
    ... and I've tried the same select statement using a data template instead, and then I got another result: both, All and Multiple Selection, do not work (I'm getting back an empty element)
    sample (error) output in the case of selecting both "Marketing" and "Administration" (multiple selection):
    <TESTINGIN>
    <myParameter>'Administration','Marketing'</myParameter>
    <LIST_DEPTS></LIST_DEPTS>
    </TESTINGIN>
    In order to cover the "All"-case ... I manipulated my select statement as follows and used it as SQL query:
    CASE 2 *
    select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME
    from DEPARTMENTS
    where DEPARTMENT_NAME IN (nvl(:myParameter, DEPARTMENT_NAME))
    => All is working now
    => Singe selection is working
    => Multiple selection is not working any more (ORA-00909: Ungültige Anzahl von Argumenten / illegal amount of arguments)
    ... using the same select statement within a data template, Multiple Selection is still not working (empty element)
    Last, I've tried another select statement, based on an entry of the xml publisher forum:
    CASE 3 *
    select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME
    from DEPARTMENTS
    where DEPARTMENT_NAME IN (:myParameter) or :myParameter IS NULL
    => All is working
    => Singe selection is working
    => Multiple selection is not working (ORA-00920: Ungültiger relationaler Operator / illegal relational operator)
    So, I couldn't find a way that all three possibilities are working ... and using data templates, multiple selection never worked. If I hardcoded the where clause in the data template,
    e.g. where DEPARTMENT_NAME IN ('Administration','Marketing'), it worked fine (no matter, whether I place the sql statement within an CDATA section, or not).
    Can anyone tell me, what I'm doing wrong here?
    While testing my problem, I figured out that there's a difference of generated parameter output ... I just put the parameter in the select list, and depending on whether you use SQL query or data template, you'll get different results:
    SQL statement
    => for each parameter value an own parameter
    <_MYPARAMETER>Administration</_MYPARAMETER> in the case of single selection
    <_MYPARAMETER8093>Administration</_MYPARAMETER8093>
    <_MYPARAMETER8094>Marketing</_MYPARAMETER8094> in the case of multiple selection
    data Template
    => list of parameter values
    <_MYPARAMETER>Administration</_MYPARAMETER> in the case of single selection
    <_MYPARAMETER>'Administration','Marketing'</_MYPARAMETER> in the case of multiple selection
    Maybe that's the problem? I don't know, this difference how the Publisher Engine copes with parameters just attracted attention to me ...
    Alright, I hope it was not too confusing. I would appreciate any help, since here @ the customer's site we need to use data templates inclduing multiple selection in order to establish a context for VPD.
    The problems in summary:
    - how to write a select statement to include all three possibilites of parameter selection (single selection, multiple selection, All option)
    - multiple selection never worked using data templates
    Can someone help me here?

    hi,
    i think you have to use lexical parameters and a package, like this:
    <dataTemplate name="departments" dataSourceRef="hr@demo" defaultPackage="bip_departments">
    <parameters>
    <parameter name="p_location_id" include_in_output="false" datatype="float"/>
    </parameters>
    <dataTrigger name="beforeReport" source="bip_departments.beforeReportTrigger"/>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[ select d.department_id, d.department_name, d.location_id
                      from departments d
                     &p_where_clause
                order by location_id, department_id]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="LOC" source="Q1">
    <element name="location_id" value="location_id"/>
    <group name="DEPT" source="Q1">
    <element name="department_id" value="department_id"/>
    <element name="department_name" value="department_name"/>
    </group>
    </group>
    </dataStructure>
    </dataTemplate>
    with package:
    create or replace package bip_departments
    as
    p_location_id long;
    p_where_clause long;
    function beforereporttrigger
    return boolean;
    end bip_departments;
    create or replace package body bip_departments
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    if (p_location_id is not null)
    then
    p_where_clause := 'where (d.location_id in (' || replace (p_location_id, '''') || '))';
    else
    p_where_clause := 'where 1=1';
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments;

  • Configuration of Integration Engine Trace and Logging

    Hi,
    on XI we can configure tracing and logging of messages via SXMB_ADM / Conf Integr Engine / category RUNTIME parameter LOGGING or TRACE_LEVEL. I connected an application system (WAS 6.20) and cant find this parameters. They r not chooseable. Does anybody know why? Is there another functionality to customize the trace?
    Regards,
    Udo

    Hi Udo -
    Did you apply the APPINT component?   More info in Note 439915.
    Regards,
    Jin

  • How to turn OFF Reports Background Engine?

    I know how to programatically invoke the RBE [win_api_shell.winexec('c:\orant6.0\bin\rwrbe60',WIN_API.SW_SHOWMINIMIZED);]
    But the RBE stays out there after the report runs. Does anyone know a way to TERMINATE it programmatically?
    Same question for the Oracle Graphics Background Engine.

    Add this parameter:
    ADD_PARAMETER ( pl_id, 'ORACLE_SHUTDOWN',
    TEXT_PARAMETER, 'YES' );
    null

  • Crvs2010 beta - parameter panel - new feature

    Hello,
    I read the list of  new features for crvs2010. One of the new features listed in the message is the Parameter Panel. The runtime engine supports a parameter panel on the left-hand side. You can optionally place parameters on the panel.
    I did not see the feature in the beta that I have installed. Is it in the beta yet, or is there really something wrong with my installation?
    I would greatly appreciate it if someone would let me know if they have this feature?
    Thank you
    Tracy

    No problem David.
    I know that you have a lot on your plate and I have been known to be a handful, as they say.
    I can understand not updating the vs viewer, when there are other, more up to date options available. For the most post Visual Studio and Crystal are for what us old timers would have called "hard core" programmers, not end users. Today, though, that is changing, more end-users are sometimes very involved in creating what they need.
    When I can catch my breath, I am going to search for a beginners tutorial that covers setting up the .net winform viewer.
    As usual, thank you for all of your help. I really appreciate it.

  • LabView Runtime Engine 7.0 trys to install at start up

    This just started happening, every thing was fine a few days ago. Now when I click on the LabVIEW desktop ICON it says it wants to install the 7.0 Runtime Engine. And asks for disk#3  Do I need this?  Eventually after canceling prompts for a few minutes it loads my lab view and my VIs seem to work fine.
    I,m using the 8.6 student edition,
    Any Ideas?
    Thanks
    Alan Martin
    Solved!
    Go to Solution.

    Alan,
    The lvruntimeeng.msi that you said your program is looking usually resides in your drivers installer folder with a path like this:
    C:\National Instruments Downloads\NI-DAQmx\<Your Version>\NIDAQ<Version>-1\Products\LabVIEW_Runtime_Engine_71\LV711RTE
    Mine is exactly this path:
    C:\National Instruments Downloads\NI-DAQmx\9.0.2\NIDAQ902-1\Products\LabVIEW_Runtime_Engine_71\LV711RTE
    The 7.1 Runtime Engine is uniquely named "lvruntimeeng.msi". The 8.0 is named "lv80runtime.msi" and 8.2 is "lv82runtime.msi" and so on. Since we cannot install this 7.1 RTE because you have a more recent version installed, please check the path name described above to see if  your 7.1 Run-time Engine MSI is in there. Maybe even run a search to see if it is present anywhere on the system.
    If not, we can uninstall and reinstall your DAQmx drivers and reinstall them since they will have each Run-time Engine MSI.
    Clearly there has been a file structure mishap and these can typically only be remedied by completely reinstalling the program(s) that initially installed the file(s).
    Logan H
    National Instruments
    Applications Engineer

  • Variable {column} in unique key template

    In unique constraint, the variable column not works when i do engineering to physical model.
    For example, my template is {table}_{column}_UK, after engineering my unique key stay table__uk, when I expect table_column_uk
    Version 4.0.3.853

    Hi,
    thanks for reporting the problem, I logged a bug.
    It appears columns are not taken into account for UK name during engineering. You always can apply templates on the whole relational model using "Apply naming standards to Keys and Constraints" in context menu for relational model in the browser.
    Philip

  • IDS signature tuning... interval questions.

    Just starting out trying to tune some signatures to fit our environment, and looking for clarification on some parameters of IDS signatures.
    For example: 2152 - ICMP flood
    It uses the "Flood Host" engine with the action parameters:
    Limit type: percentage (100)
    Rate: 25
    Event count: 1
    Event count key: victim address
    Specify interval: No
    Summary mode: Fire all
    Threshold: 10000
    Interval: 30
    Global threshold: 20000
    Summary key: victim address
    Can someone translate into english?
    I'm guessing 25 packets/sec of ICMP traffic to the same destination would trigger the "event". And the 100% limit means...? 25 in a row?
    And the summaries?
    At least the "flood host" has a clear interval, but many of the scans do not. For example, 3002 or 3030 - TCP SYN port sweep. This specifies a number of "unique" packets with the same key (attacker address, or attacker and victim, or other combination) but does not specify the interval. Is this also per-second? The documentation simply says "The unique parameter triggers the alert when more than the unique number of ports or hosts is seen on the address set within the time period."
    What is the "time period" and where is it set? For these alerts (as well as the previous) the "Specify Alert Interval" is set to "No".

    I can't claim to understand some of the "scan" signatures either...most of ours are disabled.
    The limit type and percentage would only seem applicable if you're using the "request rate limit" action in inline mode. I don't think they have anything to do with alarming.
    For this particular signature I believe the most relevant variable is rate, which you already seem to understand.
    The alert frequency settings allow you change the summary mode from "fire all" to "summarize" or "global summarize" based on the number of alerts being generated. This probably has other uses, but the one that immediately comes to mind is to prevent the monitoring system from being overloaded with spurious alarms.
    As far as 3030 - TCP SYN port sweep...I don't understand it either. Do a search for it on the forums, there have been other questions.

  • Report exported in Crystal Reports 9 won't work in Crystal Reports XI R2

    Hello,
    I have a .NET client that has been using Crystal Reports 9 for some time to generate reports and then exporting them to Crystal Reports format (.rpt), and saving the report including the data so that the user can open it at a later time and preview/print. This has been working fine so far.
    Now we're in the process of updating our system to Crystal Reports XI R2. When a user selects an old report (that was originally created in CR9) to preview, CR XI prompts the user to submit a value for a string parameter that was originally submitted to the report when it was generated in CR9 but the value was set as either Nothing or the empty string. If we try to print the report then CR XI throws this error (probably because of the same parameter):
    CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException: Missing parameter values. ---> System.Runtime.InteropServices.COMException (0x8004100E): Missing parameter values.
    at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
    at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
    --- End of inner exception stack trace ---
    at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
    at CrystalDecisions.ReportSource.EromReportSourceBase.HandleException(Exception exception)
    at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
    at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
    Is there a solution to this? I've tried to submit a value to the parameter in code and then exporting the report again but that doesn't work. Any help appreciated.

    Hello,
    Currently the FP is not available from our public site, it should be soon though.
    Here's a link to get to our download page. If it asks please agree to download the authentication certificate.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
    Thank you and sorry for the delay.

  • How do I change report DSN at runtime?

    Hello,
    I have some reports (some 2011 but most 9) that were created with a DSN named Dev for example.  When the reports are deployed to production, they are viewed via an ASP.NET application written in VB.NET (VS2012).  The production server has a DSN named Prod for example. The code I'm using to change the connection information "seems" to be working because if I write out the connection info before the code, it shows the Dev DSN connection information and if I write out the connection inf after the code, it shows the Prod DSN connection information.
    The problem is that even though the connection information appears to be changing at runtime, when the report renders it shows data from the Dev database instead of production.
    Here is the code I'm using to change the main report connection and the subreports, which seems to be working:
            Dim strPassword As String = System.Configuration.ConfigurationManager.AppSettings("ReportPassword")
            Dim strUserID As String = System.Configuration.ConfigurationManager.AppSettings("ReportUser")
            Dim strServer As String = System.Configuration.ConfigurationManager.AppSettings("ReportServer")
            Dim strDBName As String = System.Configuration.ConfigurationManager.AppSettings("ReportDatabase")
            Dim strDSName As String = System.Configuration.ConfigurationManager.AppSettings("ReportDSN")
            Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
            Dim myLogin As CrystalDecisions.Shared.TableLogOnInfo
            Dim blDebugFlag As Boolean = False
            'This test is needed because the flag may/should not exist in the production web.config
            If Not System.Configuration.ConfigurationManager.AppSettings("debugFlag") Is Nothing Then
                blDebugFlag = System.Configuration.ConfigurationManager.AppSettings("debugFlag")
            End If
            'Modify the data source location for each table in the report (does not include subreports)
            strReturnData += Now.ToLongTimeString & "<br>"
            For Each myTable In Session("crpt").Database.Tables
                myLogin = myTable.LogOnInfo
                strReturnData += "<br><br>Table = [<b>" & myTable.Name.ToString & "</b>] - (Main report)" & _
                  "<blockquote>" & _
                  "<br>Original ServerName = [" & myLogin.ConnectionInfo.ServerName.ToString & "]" & _
                  "<br>Original DatabaseName = [" & myLogin.ConnectionInfo.DatabaseName.ToString & "]" & _
                  "<br>Original UserId = [" & myLogin.ConnectionInfo.UserID.ToString & "]"
                'check if a DSN or non-DSN connection
                If myTable.LogOnInfo.ConnectionInfo.DatabaseName = "" Or myTable.LogOnInfo.ConnectionInfo.ServerName = "Dev" Then
                    myLogin.ConnectionInfo.ServerName = strDSName
                    myLogin.ConnectionInfo.DatabaseName = ""
                    strReturnData += "<br><br> ### DSN Connection ###"
                Else
                    myLogin.ConnectionInfo.ServerName = strServer
                    myLogin.ConnectionInfo.DatabaseName = strDBName
                    strReturnData += "<br><br> *** Non-DSN Connection ***"
                End If
                myLogin.ConnectionInfo.Password = strPassword
                myLogin.ConnectionInfo.UserID = strUserID
                myTable.ApplyLogOnInfo(myLogin)
                ' Collect the login information after-the-fact
                strReturnData += "<br><br>Final ServerName = [" & myLogin.ConnectionInfo.ServerName.ToString & "]" & _
                "<br>Final DatabaseName = [" & myLogin.ConnectionInfo.DatabaseName.ToString & "]" & _
                "<br>Final UserId = [" & myLogin.ConnectionInfo.UserID.ToString & "]" & _
                "</blockquote>"
            Next
            'Iterate through subreports and make sure ConnectionInfo matches the main report
            'set the crSections object to the current report's sections
            Dim crSections As CrystalDecisions.CrystalReports.Engine.Sections = Session("crpt").ReportDefinition.Sections 'rpt.ReportDefinition.Sections
            Dim crReportobjects As ReportObjects, crSubReportobject As SubreportObject, crSubReportDocument As ReportDocument
            Dim crDatabase As Database, crTables As Tables
            Dim crtableLogoninfo As New TableLogOnInfo
            Dim crConnectioninfo As New ConnectionInfo
            'loop through all the sections to find all the report objects
            For Each crSection As CrystalDecisions.CrystalReports.Engine.Section In crSections
                crReportObjects = crSection.ReportObjects
                'loop through all the report objects to find all the subreports
                For Each crReportObject As CrystalDecisions.CrystalReports.Engine.ReportObject In crReportObjects
                    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
                        'you will need to typecast the reportobject to a subreport object once you find it
                        crSubreportObject = DirectCast(crReportObject, CrystalDecisions.CrystalReports.Engine.SubreportObject)
                        Dim mysubname As String = crSubreportObject.SubreportName.ToString()
                        'open the subreport object
                        crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
                        'set the database and tables objects to work with the subreport
                        crDatabase = crSubreportDocument.Database
                        crTables = crDatabase.Tables
                        'loop through all the tables in the subreport and set up the connection info and apply it to the tables
                        For Each crTable As CrystalDecisions.CrystalReports.Engine.Table In crTables
                            'With crConnectioninfo
                            '    .ServerName = strDSName
                            '    .DatabaseName = ""
                            '    .UserID = strUserID
                            '    .Password = strPassword
                            'End With
                            'crtableLogoninfo = crTable.LogOnInfo
                            'crtableLogoninfo.ConnectionInfo = crConnectioninfo
                            'crTable.ApplyLogOnInfo(crtableLogoninfo)
                            myLogin = crTable.LogOnInfo
                            strReturnData += "<br><br>Table = [<b>" & crTable.Name.ToString & "</b>] - (Subreport - [" & mysubname & "])" & _
                              "<blockquote>" & _
                              "<br>Original ServerName = [" & myLogin.ConnectionInfo.ServerName.ToString & "]" & _
                              "<br>Original DatabaseName = [" & myLogin.ConnectionInfo.DatabaseName.ToString & "]" & _
                              "<br>Original UserId = [" & myLogin.ConnectionInfo.UserID.ToString & "]"
                            'check if a DSN or non-DSN connection
                            If crTable.LogOnInfo.ConnectionInfo.DatabaseName = "" Or crTable.LogOnInfo.ConnectionInfo.ServerName = "Dev" Then
                                myLogin.ConnectionInfo.ServerName = strDSName
                                myLogin.ConnectionInfo.DatabaseName = ""
                                strReturnData += "<br><br> ### DSN Connection ###"
                            Else
                                myLogin.ConnectionInfo.ServerName = strServer
                                myLogin.ConnectionInfo.DatabaseName = strDBName
                                strReturnData += "<br><br> *** Non-DSN Connection ***"
                            End If
                            myLogin.ConnectionInfo.Password = strPassword
                            myLogin.ConnectionInfo.UserID = strUserID
                            crtableLogoninfo = crTable.LogOnInfo
                            crtableLogoninfo.ConnectionInfo = myLogin.ConnectionInfo
                            crTable.ApplyLogOnInfo(crtableLogoninfo)
                            ' Collect the login information after-the-fact
                            strReturnData += "<br><br>Final ServerName = [" & myLogin.ConnectionInfo.ServerName.ToString & "]" & _
                            "<br>Final DatabaseName = [" & myLogin.ConnectionInfo.DatabaseName.ToString & "]" & _
                            "<br>Final UserId = [" & myLogin.ConnectionInfo.UserID.ToString & "]" & _
                            "</blockquote>"
                        Next 'crTable
                    End If
                Next 'crReportObject
            Next 'crSection
    Here is what gets printed after this code when the debug flag is True:
       Table = [usp_MainReportProcedureName] - (Main report)
          Original ServerName = [Dev]
          Original DatabaseName = [Dev]
          Original UserId = [UserName]
          ### DSN Connection ###
          Final ServerName = [Prod]
          Final DatabaseName = []
          Final UserId = [UserName]
       Table = [usp_SubreportProcedureName] - (Subreport - [subrptName.rpt])
          Original ServerName = [Dev]
          Original DatabaseName = [Dev]
          Original UserId = [UserName]
          ### DSN Connection ###
          Final ServerName = [Prod]
          Final DatabaseName = []
          Final UserId = [UserName]
    Here is the export code that renders the report:
            'Export to new format
            Dim crExportOptions As New ExportOptions
            Dim crDiskFileDestinationOptios As New DiskFileDestinationOptions
            Dim fname As String = ""
            Dim gFileId As New Guid
            Try
                'Filename for temporary report
                fname = System.Configuration.ConfigurationManager.AppSettings("DocumentsLocation") + gFileId.ToString + ".pdf"
                crDiskFileDestinationOptios.DiskFileName = fname
                crExportOptions = Session("crpt").ExportOptions
                Session("crpt").ExportOptions.DestinationOptions = crDiskFileDestinationOptios
                Session("crpt").ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
                Session("crpt").ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
                Session("crpt").Export()
                'Display and Cleanup
                Response.ClearContent()
                Response.ClearHeaders()
                If blDebugFlag = False Then
                    'Display the report
                    Response.ContentType = "application/pdf"
                    Response.WriteFile(fname)    'writes out PDF if created
                Else
                    'Display connection information for debugging
                    '*** DEBUG CODE *** for use in TEST ENVIRONMENTS ONLY
                    Response.Write(strReturnData)
                End If
            Catch ex As Exception
                Session("error") = ex.ToString
                'Add the location of the error
                Session("error") = "[Address: " & Request.Url.ToString & "] " & Session("error")
                Response.Redirect("ErrorEvents.aspx")
            Finally
                Response.Flush()
                'Response.Close()  'Prevents pdf's from rendering in Chrome
                System.IO.File.Delete(fname)
                GC.Collect()
            End Try
    I'm wondering if there is some additional code needed after .ApplyLogOnInfo or if there are some other parameters needed when exporting after the connection info has been changed or if there is something else I'm missing.
    Thanks for your help.

    Thank you for the troubleshooting ideas.
    The version of the Crystal Runtime on the web server is:  CRRuntime_32bit_13_0_6.msi
    The database is on an SQL Server 2008 separate server
    I started with adding this code just before the export code right after all the looping to change the connection info:
       Session("crpt").Refresh()
       Session("crpt").VerifyDatabase()
    I tried running a report and an error was raised a few lines later at:
       Session("crpt").Export()
    Here is the error message:
    CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException: Missing parameter values. ---> System.Runtime.InteropServices.COMException: Missing parameter values.
      at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
      at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) --- End of inner exception stack trace ---
      at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
      at Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure)
      at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
      at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
    Next, I commented out those added lines (refresh and verify) and tried renaming the Dev DSN to Devxxx on the web application server.
    I'm at a loss but somehow the report rendered still showing data from the Dev database. I checked the Prod DSN just to be sure it was pointed at the Prod database and it is. I rebooted the server and still got the same results.  I opened the report directly in CR 2011 on the web server and tried to preview it. The ODBC dialog came up and the Devxxx DSN was there.
    I changed some data in Dev ran the report through the web application in Prod and the data on the report showed the changed data in Dev.
    The web application says the report connection info is for Dev and then it is changed for Prod and then even though the Dev DSN no longer exits the report still renders from Dev data???
    I'm totally confused as to how this can be but maybe if we can solve the refresh and verify error the DSN mystery will become mute.

  • Problems deploying a simple EJB

    I am trying to deploy a simple EJB on the 8.1.5. The bean only owns a single method that needs a unique parameter.
    No problems with compilation of source bean, home and remote interfaces, whatever the type of this parameter is.
    But when I try to deploy the jar on the server, I only succeed if the parameter of my method is a simple type (int, String ...).
    If I try the same passing a complex type (here a oracle.xml.parser.v2.XMLDocument type), I encounter this message from the deployejb tool :
    Generating EJBHome and EJBObject on the server...
    Compilation errors in oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:ORA-29535: source requires recompilationjava/lang/Object: Authorization error for referenced class Oracle/xml/parser/v2/XMLDocument.java/lang/Object: Authorization error for referenced class oracle/xml/parser/v2/XMLDocument.oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:50: Class oracle.xml.parser.v2.XMLDocument not found in type declaration.
    public java.lang.String insereFlux (oracle.xml.parser.v2.XMLDocument arg0)
    ^ Info: 3 errors
    And if I use an int instead of the XMLDocument parameter, everithing's right.
    Can anybody submit a no-paranormal solution ?
    Thanks.
    GH

    Parameter passing in EJB must implement Serializable. One way to solve this is:
    1. Define a new class which implements
    Serializable.
    2. Place whatever you want to pass inside
    this class.
    3. Now use the new class as your parameter.
    eg.
    public class Params implements java.io.Serializable {
    String p1;
    XmlDocmuent xdoc;,
    etc, etc
    Your program now have to use the class Params for parameter passing.
    Hope this helps.
    Tam
    null

Maybe you are looking for

  • AS2  as transport protocol and AS2xml as message protocol

    Dear All AS2 adapter has been installed in our landscape ,when I am trying to select the transport protocol and message protocol  ,I can only see AS2 as transport protocol and AS2xml as the message protocol instead of the normal HTTP/ HTTPs for the T

  • CS2 crash making web pages

    Whenever I launch the automated aspect for making web pages of photographs CS2 crashes. I have used this before using Tiger but with Leopard now it is a non performer. Any ideas

  • Recordset feature stopped working

    Really frustrated. I have DW8.02 on an AMD 1500 1 gig ram big harddrive.... with MX Kollection 2.7 from interakt. My server configuration is LAMP . I am having problems using Built-in DW functions with a php page I created under DWMX2004. Normally, i

  • Prbolem in executing jar file

    Hi I have written a java program that just prints "HAI" I made that as a executable jar file But when i am running that jar from DOS, the output is not printing Please solve my problem Thanks

  • Transfered option at Datasouce level at sap BI system

    Hi Experts,      I have enhanced datasource at R/3,i have removed hide option for those enhanced, source code is also working fine but  Datasouce already replicated by some one in sap bi system ,so 3.x  datasource is available in sap bi system. I hav