Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-931

Fileupload fail in cluster server (Weblogic)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Later Later
    • None
    • 6.0.0
    • Clustering
    • None

      <Mar 9, 2012 5:16:19 PM CST> <Error> <HTTP Session> <BEA-100049> <Error lookingup session with id:yKL2PZKMfL97yF37Wm1501GhrWpV1px3Cd1WfmHTZgGH1GrgXLZ2!-1976267667!-8848822
      java.rmi.ServerError: A error occurred the server; nested exception is:
      java.lang.StackOverflowError
      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
      at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
      at weblogic.cluster.replication.ReplicationManager_1032_WLStub.fetch(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      Truncated. see log file for complete stacktrace

      Caused By: java.lang.StackOverflowError
      at weblogic.utils.io.DataIO.writeUTF(DataIO.java:194)
      at weblogic.common.internal.WLObjectOutputStream.writeUTF(WLObjectOutputStream.java:73)
      at java.io.ObjectStreamClass.writeNonProxy(ObjectStreamClass.java:666)
      at java.io.ObjectOutputStream.writeClassDescriptor(ObjectOutputStream.java:640)
      at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1245)

      <?page title="new page title" contentType="text/html;charset=UTF-8"?>
      <zk>
      	<window title="new page title" border="normal"
      		apply="com.FileUploadComposer" id="devWindow">
      		<button upload="true" id="btnUpload" label="Upload Button" />
      		<button id="upload" label="Upload.get" />
      	</window>
      </zk>
      
      package com;
      import org.zkoss.util.media.Media;
      import org.zkoss.zk.ui.event.Event;
      import org.zkoss.zk.ui.event.ForwardEvent;
      import org.zkoss.zk.ui.event.UploadEvent;
      import org.zkoss.zk.ui.util.GenericForwardComposer;
      import org.zkoss.zul.Fileupload;
      
      public class FileUploadComposer extends GenericForwardComposer {
      	
      
      	public void onUpload$btnUpload(Event event) {
      		Media media = ((UploadEvent) ((ForwardEvent) event).getOrigin()).getMedia();
      		System.out.println(media.getName());
      	}
      
      	public void onClick$upload() {
      		try {
      			int maxFiles = 3; 
      			int maxSize = 104857600; 
      			boolean alwaysNative = true;
      			
      			// always returns null, handle UploadEvent in listener 
      			Fileupload.get("message", "title", maxFiles, maxSize, alwaysNative);
      		} catch (Exception e) {
      			System.out.println("{} Upload failed onClick$upload()");			
      		} 
      	}
      	
      	public void onUpload$devWindow(Event event) {
      		Media media = ((UploadEvent) ((ForwardEvent) event).getOrigin()).getMedia();
      		System.out.println(media.getName());
      	}
      }
      
      

            jumperchen jumperchen
            jimmyshiau jimmyshiau
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: