yufish / memcached-session-manager

Automatically exported from code.google.com/p/memcached-session-manager
0 stars 0 forks source link

java.io.IOException: Could not serialize object #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
2012-7-3 22:48:21 
de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoder doSerialize
良好: Returning serialized data:
<?xml version="1.0" encoding="UTF-8" ?><attributes 
class="java.util.concurrent.ConcurrentHashMap" __id="0" size="0"/>
2012-7-3 22:48:21 
de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoder doSerialize
严重: caught exception
java.io.IOException: 系统找不到指定的路径。
    at java.io.WinNTFileSystem.createFileExclusively(Native Method)
    at java.io.File.checkAndCreate(File.java:1704)
    at java.io.File.createTempFile(File.java:1792)
    at de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoder.doSerialize(JavolutionTranscoder.java:134)
    at de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoder.serializeAttributes(JavolutionTranscoder.java:112)
    at de.javakaffee.web.msm.TranscoderService.serializeAttributes(TranscoderService.java:143)
    at de.javakaffee.web.msm.BackupSessionTask.serializeAttributes(BackupSessionTask.java:176)
    at de.javakaffee.web.msm.BackupSessionTask.call(BackupSessionTask.java:110)
    at de.javakaffee.web.msm.BackupSessionTask.call(BackupSessionTask.java:51)
    at de.javakaffee.web.msm.BackupSessionService$SynchronousExecutorService.submit(BackupSessionService.java:339)
    at de.javakaffee.web.msm.BackupSessionService.backupSession(BackupSessionService.java:198)
    at de.javakaffee.web.msm.MemcachedSessionService.backupSession(MemcachedSessionService.java:967)
    at de.javakaffee.web.msm.SessionTrackerValve.backupSession(SessionTrackerValve.java:226)
    at de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:128)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1770)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
2012-7-3 22:48:21 de.javakaffee.web.msm.BackupSessionService backupSession
信息: Could not store session 4FCB0066B03DEE7BC7A4ABD1E4445A3A-n1.worker_1 in 
memcached.
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: 
Could not serialize object
    at de.javakaffee.web.msm.BackupSessionService$SynchronousExecutorService.submit(BackupSessionService.java:341)
    at de.javakaffee.web.msm.BackupSessionService.backupSession(BackupSessionService.java:198)
    at de.javakaffee.web.msm.MemcachedSessionService.backupSession(MemcachedSessionService.java:967)
    at de.javakaffee.web.msm.SessionTrackerValve.backupSession(SessionTrackerValve.java:226)
    at de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:128)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:197)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1770)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Could not serialize object
    at de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoder.doSerialize(JavolutionTranscoder.java:145)
    at de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoder.serializeAttributes(JavolutionTranscoder.java:112)
    at de.javakaffee.web.msm.TranscoderService.serializeAttributes(TranscoderService.java:143)
    at de.javakaffee.web.msm.BackupSessionTask.serializeAttributes(BackupSessionTask.java:176)
    at de.javakaffee.web.msm.BackupSessionTask.call(BackupSessionTask.java:110)
    at de.javakaffee.web.msm.BackupSessionTask.call(BackupSessionTask.java:51)
    at de.javakaffee.web.msm.BackupSessionService$SynchronousExecutorService.submit(BackupSessionService.java:339)
    ... 16 more
Caused by: java.io.IOException: 系统找不到指定的路径。
    at java.io.WinNTFileSystem.createFileExclusively(Native Method)
    at java.io.File.checkAndCreate(File.java:1704)
    at java.io.File.createTempFile(File.java:1792)
    at de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoder.doSerialize(JavolutionTranscoder.java:134)
    ... 22 more
2012-7-3 22:48:21 de.javakaffee.web.msm.LockingStrategy onAfterBackupSession

Original issue reported on code.google.com by leo821031 on 4 Jul 2012 at 4:23

GoogleCodeExporter commented 9 years ago
the error is found in WIN7 and WIN2003 ,but WIN XP is ok

Original comment by leo821031 on 4 Jul 2012 at 4:27

GoogleCodeExporter commented 9 years ago
            transcoderFactoryClass="de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoderFactory"
            copyCollectionsForSerialization="false" />

Original comment by leo821031 on 4 Jul 2012 at 4:31

GoogleCodeExporter commented 9 years ago
Fixed in master.

The serialized xml was written into a tmp file for debugging purposes. This is 
now removed.

Original comment by martin.grotzke on 4 Jul 2012 at 11:43