Maximum size of a Java String

Hello
Can anyone please tell me what would be the maximum size for a java string....
Thanks
Tapan

You are asking the wrong questions. If you are going to have a really, really big string then the chances are you shouldn't be using strings.
If you are trying to parse a file then you want to be reading it in chunks at a time.
Tell us what you are trying to do and maybe we can suggest a better solution.
See, I am a nice person. I just don't like people who are too lazy to writepublic static void main(String args[]) {
  System.out.println(Integer.MAX_VALUE);
} That took me around 10 seconds.
Ted.

Similar Messages

  • 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;
    }

  • How to set MAXIMUM size of a formatted string?

    Hello
    Assume I have an Object foo with a
    toString(){ return "a long name to print"; }and that I want to print it with minimum space of 40, I would say
    System.out.printf("foo say: %1$40s", foo.toString() )But I need very often to set a maximum width, so that any strings or fields wider than this is truncated. Eg:
    System.out.printf("foo say: %1$5s", foo.toString())gives i.e. "foo say: a l..". Is this possible, using the Formatter class (or similar) in Java? So far I have created my own class to enable this, but I want to use as much predefiend classes as possible.
    Regards
    Fluid

    You need to use a precision argument:
    String foo = "a long name to print";
    System.out.printf("foo say: %.8s", foo); // 8 maxhttp://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax

  • Maximum size of the SSIS String Variable?

    In SSIS, what is the maximum size of the String variable (one that you would define in the Variables dialog box)?

     jwelch wrote:
    4000 is the limit on expressions. I'm not sure what the limit is on strings.
    This is all true.  Technically, I'm not sure there's a limit on the string variables.  Though you can't really use that variable anywhere without the 4000 character expression limit applying.  (Most of the time the variable is used in an expression SOMEWHERE...)

  • String beginning ":OLD.DIAL_..." is too long. maximum size is 239 character

    @C:\Y\trigger.sql DIM_DIAL_DIGIT ctva_ra TRG_DIM_DIAL_DIGIT1
    :OLD.DIAL_DIGIT_KEY,:OLD.BU_KEY,:OLD.NOP_ID_KEY,:OLD.SDCA_LOCATION_CODE,:OLD.TARGET_REGION_DESC,:OLD.TARGET_COUNTRY_CODE,:OLD.TARGET_COUNTRY_DESC,:OLD.LDCA_NAME,:OLD.SDCA_NAME,:OLD.LDCC_X_COORD,:OLD.LDCC_Y_COORD,:OLD.SDCC_X_COORD,:OLD.SDCC_Y_COORD,:OLD.POPULATION_DATE_TIME,:OLD.ISO_COUNTRY_CODE,:OLD.HOTLIST_IND,:OLD.BLACKLIST_IND,:OLD.UPDATE_DATE_TIME,:OLD.EVENT_TYPE_KEY,:OLD.PROVIDER_DESCRIPTION,:OLD.DM_IND,:OLD.DIAL_DIGIT_OPERATOR_TYPE,:OLD.CALL_DIRECTION_KEY,:OLD.DIAL_DIGIT_DESCRIPTION,:OLD.FORCE_RI_IND,:OLD.TEST_CALL_IND DIAL_DIGIT_KEY,BU_KEY,NOP_ID_KEY,SDCA_LOCATION_CODE,TARGET_REGION_DESC,TARGET_COUNTRY_CODE,TARGET_COUNTRY_DESC,LDCA_NAME,SDCA_NAME,LDCC_X_COORD,LDCC_Y_COORD,SDCC_X_COORD,SDCC_Y_COORD,POPULATION_DATE_TIME,ISO_COUNTRY_CODE,HOTLIST_IND,BLACKLIST_IND,UPDATE_DATE_TIME,EVENT_TYPE_KEY,PROVIDER_DESCRIPTION,DM_IND,DIAL_DIGIT_OPERATOR_TYPE,CALL_DIRECTION_KEY,DIAL_DIGIT_DESCRIPTION,FORCE_RI_IND,TEST_CALL_IND;
    when i am running this script it return's string beginning ":OLD.DIAL_..." is too long. maximum size is 239 characters.
    how will i overcome from this situation.
    i am passing parameter with .sql file

    string beginning ":OLD.DIAL_..." is too long. maximum size is 239 characte. Be patient my friend....

  • String beginning ":OLD.DIAL_..." is too long. maximum size is 239 characte

    @C:\Y\trigger.sql DIM_DIAL_DIGIT ctva_ra TRG_DIM_DIAL_DIGIT1
    :OLD.DIAL_DIGIT_KEY,:OLD.BU_KEY,:OLD.NOP_ID_KEY,:OLD.SDCA_LOCATION_CODE,:OLD.TARGET_REGION_DESC,:OLD.TARGET_COUNTRY_CODE,:OLD.TARGET_COUNTRY_DESC,:OLD.LDCA_NAME,:OLD.SDCA_NAME,:OLD.LDCC_X_COORD,:OLD.LDCC_Y_COORD,:OLD.SDCC_X_COORD,:OLD.SDCC_Y_COORD,:OLD.POPULATION_DATE_TIME,:OLD.ISO_COUNTRY_CODE,:OLD.HOTLIST_IND,:OLD.BLACKLIST_IND,:OLD.UPDATE_DATE_TIME,:OLD.EVENT_TYPE_KEY,:OLD.PROVIDER_DESCRIPTION,:OLD.DM_IND,:OLD.DIAL_DIGIT_OPERATOR_TYPE,:OLD.CALL_DIRECTION_KEY,:OLD.DIAL_DIGIT_DESCRIPTION,:OLD.FORCE_RI_IND,:OLD.TEST_CALL_IND DIAL_DIGIT_KEY,BU_KEY,NOP_ID_KEY,SDCA_LOCATION_CODE,TARGET_REGION_DESC,TARGET_COUNTRY_CODE,TARGET_COUNTRY_DESC,LDCA_NAME,SDCA_NAME,LDCC_X_COORD,LDCC_Y_COORD,SDCC_X_COORD,SDCC_Y_COORD,POPULATION_DATE_TIME,ISO_COUNTRY_CODE,HOTLIST_IND,BLACKLIST_IND,UPDATE_DATE_TIME,EVENT_TYPE_KEY,PROVIDER_DESCRIPTION,DM_IND,DIAL_DIGIT_OPERATOR_TYPE,CALL_DIRECTION_KEY,DIAL_DIGIT_DESCRIPTION,FORCE_RI_IND,TEST_CALL_IND;
    when i am running this script it return's string beginning ":OLD.DIAL_..." is too long. maximum size is 239 characters.
    how will i overcome from this situation.
    i am passing parameter with .sql file

    Looks like you are trying to save the history data (with :OLD values).
    If you are trying to generate a trigger at runtime, then you need a procedure which is able to loop through user_tab_columns for the given table and construct column strings for generation of triggers.
    Then you can use EXECUTE IMMEDIATE to create the trigger.
    Keep in mind that debugging such a procedure would be headache if you face any problems in creating the same.

  • How to set the default maximum size for java's heap?

    Hi!
    Im trying to set the default max size for the java heap - but not from the command line.
    I would like to set it higher as default on my computer.. how can I do that?
    thanks!

    >
    ...You may increase the memory heap only when you're launching a new JVM.>Much like IWantToBeBig does.
    OTOH, it this is an app. with a GUI, it is easier to launch it using webstart, and request extra memory in the JNLP descriptor (the webstart launch file).

  • 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.

  • JFrame maximum size

    Hi! I'm using a JFrame in a game I'm developing, and this should be resizeable within some bounds. This works fine for the minimum size, the user is unable to even try to resize the frame smaller than what I've set as the minimum size. But it seems like maximum size is a different issue - I can't find a way to bound how large the user may expand the frame. Of course, when it's extended to a larger size than my specified maximum, it's resized back to the maximum size (using a ComponentListener to detect resize attempts - this has to be done because I need a constant aspect ratio - and a maximum size). But I don't like this solution very much, I would rather find it impossible to even try to extend the frame larger than the bounds - in the same way one can set the bounds for the minimum size. Please help me!
    Any suggestions anyone?

    See [http://forums.sun.com/thread.jspa?threadID=5342801]
    The real issue is that setMinimumSize is declared in Window whereas setMaximumSize is declared in Component. Thus the two methods do not have complementary connotations.
    Experimenting with workarounds posted on those bug report pages, I think this is the cleanest solution, even if it does involve using a painting method for something other than painting -- normally to be avoided. SSCCE:import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Point;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    public class MaxSizeFrame {
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new MaxSizeFrame().makeUI();
       public void makeUI() {
          final JFrame frame = new JFrame("") {
             @Override
             public void paint(Graphics g) {
                Dimension d = getSize();
                Dimension m = getMaximumSize();
                boolean resize = d.width > m.width || d.height > m.height;
                d.width = Math.min(m.width, d.width);
                d.height = Math.min(m.height, d.height);
                if (resize) {
                   Point p = getLocation();
                   setVisible(false);
                   setSize(d);
                   setLocation(p);
                   setVisible(true);
                super.paint(g);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(400, 400);
          frame.setMaximumSize(new Dimension(500, 500));
          frame.setMinimumSize(new Dimension(300, 300));
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
    }This way, instead of repeated flickering, there is just one flicker as the specified maximum size is crossed.
    db

  • How Do You Set the Maximum Size of a JFrame?

    Can someone show me a quick example? The JFrame can be empty, I just want to know how to set it's maximum size. I tried using setMaximumSize() and it doesn't work for some reason but setMinimumSize() works fine.
    I tried it using a BoxLayout and even using null as a layout manager and can't get it to work. I heard that the other layout managers don't allow you to set the maximum size of a JFrame so that is why I tried it with the layouts that I did.
    I tried the following code (imported the necessary classes), but it does not work...
    public class MyFrame extends JFrame
        public MyFrame()
            super("TestFrame");
            setLayout( new BoxLayout(getContentPane(), BoxLayout.X_AXIS)  );       
            setMaximumSize( new Dimension(400,200));
            setSize(300,150);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setVisible( true );                
    }// end class

    Reposted from
    {color:#0000ff}http://forum.java.sun.com/thread.jspa?threadID=5236259{color}
    @OP:
    When you repost a topic, please always provide a link to the previous post so people can check what suggestions were already offered (and didn't solve the problem).
    Better still, give a short summary of the advice you have already tried.
    I suggested setBackground(...) so you can see whether your MyFrame is actually occupying the entire real estate of the window. Looks as if trying it out (which I would have done for you if I'd been at home, where my JDK is) would have been too much effort for you.
    I'm pretty much a novice in Swing, but I can tell you this: setLayout controls the layout of components added to the JFrame, not the layout of the frame with respect to its parent container.
    Luck, Darryl

  • Maximum size for an HttpRequest? Set Content-Length?

    Hi, I'm managing to get small strings sent from my applet to my servlet, but when I try anything bigger, I get problems. Oddly enough, the larger object can get sent to my applet from my servlet without any issues.
    Can anyone tell me if there is a maximum size for sending responses?
    Or, if I have to set the content-length property in my applet before I send my data, how do I get the size of my object so I can set it?
    thanks for any advice any of you might have

    Thanks for the pointers.
    BalusC, at first I was trying to write my object without sending it through a byteStream first (hence the q) :), tried it that way too and wouldn't work.
    I finally figured out that it wasn't the code that was the problem, but it was an upload issue (server specific). Have changed the code to sending one line of data at a time since I was converting my object to an output file in the servlet anyway. Not the best solution but it works :)
    Thanks again

  • Maximum size for JAR files on Nokia 3120 Classic

    I am trying to download and install a java app for a Nokia 3120 classic, but when installing I get an error message telling me that the file is too big at 5.7mb.
    I can't find the maximum size of .jar files for this phone anywhere.
    Can anyone let me know what this is and whether there is any way to get the app to work.
    Many thanks.
    Alan Watson

    YES THERE IS A WAY!! I only got this information from someone else. Thanks for that person.
    Here are the steps:
    1. Download the jar file you want to install, to your computer. Now open My computer, and on the upper left corner you shall see a menu, click the "Tools" button and then click "Folder options..." A little window will appear. Click the "View" tab. On this window you need to find an option "Hide extentions for known file types" below "Advanced settings". Then unmark or uncheck the box.
    2. Now when you open my computer and go to the folder where you had downloaded the java file, the file name will read "(anyfilename).jar". HERE IS THE TRICK.
    3. Rename the last part of your file. Instead of .jar change it to .jpg so that it reads  "(anyfilename).jpg"
    4. Now copy the renamed file and paste it in your mobile's C: or Memory Card drive.
    5. Once you had pasted, rename the copied file back to what it was. i.e "(anyfilename).jar"
    BASICALLY the phone limits a file with a ".jar" extention, you can fool it by renaming the extention to ".jpg" and then once the file is copied into the phones C:drive you can change the extention back to ".jar" by renaming it.
    Share it. Hope it works for you! God bless...
    Only One Life Twill Soon Be Past.
    Only What's Done For Christ Will Last.

  • Maximum size of a BytesMessage

    Does anyone know what is the maximum size of a BytesMessage acceptable for
              the WebLogic7?
              I'm sending BytesMessages from a remote JVM, and when the capacity of the
              message exceeds 10MB an exception is thrown:
              Exception in thread "main" weblogic.jms.common.JMSException: ; nested
              exception is:
              java.io.EOFException
              at
              weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperState.java:336)
              at weblogic.jms.client.JMSProducer._send(JMSProducer.java:332)
              at weblogic.jms.client.JMSProducer.send(JMSProducer.java:172)
              ----------- Linked Exception -----------
              weblogic.rjvm.PeerGoneException: ; nested exception is:
              java.io.EOFException
              at
              weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
              at
              weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:127)
              at
              weblogic.jms.dispatcher.DispatcherImpl_WLStub.dispatchSyncTranFuture(Unknown
              Source)
              at
              weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperState.java:319)
              at weblogic.jms.client.JMSProducer._send(JMSProducer.java:332)
              at weblogic.jms.client.JMSProducer.send(JMSProducer.java:172)
              ----------- Linked Exception -----------
              weblogic.rjvm.PeerGoneException: ; nested exception is:
              java.io.EOFException
              at
              weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
              at
              weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:127)
              at
              weblogic.jms.dispatcher.DispatcherImpl_WLStub.dispatchSyncTranFuture(Unknown
              Source)
              at
              weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperState.java:319)
              at weblogic.jms.client.JMSProducer._send(JMSProducer.java:332)
              at weblogic.jms.client.JMSProducer.send(JMSProducer.java:172)
              Marcin Augustyniak
              

    Thanks.
              On Mon, 16 Feb 2004 10:09:59 -0500, Tom Barnes
              <[email protected].bea.com>
              wrote:
              > Hi,
              >
              > There is no maximum messages for WL JMS messages. But
              > I think I know what the problem is - the maximum size
              > of a WebLogic network packet defaults to 10MB. This is
              > configurable on a per server basis in its network configuration
              > (eg this is not a JMS setting but is instead a WL server setting).
              >
              > With WL JMS take special note that multiple messages
              > may be pushed to an asynchronous receiver at a time - further
              > increasing the size of a packet. This is tunable
              > on connection factories via the MessagesMaximum property
              > (default is 10).
              >
              > Since this is a misleading exception, please consider
              > filing a case with customer support to make sure it gets
              > cleaned up.
              >
              > Tom
              >
              > P.S. If you haven't already, and performance is
              > an issue, I strongly advise
              > considering compressing your data before putting it
              > into a message.
              >
              > yazzva wrote:
              >
              >> Does anyone know what is the maximum size of a BytesMessage acceptable
              >> for the WebLogic7?
              >> I'm sending BytesMessages from a remote JVM, and when the capacity of
              >> the message exceeds 10MB an exception is thrown:
              >>
              >> Exception in thread "main" weblogic.jms.common.JMSException: ; nested
              >> exception is:
              >> java.io.EOFException
              >> at
              >> weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperState.java:336)
              >> at weblogic.jms.client.JMSProducer._send(JMSProducer.java:332)
              >> at weblogic.jms.client.JMSProducer.send(JMSProducer.java:172)
              >> ----------- Linked Exception -----------
              >> weblogic.rjvm.PeerGoneException: ; nested exception is:
              >> java.io.EOFException
              >> at
              >> weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
              >> at
              >> weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:127)
              >> at
              >> weblogic.jms.dispatcher.DispatcherImpl_WLStub.dispatchSyncTranFuture(Unknown
              >> Source)
              >> at
              >> weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperState.java:319)
              >> at weblogic.jms.client.JMSProducer._send(JMSProducer.java:332)
              >> at weblogic.jms.client.JMSProducer.send(JMSProducer.java:172)
              >> ----------- Linked Exception -----------
              >> weblogic.rjvm.PeerGoneException: ; nested exception is:
              >> java.io.EOFException
              >> at
              >> weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
              >> at
              >> weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:127)
              >> at
              >> weblogic.jms.dispatcher.DispatcherImpl_WLStub.dispatchSyncTranFuture(Unknown
              >> Source)
              >> at
              >> weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperState.java:319)
              >> at weblogic.jms.client.JMSProducer._send(JMSProducer.java:332)
              >> at weblogic.jms.client.JMSProducer.send(JMSProducer.java:172)
              >>
              >>
              >
              Marcin
              

  • HttpSession maximum size

    Hello all,
    I was asked to research if HttpSession object has an inherited maximum size. I read the servlet spec (2.3) and there was nothing there about the maximum size of a session. Searched the forums and found some pointers but nothing concrete. I even saw a similar question with zero replies to it so if you think this is a silly or stupid question just say so. :)
    My presumption was that there is no set max size for the session object, that it depended of the capability of the server machine. Is there some vendor specific limitations (BEA vs. IBM vs. Tomcat vs. Sun) in implementation of the HttpSession interface? For one reason or other a member of my team thinks that there is some kind of limitation on the session size.
    Thanks in advance
    Dmitry

    A HttpSession has the same inheret limitations on its size as a ArrayList, a HasMap or any other Java object. Usually, the HttpSession is an ordinary Java object stored in some kind of Map global to the servlet-container. There is nothing special about it.
    General advice: dont store multiple attributes in a HttpSession. It is messy and unnecessary. Define a class that represents the state of a user session. Store one such object in each new HttpSession. Retrieve it when new request in the same sessions arrive and modify the session state object.
    As said: there is no special limitation on the size of such an object. I assume it speaks for itself that consuming large quantities of server memory for a single user is not a very wise thing.
    Silvio Bierman

  • Maximum size of dbms_scheduler.create_job job_action parameter

    i'm running into a problem with the size limit for the dbms_job.submit what parameter... time to move to the dbms_scheduler.create_job package?
    can anyone tell me what the maximum size is for the dbms_scheduler.create_job job_action parameter?
    appreciate any information that can be provided.

    Herald ten Dam wrote:
    But how doy come in trouble with this length, normally a call to a procedure (in a package) and do there the job. Don't program the whole pl/sql (C/Java) in the call. With dbms_scheduler you can make also dependencies between jobs, so it is possible to split the functionality.Yes, I completely agree. The only times that I've put PL/SQL anonymous blocks in scheduler actions is when I want to guarantee the fewest dependencies for jobs (or chain steps) that are really critical, such as when you want to send an email or other notification that a failure has occurred. Otherwise I'd just call a procedure.

