简体   繁体   English

ClassNotFoundException:org.postgresql.util.PSQLException

[英]ClassNotFoundException: org.postgresql.util.PSQLException

I have a performance issue where the application cannot execute a DB query when a particular page is accessed and the page fails to load. 我有一个性能问题,当访问特定页面并且该页面无法加载时,应用程序无法执行数据库查询。 The stack trace for the error is as follows: 错误的堆栈跟踪如下:

Caused by: java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: 
java.lang.ClassNotFoundException: org.postgresql.util.PSQLException (no security manager: RMI class loader disabled)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:246)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148)
at com.sun.proxy.$Proxy27.getCallSynthData(Unknown Source)
at com.avaya.ces.gui.rmi.CallSynthDataServiceRmiClient.getCallSynthData(CallSynthDataServiceRmiClient.java:107)
... 98 more
Caused by: java.lang.ClassNotFoundException: org.postgresql.util.PSQLException (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:393)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:185)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:637)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:264)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:214)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:500)
at java.lang.Throwable.readObject(Throwable.java:914)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:244)
... 103 more

This issue is observed when the DB size is growing rapidly (approx. 3GB a day). 当数据库大小快速增长(每天大约3GB)时,会出现此问题。 Any suggestions on how to prevent this or fix this would be really appreciated. 关于如何防止或解决此问题的任何建议将不胜感激。

Hardware specs where this server is running: CPU : Dual Core – 2.3GHz, Mem: 4GB , Disk : 242 G, OS : RHEL 6.4 64 bit 运行该服务器的硬件规格:CPU:双核– 2.3GHz,内存:4GB,磁盘:242 G,操作系统:RHEL 6.4 64位

Postgres pgdata size: 21839 MB Postgres pgdata大小:21839 MB

实际的异常是ClassNotFoundException: org.postgresql.util.PSQLException ,这是由于未在客户端部署PSQL JAR文件引起的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 org.postgresql.util.PSQLException - 2019 - org.postgresql.util.PSQLException - 2019 EclipseLink:createNativeQuery实例-org.postgresql.util.PSQLException - EclipseLink: createNativeQuery exeption - org.postgresql.util.PSQLException org.postgresql.util.PSQLException:在此ResultSet中找不到列名称usuario - org.postgresql.util.PSQLException: The column name usuario was not found in this ResultSet org.postgresql.util.PSQLException:连接尝试失败 - org.postgresql.util.PSQLException: The connection attempt failed 引起:org.postgresql.util.PSQLException:错误:“:”处或附近的语法错误 - Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near ":" org.postgresql.util.PSQLException:错误:在“with”处或附近出现语法错误 - org.postgresql.util.PSQLException: ERROR: syntax error at or near "with" org.postgresql.util.PSQLException:致命:数据库“pma-springbootdb” - org.postgresql.util.PSQLException: FATAL: database “pma-springbootdb” CallableStatement 抛出日期参数未知的 org.postgresql.util.PSQLException - CallableStatement throws org.postgresql.util.PSQLException with unknown in date param org.postgresql.util.PSQLException:错误:“:”处或附近的语法错误 - org.postgresql.util.PSQLException: ERROR: syntax error at or near “:” org.postgresql.util.PSQLException:服务器不支持SSL - org.postgresql.util.PSQLException: The server does not support SSL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM