The maximum size of an SQL statement has been exceeded.

In ST22, abap dump shows that one of the possible reason was "The maximum size of an SQL statement has been exceeded."
How can I know what's the maximum size and how to compute that size had been reached?
Is this shown anywhere in the log?

1. decalre temp_key as a table.
2. use this package size option ....this gets the data in bite-sized chunks
SELECT MATKL MATNR MEINS
INTO corresponding fields of table TEMP_KEY package size 1000
FROM MARA
WHERE MATNR IN SO_MATNR.
loop at temp_key.
MOVE-CORRESPONDING TEMP_KEY TO ITAB_KEY1.
IF WS_PCHR SPACE.
CLEAR ITAB_CHAR.
CLEAR ITAB_KEY1-CHARACTER. REFRESH ITAB_KEY1-CHARACTER.
PERFORM GET_CHAR TABLES ITAB_CHAR ITAB_KEY1-CHARACTER
USING ITAB_KEY1-MATNR.
ENDIF.
APPEND ITAB_KEY1. CLEAR ITAB_KEY1.
endloop.
ENDSELECT.

Similar Messages

  • DBIF_RSQL_INVALID_RSQL The maximum size of an SQL statement was exceeded

    Dear,
    I would appreciate a helping hand
    I have a problem with a dump I could not find any note that I can help solve the problem.
    A dump is appearing at various consultants which indicates the following.
    >>> SELECT * FROM KNA1                     "client specified
    559                  APPENDING TABLE IKNA1
    560                  UP TO RSEUMOD-TBMAXSEL ROWS BYPASSING BUFFER
    ST22
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "/1BCDWB/DBKNA1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
         and
        therefore caused a runtime error.
        The reason for the exception is:
        The SQL statement generated from the SAP Open SQL statement violates a
        restriction imposed by the underlying database system of the ABAP
        system.
        Possible error causes:
         o The maximum size of an SQL statement was exceeded.
         o The statement contains too many input variables.
         o The input data requires more space than is available.
         o ...
        You can generally find details in the system log (SM21) and in the
        developer trace of the relevant work process (ST11).
        In the case of an error, current restrictions are frequently displayed
        in the developer trace.
    SQL sentence
    550     if not %_l_lines is initial.
    551       %_TAB2[] = %_tab2_field[].
    552     endif.
    553   endif.
    554 ENDIF.
    555 CASE ACTION.
    556   WHEN 'ANZE'.
    557 try.
    >>> SELECT * FROM KNA1                     "client specified
    559                  APPENDING TABLE IKNA1
    560                  UP TO RSEUMOD-TBMAXSEL ROWS BYPASSING BUFFER
    561    WHERE KUNNR IN I1
    562    AND   NAME1 IN I2
    563    AND   ANRED IN I3
    564    AND   ERDAT IN I4
    565    AND   ERNAM IN I5
    566    AND   KTOKD IN I6
    567    AND   STCD1 IN I7
    568    AND   VBUND IN I8
    569    AND   J_3GETYP IN I9
    570    AND   J_3GAGDUMI IN I10
    571    AND   KOKRS IN I11.
    572
    573   CATCH CX_SY_DYNAMIC_OSQL_SEMANTICS INTO xref.
    574     IF xref->kernel_errid = 'SAPSQL_ESCAPE_WITH_POOLTABLE'.
    575       message i412(mo).
    576       exit.
    577     ELSE.
    wp trace:
    D  *** ERROR => dySaveDataBindingValue: Abap-Field= >TEXT-SYS< not found [dypbdatab.c  510]
    D  *** ERROR => dySaveDataBindingEntry: dySaveDataBindingValue() Rc=-1 Reference= >TEXT-SYS< [dypbdatab.c  430]
    D  *** ERROR => dySaveDataBinding: dySaveDataBindingEntry() Rc= -1 Reference=>TEXT-SYS< [dypbdatab.c  137]
    Y  *** ERROR => dyPbSaveDataBindingForField: dySaveDataBinding() Rc= 1 [dypropbag.c  641]
    Y  *** ERROR => ... Dynpro-Field= >DISPLAY_SY_SUBRC_TEXT< [dypropbag.c  642]
    Y  *** ERROR => ... Dynpro= >SAPLSTPDA_CARRIER< >0700< [dypropbag.c  643]
    D  *** ERROR => dySaveDataBindingValue: Abap-Field= >TEXT-SYS< not found [dypbdatab.c  510]
    D  *** ERROR => dySaveDataBindingEntry: dySaveDataBindingValue() Rc=-1 Reference= >TEXT-SYS< [dypbdatab.c  430]
    D  *** ERROR => dySaveDataBinding: dySaveDataBindingEntry() Rc= -1 Reference=>TEXT-SYS< [dypbdatab.c  137]
    Y  *** ERROR => dyPbSaveDataBindingForField: dySaveDataBinding() Rc= 1 [dypropbag.c  641]
    Y  *** ERROR => ... Dynpro-Field= >DISPLAY_FREE_VAR_TEXT< [dypropbag.c  642]
    Y  *** ERROR => ... Dynpro= >SAPLSTPDA_CARRIER< >0700< [dypropbag.c  643]
    I thank you in advance
    If you require other information please request

    Hi,
    Under certain conditions, an Open SQL statement with range tables can be reformulated into a FOR ALL ENTRIES statement:
        DESCRIBE TABLE range_tab LINES lines.
        IF lines EQ 0.
          [SELECT for blank range_tab]
        ELSE.
          SELECT .. FOR ALL ENTRIES IN range_tab ..
          WHERE .. f EQ range_tab-LOW ...
          ENDSELECT.
        ENDF.
    Since FOR ALL ENTRIES statements are automatically converted in accordance with the database restrictions, this solution is always met by means of a choice if the following requirements are fulfilled:
    1. The statement operates on transparent tables, on database views or on a projection view on a transparent table.
    2. The requirement on the range table is not negated. Moreover, the range table only contains entries with range_tab-SIGN = 'I'
    and only one value ever occurs in the field range_tab OPTION.
    This value is then used as an operator with operand range_tab-LOW or range_tab-HIGH.In the above example, case 'EQ range_tab-LOW' was the typical case.
    3. Duplicates are removed from the result by FOR ALL ENTRIES.This must not falsify the desired result, that is, the previous Open SQL statement can be written as SELECT DISTINCT.
    For the reformulation, if the range table is empty it must be handled in a different way:with FOR ALL ENTRIES, all the records would be selected here while this applies for the original query only if the WHERE clause consisted of the 'f IN range_tab' condition.
    FOR ALL ENTRIES should also be used if the Open SQL statement contains several range tables.Then (probably) the most extensive of the range tables which fill the second condition is chosen as a FOR ALL ENTRIES table.
    OR
    What you could do in your code is,
    prior to querying;
    since your select options parameter is ultimately an internal range table,
    1. split the select-option values into a group of say 3000 based on your limit,
    2. run your query against each chunck of 3000 parameters,
    3. then put together the results of each chunk.
    For further reading, you might want to have a look at the Note# 13607 as the first suggestion is what I read from the note.

  • Maximum size of an SQL statement

    Hello,
    we get a short dump with runtime error DBIF_RSQL_SQL_ERROR and exception CX_SY_OPEN_SQL_DB.
    The dump occurs at the following select statement:
            select * from /rtc/tm_inuse
              appending table gt_zrtc4inuse
              where obj_name in lv_sel_copy
                and trkorr ne p_trkorr.
    We think the problem is the number of entries in the range table lv_sel_copy so that the maximum size of the SQL statement is reached.
    But how likely is the maximum size ?
    Depends the size on the data base ? We are using MaxDB 7.6, MaxDB 7.7.
    How can we determine the maximum size so that we can calculate the nubmer of entries in the range tabel.
    Any other idea or solution ?
    Thanks
    Arnfried

    Hi,
    You are getting this dump because maybe your entries are huge and it might have exceeded the buffer space of the table. You have to ask your basis team to increase the size of the buffer space.
    or,
    You can segregate the range values into smaller ranges and fetch from the database accordingly..
    You can see the size of the table space in DB02.
    or please refer this thread:
    Need help regarding short dumps in BW
    Edited by: sneha singhania on Jun 12, 2009 4:01 PM

  • The maximum report processing jobs limit configured has been reached -Error

    I have Created a common page that has a CrystalReportViewerControl (name of this page is ShowReport.aspx). The report name and database name that required for the report is being passed in a querystring. The database connection info is being pulled from the web.config file. All of the reports that I am dealing with have dynamic parameters and the Crystal Prompt page is automatically being created by the crystal viewer for these. Everything in my application is working fine except that when I try to access any report for the 76th. time I get the following error "The maximum report processing jobs limit configured by your system administrator has been reached."
    I have already researched this error and am aware that the PrintJobLimit can be modifed to increase this limit or can be set to -1 if we need to allow unlimited connections. However doing this is not an option due to the degradation of server performance.
    The other option that I have tried is to make sure I close and dispose of the report document object on the Page_unload or the page_SavedStateComplete() however on doing so even the session variable that I am using to store the originally created reportdocument is loosing all of the values it requires to display the report. The session variable is still available i.e. it is still of type report document but it has no values for any of the properties like FileName, database etc , basically for all of those properties it show an error "Invalid File Path" when viewed in debug mode.
    I have already tried several approaches but with no luck. Every single time I close the originally created ReportDocument object I loose all the required values in the Session
    I am using Crystal Report XI R2 , .Net 2.0 and ASP.net
    Following is the code: (Any help will be highly appreciated) Thanks:
    Option Strict On
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports System.Data.SqlClient
    Imports System.IO
    Partial Class _ShowReport
    Inherits System.Web.UI.Page
    Private FechReport As ReportDocument
    Dim strSelectedDatabase As String
    Dim strReportsFolderPath As String =
    System.Configuration.ConfigurationManager.AppSettings("ReportsFolderPath").ToString()
    Dim strReportFileName As String
    Dim strReportFullPath As String
    Dim iInsertedLogId As Integer 'This variable is used to store the inserted log id for the executed report.
    Dim strConnString As String = System.Configuration.ConfigurationManager.AppSettings("ConnString").ToString()
    Dim strServerName As String = System.Configuration.ConfigurationManager.AppSettings("CR_ServerName").ToString()
    Dim strUserName As String = System.Configuration.ConfigurationManager.AppSettings("CR_UserName").ToString()
    Dim strPassword As String = System.Configuration.ConfigurationManager.AppSettings("CR_Password").ToString()
    Protected Sub Page_OnSaveStateComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SaveStateComplete
    If IsPostBack Then
    If iInsertedLogId > 0 Then
    UpdateReportLog_ReportServedTime(iInsertedLogId)
    If Not FechReport Is Nothing Then
    FechReport.Close()
    End If
    End If
    End If
    End Sub
    Sub Page_Unload(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Unload
    If Not FechReport Is Nothing Then
    'FechReport.Close()
    'FechReport.Dispose()
    'GC.Collect()
    End If
    End Sub
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim sRptFileName As String
    If Request.QueryString("database") "" Then
    strSelectedDatabase = Request.QueryString("database")
    Else
    Response.Write("A Valid Database has not been supplied to this page")
    Response.End()
    End If
    If Request.QueryString("ReportFileName") "" Then
    strReportFileName = Request.QueryString("ReportFileName")
    strReportFullPath = strReportsFolderPath & strReportFileName
    Else
    Response.Write("A Valid Report has not been supplied to this page")
    Response.End()
    End If
    sRptFileName = strReportFullPath
    If Not IsPostBack Then
    FechReport = New ReportDocument
    If Not FechReport Is Nothing Then
    ShowReport(sRptFileName)
    End If
    Else
    If (Session("oReportDocument") Is Nothing) Then
    FechReport = New ReportDocument
    ShowReport(sRptFileName)
    Else
    'FechReport = New ReportDocument
    'FechReport = CType(Session("oReportDocument"), ReportDocument)
    myCrystalReportViewer.ReportSource = Session("oReportDocument")
    'myCrystalReportViewer.ReportSource = FechReport
    End If
    End If
    End Sub
    Public Function ShowReport(ByVal strReportFileName As String) As Boolean
    Dim blNoErrors As Boolean = True
    Dim crDatabase As Database
    Dim crTables As Tables
    Dim crTable As Table
    Dim crTableLogOnInfo As TableLogOnInfo
    Dim crConnectionInfo As ConnectionInfo
    FechReport.FileName = strReportFileName
    myCrystalReportViewer.ReportSource = FechReport
    crConnectionInfo = New ConnectionInfo()
    With crConnectionInfo
    .ServerName = strServerName
    .DatabaseName = strSelectedDatabase
    .UserID = strUserName
    .Password = strPassword
    End With
    Try
    crDatabase = FechReport.Database
    crTables = crDatabase.Tables
    For Each crTable In crTables
    crTableLogOnInfo = crTable.LogOnInfo
    crTableLogOnInfo.ConnectionInfo = crConnectionInfo
    crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    Catch ex As Exception
    Response.Write(ex.Message & ControlChars.NewLine & ex.InnerException.ToString & ControlChars.NewLine)
    Exit Function
    End Try
    Session("oReportDocument") = FechReport
    'FechReport.Close()
    'FechReport.Dispose()
    'GC.Collect()
    Return blNoErrors
    End Function
    End Class

    I have looked into Caching the report document as well. However, as you mentioned in the post it, it will only be usefull when the DB and the report parameters remain the same which is not the case in our application. We have multiple identical databases and hundreds of reports. Our users have the option of using a combination of any database and any reports, each report having numerous parameters.
    Since one user can only access one report at a time. i do have cleanup code that removes the session variable used to store the reportdocument object in the page that is initially used to call the ShowReport.aspx page.
    I understand now that the CR.net SDK is only good for light reporting only. Unfortunately when we started development based on all of the articles that I gathered, I didn't anticipate running to issues like this. But I guess that's the nature of the business :-).  And hence there are people like you who go out of the way to answer these difficult questions.
    Regards,

  • HT4436 I m unable to create an apple id for iCloud as its showing that the limit for creating a free id has been exceeded

    I m unable to create an apple id for iCloud as its showing that the limit for creating a free id is no longer available on your device

    Yes.  On the other iPhone go to Settings>iCloud, scroll to the bottom and tap Delete Account.  This will delete the account from the phone but not from iCloud.  Any data being synced with iCloud on this phone will be deleted from it when you delete the account, but will sync back with you sign back in later.
    After deleting the account, set up a new one with a different Apple ID.  Then delete this account from the phone and sign back into the original account to sync the iCloud data back to this phone.  You can then go to the other phone (the one that doesn't have any remaining accounts on it) and sign into the new account you just created on your other phone using the ID you used to create it.

  • ALBPM 6.0 : The maximum size for file uploads has been exceeded.

    Hi,
    I use AquaLogic BPM Entreprise server to deploy my Process. When I try to publish a process on my server I get the following error:
    An unexpected error ocurred.
    The error's technical description is:
    "javax.servlet.jsp.JspException: null"
    Possible causes are:
    The maximum size for file uploads has been exceeded.
    If you are trying to publish an exported project you should publish it using the remote project option.
    If you are trying to upload the participant's photo you should choose a smaller one.
    An internal error has ocurred, please contact support attaching this page's source code.
    Has someone resolve it?
    Thank's.

    Hi,
    Sure you've figured this out by now, but when you get the "Maximum size for file uploads" error during publish consider:
    1. if your export project file is over 10mb, use "Remote Project" (instead of "Exported Project") as the publication source. That way when you select the remote project, you will point to ".fpr" directory of the project you are trying to publish.
    Most times your project is not on a network drive that the server has access to. If this is the case, upload the .exp file to the machine where the Process Administrator is running, then expand it in any directory (just unzip the file). Then, from the Process Administrator, use the option to publish a Remote Project by entering the path to the .fpr directory you just created when unzipping the project.
    2. Check to see if you have cataloged any jars and marked them as non-versionable. Most of the times the project size is big just because of the external jar files. So as a best practice, when you do a project export select the option "include only-versionable jars", that will get reduce the project size considerably (usually to Kb's). Of course you have to manually copy the Jar files to your Ext folder.
    hth,
    Dan

  • What's the maximum size a varchar2  variable can hold for and NDS Stmnt?

    What's the maximum size a varchar2 variable can hold for and NDS Statement? I read that NDS is good for doing EXECUTE IMMEDIATE on statements that aren't too big. The 10g PL/SQL manual recommends using DBMS_SQL for statements that are too large, but it never gave a limit for what too large was. Does anyone know offhand?

    The limit is the same as the length of varchar2 variable within PL/SQL - that is varchar2(32767).It's not documented, but intermediate concatenation result can hold up to (64k-1) :
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    declare
      part1 varchar2(32767) := rpad('begin null;', 32767);
      part2 varchar2(32767) := lpad('end;',        32767);
    begin
      dbms_output.put_line(length(part1 || ' ' || /*' ' ||*/ part2));
      execute immediate part1 || ' ' || part2;
    end;
    65535
    PL/SQL procedure successfully completed.

  • What is the maximum size limit for a KM document to be uploaded?

    Hi,
    1.  I have a requirement, wherein the user wants to upload a document which is more than 448MB in KM.
    I am not sure what is the maximum limit that standard SAP provides by default, which I can advice the user at the first place.
    2. what if we want to increase the max limit of the size?Where do we do that, can you suggest me the path for the same?
    Thanks in advance.
    Regards
    DK

    Hello,
    CM Repository in DB Mode:
    If there is a large number of write requests in your CM usage scenario, set up the CM repository in database mode. Since all documents are stored in the database, this avoids unintentional
    external manipulation of the data.
    CM Repository in FSDB Mode:
    In this mode, the file system is predominant. If files are removed from or added to the file system, the database is updated automatically.
    If you mainly have read requests, choose a mode in which content is stored in the file system. If this is the case, make sure that access to the relevant part of the file system is denied or
    restricted to other applications.
    What is the maximum size of the document that we can upload in a CM (DB) and CM (FSDB) without compromising the performance ?
    There are the following restrictions for the databases used:
    ·  Maximum number of resources (folders, documents) in a repository instance
       FSDB: No restriction (possibly limited by file system restrictions)
       DBFS and DB: 2,147,483,648
    ·  Maximum size of an individual resource:
       FSDB: No restriction (possibly limited by file system restrictions)
       DBFS: 8 exabytes (MS SQL Server 2000), 2 GB (Oracle)
       DB: 2 GB
    Maximum length of large property values (string type):2,147,583,647 byte
    What is the impact on the performance of Knowledge Management Platform and on Portal Platform when there are large number of documents that are in sizes somewhere from 100 MB to 500 MB or more.
    The performance of the KM and Portal platform is dependent on the type of activity the user is trying to perform. That is a heavy number of retrievals of the large documents stored in the repository for
    read/write mode decreases the performance of the patform. Searching and indexing in the documents will also take a propertionate amount of time.
    For details, please refer to,
    http://help.sap.com, Goto "KM Platform" and then,
    Knowledge Management Platform   > Administration Guide
    System Administration   > System Configuration
    Content Management Configuration   > Repositories and Repository
    Managers    > Internal Repositories   > CM Repository Manager
    Technically speaking the VM has a restriction according to plattform.  W2k is somewhere around 1,2G and Solaris, I believe, 4G.
    Say for instance I was on a W2k box I allotted 500+ for my J2EE Engine that would leave me with the possiblity to upload close to 600mb documents max.
    See if the attached documents (610134, 634689, 552522) can provide you some guidance for setting your VM to meet your needs.
      SUN Documentation
      Java HotSpot VM Options
            http://java.sun.com/docs/hotspot/VMOptions.html
      How to tune Garbage collection on JVM 1.3.1
            http://java.sun.com/docs/hotspot/gc/index.html
      Big Heaps and Intimate Shared Memory (ISM)
            http://java.sun.com/docs/hotspot/ism.html
    Kind Regards,
    Shabnam.

  • How can i increase the maximum size of a text column in Access

    hello,
    i am inserting data in the MS-Access database through my servlet and am getting the exception whenever the length of the text data is more than 255 characters as in Access the maximum size for character data column is 255 can anyone tell me if there is any way by which i can increase the maximum limit of the column size in Access ,i.e. to make it more than 255.

    A text field in Access has a maximum size of 255 characters. If you want to store text information in Access larger than 255, you need to use the memo rather than text data type. There are special considerations for using an Access memo data type and accessing it through JDBC. Specifically, I believe it must be accessed as a binary object (BLOB), rather than text when using the JDBC-ODBC bridge. There are lots of discussions within these forums regarding how to manage, and the issues with using the Access memo data type.
    Good luck!

  • How to restrict the maximum size of a java.awt.ScrollPane

    Dear all,
    I would like to implement a scroll pane which is resizable, but not to a size exceeding the maximum size of the java.awt.Canvas that it contains.
    I've sort of managed to do this by writing a subclass of java.awt.ScrollPane which implements java.awt.event.ComponentListener and has a componentResized method that checks whether the ScrollPane's viewport width (height) exceeds the content's preferred size, and if so, resizes the pane appropriately (see code below).
    It seems to me, however, that there ought to be a simpler way to achieve this.
    One slightly weird thing is that when the downsizing of the pane happens, the content can once be moved to the left by sliding the horizontal scrollbar, but not by clicking on the arrows. This causes one column of gray pixels to disappear and the rightmost column of the content to appear; subsequent actions on the scrollbar does not have any further effect. Likewise, the vertical scrollbar can also be moved up once.
    Also, I would like a java.awt.Frame containing such a restrictedly resizable scrollpane, such that the Frame cannot be resized by the user such that its inside is larger than the maximum size of the scrollpane. The difficulty I encountered with that is that setSize on a Frame appears to set the size of the window including the decorations provided by the window manager (fvwm2, if that matters), and I haven't been able to find anything similar to getViewportSize, which would let me find out the size of the area inside the Frame which is available for the scrollpane which the frame contains.
    Thanks in advance for hints and advice.
    Here's the code of the componentResized method:
      public void componentResized(java.awt.event.ComponentEvent e)
        java.awt.Dimension contentSize = this.content.getPreferredSize();
        this.content.setSize(contentSize);
        java.awt.Dimension viewportSize = getViewportSize();
        System.err.println("MaxSizeScrollPane: contentSize = " + contentSize);
        System.err.println("MaxSizeScrollPane: viewportSize = " + viewportSize);
        int dx = Math.max(0, (int) (viewportSize.getWidth() - contentSize.getWidth()));
        int dy = Math.max(0, (int) (viewportSize.getHeight() - contentSize.getHeight()));
        System.err.println("MaxSizeScrollPane: dx = " + dx + ", dy = " + dy);
        if ((dx > 0) || (dy > 0))
          java.awt.Dimension currentSize = getSize();
          System.err.println("MaxSizeScrollPane: currentSize = " + currentSize);
          setSize(new java.awt.Dimension(((int) currentSize.getWidth()) - dx, ((int) currentSize.getHeight()) - dy));
        System.err.println();
      }Best regards, Jan

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    public class ScrollPaneTest
        GraphicCanvas canvas;
        CustomScrollPane scrollPane;
        private Panel getScrollPanel()
            canvas = new GraphicCanvas();
            scrollPane = new CustomScrollPane();
            scrollPane.add(canvas);
            // GridBagLayout allows scrollPane to remain at
            // its preferred size during resizing activity
            Panel panel = new Panel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            panel.add(scrollPane, gbc);
            return panel;
        private WindowListener closer = new WindowAdapter()
            public void windowClosing(WindowEvent e)
                System.exit(0);
        private Panel getUIPanel()
            int w = canvas.width;
            int h = canvas.height;
            int visible = 100;
            int minimum = 200;
            int maximum = 500;
            final Scrollbar
                width  = new Scrollbar(Scrollbar.HORIZONTAL, w,
                                       visible, minimum, maximum),
                height = new Scrollbar(Scrollbar.HORIZONTAL, h,
                                       visible, minimum, maximum);
            AdjustmentListener l = new AdjustmentListener()
                public void adjustmentValueChanged(AdjustmentEvent e)
                    Scrollbar scrollbar = (Scrollbar)e.getSource();
                    int value = scrollbar.getValue();
                    if(scrollbar == width)
                        canvas.setWidth(value);
                    if(scrollbar == height)
                        canvas.setHeight(value);
                    canvas.invalidate();
                    scrollPane.validate();
            width.addAdjustmentListener(l);
            height.addAdjustmentListener(l);
            Panel panel = new Panel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.insets = new Insets(2,2,2,2);
            gbc.weightx = 1.0;
            addComponents(new Label("width"),  width,  panel, gbc);
            addComponents(new Label("height"), height, panel, gbc);
            gbc.anchor = GridBagConstraints.CENTER;
            return panel;
        private void addComponents(Component c1, Component c2, Container c,
                                   GridBagConstraints gbc)
            gbc.anchor = GridBagConstraints.EAST;
            c.add(c1, gbc);
            gbc.anchor = GridBagConstraints.WEST;
            c.add(c2, gbc);
        public static void main(String[] args)
            ScrollPaneTest test = new ScrollPaneTest();
            Frame f = new Frame();
            f.addWindowListener(test.closer);
            f.add(test.getScrollPanel());
            f.add(test.getUIPanel(), "South");
            f.pack();
            f.setLocation(200,200);
            f.setVisible(true);
            f.addComponentListener(new FrameSizer(f));
    class GraphicCanvas extends Canvas
        int width, height;
        public GraphicCanvas()
            width = 300;
            height = 300;
        public void paint(Graphics g)
            super.paint(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            int dia = Math.min(width, height)*7/8;
            g2.setPaint(Color.blue);
            g2.draw(new Rectangle2D.Double(width/16, height/16, width*7/8, height*7/8));
            g2.setPaint(Color.green.darker());
            g2.draw(new Ellipse2D.Double(width/2 - dia/2, height/2 - dia/2, dia-1, dia-1));
            g2.setPaint(Color.red);
            g2.draw(new Line2D.Double(width/16, height*15/16-1, width*15/16-1, height/16));
        public Dimension getPreferredSize()
            return new Dimension(width, height);
        public Dimension getMaximumSize()
            return getPreferredSize();
        public void setWidth(int w)
            width = w;
            repaint();
        public void setHeight(int h)
            height = h;
            repaint();
    class CustomScrollPane extends ScrollPane
        Dimension minimumSize;
        public Dimension getPreferredSize()
            Component child = getComponent(0);
            if(child != null)
                Dimension d = child.getPreferredSize();
                if(minimumSize == null)
                    minimumSize = (Dimension)d.clone();
                Insets insets = getInsets();
                d.width  += insets.left + insets.right;
                d.height += insets.top + insets.bottom;
                return d;
            return null;
        public Dimension getMinimumSize()
            return minimumSize;
        public Dimension getMaximumSize()
            Component child = getComponent(0);
            if(child != null)
                return child.getMaximumSize();
            return null;
    class FrameSizer extends ComponentAdapter
        Frame f;
        public FrameSizer(Frame f)
            this.f = f;
        public void componentResized(ComponentEvent e)
            Dimension needed = getSizeForViewport();
            Dimension size = f.getSize();
            if(size.width > needed.width || size.height > needed.height)
                f.setSize(needed);
                f.pack();
         * returns the minimum required frame size that will allow
         * the scrollPane to be displayed at its preferred size
        private Dimension getSizeForViewport()
            ScrollPane scrollPane = getScrollPane(f);
            Insets insets = f.getInsets();
            int w = scrollPane.getWidth() + insets.left + insets.right;
            int h = getHeightOfChildren() + insets.top + insets.bottom;
            return new Dimension(w, h);
        private ScrollPane getScrollPane(Container cont)
            Component[] c = cont.getComponents();
            for(int j = 0; j < c.length; j++)
                if(c[j] instanceof ScrollPane)
                    return (ScrollPane)c[j];
                if(((Container)c[j]).getComponentCount() > 0)
                    return getScrollPane((Container)c[j]);
            return null;
        private int getHeightOfChildren()
            Component[] c = f.getComponents();
            int extraHeight = 0;
            for(int j = 0; j < c.length; j++)
                int height;
                if(((Container)c[j]).getComponent(0) instanceof ScrollPane)
                    height = ((Container)c[j]).getComponent(0).getHeight();
                else
                    height = c[j].getHeight();
                extraHeight += height;
            return extraHeight;
    }

  • HT1338 Hi, Is there a way to increase the maximum size of a download? I'm trying to download Adobe premiere pro (1GB) and I'm getting an error message that says my maximum download is 10 MG

    Hi, Is there a way to increase the maximum size of a download? I'm trying to download Adobe premiere pro (1GB) and I'm getting an error message that says my maximum download is 10 MG

    That's between you and your internet service provider.  By the way, you posted to the 10.3 forum.  10.3 can't run on your MacBook Pro. Don't forget the following facts:
    b= bit
    B = Byte
    8 bits in a byte
    A typical DSL connection has 1 Mbps speed or 128 kBps speed.
    At that speed
    1 minute gives you 7.5 MB
    10 minutes gives you 75 MB
    100 minutes gives you 750 MB
    A typical cable connection can be 5 times faster although some are 30 times faster.
    A typical fiber connection is 15 times faster and some are 50 times faster.
    Ask what your speed is rated at.

  • How to calcalate the maximum size occupied by a table/row

    Hi,
    I am using the below query to find the maximum size occupied by a table per a row of data.
    SQL> desc t2
    Name Null? Type
    NO NUMBER(1)
    CH VARCHAR2(10)
    SQL> select sum(data_length) from user_tab_columns where table_name='T2';
    SUM(DATA_LENGTH)
    32
    Is this correct? Does oracle takes 22 bytes of space to store a column of Number(1) per a row as it shows below !?
    1* select data_length from user_tab_columns where table_name='T2'
    SQL> /
    DATA_LENGTH
    22
    10
    Please give your comments/suggestions
    Thanks and Regards
    Srikanth

    If you are trying to do this for an existing table, you can get the actual number of bytes stored per column by:
    SELECT VSIZE(column_name)
    FROM tableSo, to get the largest row you could:
    SELECT MAX(VSIZE(col1) + VSIZE(col2) ... + VSIZE(coln))
    FROM tableIf you want to get the theoretical largest possible row size, then you can use something like:
    SELECT SUM(DECODE(data_type,'NUMBER', ROUND((data_precision/2)+.1,0) +1,
                                'DATE',   7,
                                'LONG',   2147483648,
                                'BLOB',   4000,
                                'CLOB',   4000,
                                data_length)) max_length
    FROM user_tab_columns
    WHERE table_name = 'MY_TABLE'This works because:
    For a number, Oracle stores two digits in each byte, and uses one byte for the mantissa. Note, if you are expecting negative numbers in your numeric columns then add one additional byte).
    For a date, Oracle always requires 7 bytes.
    A long is at most 2 GB in size.
    Both Blobs and Clobs will be stored out-of-line when they are larger than about 4,000 bytes.
    For other data types you specify bytes of storage when you define the column, and that is stored in data_length.
    I'm not sure at this point what sort of sizes you would get for object type columns or nested tables.
    HTH
    John

  • How to determine the maximum size of JFrame?

    I am using JDK1.2 to develop an application. I have
    a problem to handle the maximum size of of JFrame.
    If the user clicks the maximum icon or double-clicks
    the title bar from the JFrame, the JFrame becomes
    maximum. How can I determine the state of maximization? I need to bring different views if the
    JFrame is maximum or minimum. I knew JDK1.4 can
    handle this problem. Or using JNI, either. Does
    anyone know other ways to handle this?
    Thanks,
    Peter

    So that you won't have to wait forever:
    Sorry, pal, the only way is JNI. I researched this earlier for 1.2, but can't find it right now in the database. They finally added it to 1.4.
    Good luck.

  • Hi, My places.sqlite file size is 30,720 KB have I reached the maximum size, is there even a maximum size for this. Visited links are no longer changing color.

    Hi,
    My places.sqlite file size is 30,720 KB have I reached the maximum size, is there even a maximum size for this.
    Suddenly the visited links are no longer changing font color, as I am preparing for an exam I need visited questions to change color, to keep track of questions that I have finished. But if I delete a few days of history then again,a few more visited links change color then again it stops, so it seems something is getting full and not able to accommodate any more? Why are my visited links no longer changing color after a certain number of visits? I do have a back up of the places.sqlite file. So I have tried everything from deleting the profile, uninstalling reinstalling, creating a new profile, then copy pasting places.sqlite etc, but as mentioned after a few visits, visited links no longer change color, if I delete a few days of history then again a few visits will again change color and then stop again, so what should I increase so that my visited links quota is increased, I have also tried tweaking about:config and it has had no result. Although I was not really confident that increasing brower.history_max _pages (don't remember exact name, but I am sure you get the idea) is going to help.
    Seems as though my visited links change color, quota is full and only if I delete a few days of history will I get a few more visited links to change color. Can somebody shed some light? As mentioned my places.sqlite file size is 30,720 KB so I think perhaps this has something to do with this? Would really appreciate if someone could help. Thank you.

    There is no maximum for the places.sqlite database and other SQLite database files like I wrote above.<br />
    All SQLite database file have fixed minimum sizes and if they run out of space they are automatically increased in size with a specific chunk size. For places.sqlite this is 10 MB for the minimum and for the chunk.
    *Bug 581606 - Avoid sqlite fragmentation via SQLITE_FCNTL_CHUNK_SIZE

  • What is the maximum size for mailbox per user (Exchange 2007)

    Hello,
    I'd like to know:
    What is the maximum size per mailbox, and is it not recommended to exceed 3 GB and about the items how many is the maximum per folder (inbox, .. )
    I've Exchange 2007 SP2, Outlook 2007 and 2010.
    Thank you.

    Hi
    There is no size limit on mailboxes up to the maximum size of your database.  I normally recommend 2GB mailbox limits if you have some form of archiving in place.  If you have no archiving in place then the limit should be set at the amount of
    data people need to keep - it is not a good idea for people to store mail in PST files because there is a limit on their mailbox.
    See this article for item count recommendations:
    http://support.microsoft.com/kb/905803
    Also you need to upgrade your Exchange 2007 server to SP3 ... SP2 has been out of support for nearly 3 years already:
    Exchange 2007 Support Lifecycle
    Steve

Maybe you are looking for

  • Not able to change font

    Hi , We need to print some text data in printer. As we print a report, with numbers, and columns, we need font widht to be constant for all the charecters for producing properly aligned reports. [ like in courier or monospace fonts]. In the code belo

  • How to upgrade Stellent 7.5.1 to Oracle Content Server 10gR3

    Hi, I need to upgrade Stellent 7.5.1 to OCS 10gR3. Can someone provide the steps. Do I need to install OCS 10gR3 and then migrate the folders and content how do I migrate all the folder, content to 10gR3. Is there any documentation, blogs, steps that

  • What to do in iPhoto, error when sending pics email, username and password not recognized

    I have imported photos from my camera to iphotos, cool it works great. But why when I want to email the pics, I get an error message that states my username and password arent recognized??

  • Problem with htmlDataSet

    I have a web page and I want to replace dynamically the content of a div using htmlDataSet. The div is a sub section in my page and can contains arbitrary non structure xhtml code. My dataset is declare as this: var dsContent = new Spry.Data.HTMLData

  • Error msg "unable to load" from Office2HD

    Converted pdf to DOC. Went to open within my Office2HD word processor. Get error msg "Load failed an error occurred while opening document". Original pdf document resident on my Google drive. How to open and subsequent edit?