Maybe you are looking for

  • Error while activationg BI content for BI admin cockoit for data sources

    Hi all, I am doing BI content activation for BI admin cockpit, from SPRO -- Activation of BI content of BI admin cockpit , i ran the activation but it got failed. The error message says: DataSource 0TCTBWOBJCT_ATTR from source system BWQCLNT500 could

  • How can I turn off the logging in procedure?

    A few days ago an Apple associate at the Apple store in Oak Brook, IL, added a new user to try to fix a problem I was having.  Since then, even though I removed that second user, I have to log in.  I am the only user so this is entirely unnecessary a

  • Page doesn't display properly in IE 6

    Hi ppl.. My site doesn't display correctly in IE 6. (It works fine with IE 7 and 8 and Firefox) I can see through the area which is supposed to be white ( in other words, I see the background which I put in my body tag). I'm guessing that this happen

  • Search from header toolbar

    Hi, I have installed Trex. and also I have configured Collaboration. For the serch options: When I click the search button which is available after collaboration, I get a popup window with below error. An exception occurred while processing a request

  • Trouble since 10.6.4 update

    Hi, I can not get compressor to do anything since I did the 10.6.4. OS update. I am not sure if this is the issue but, that is the only change made between Compressor working and it not working. By not working I mean, I set up a job, the way I have a