
org.postgresql.Driver.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of huaweicloud-dws-jdbc Show documentation
Show all versions of huaweicloud-dws-jdbc Show documentation
Data Warehouse Service JDBC driver
???? 4
v
v
4 v
!"#
$%
!&'
4(
)* v+ ,-.
/0
V1 ,234
/56
7
V8W9W:
;
<
=>?
&@
A
?BCD
+EF
=GH
vIJKL
MN OP
2Q
R
SoTpUpVW
%X
?Y
?Z
?[
2\
]
v^_
v`a
Ibcd
Ke
Kf
Kg
Ihi
/jklmnop
vq
vr
vs
Xt
!uv
!wxyz
={
=|
=}~
=???
???
=?
=?
?? ?????
=?
????
??
??
??
???<?=
=[
???
???
=??
???
=?????
??? O??
V?
&?
?E
?? ??????
?E
??
??
)?? O???????
?[
v?
???
??
4[????????????
&E ????
?E
&???
&[?
=?
=??
???????
???
????
v?????? ????
=? ??
???????
???
?
??
??
????
?
??
??
??
?? v?
??????
v?
?B??
?E
?
?
?
?
?
!
!
Dz
?
) O
O
? v v
v
E
v
v !
"# $
%&
%'(
/)*+
"
v,-
%./
ConnectThread InnerClasses registeredDriver Lorg/postgresql/Driver;
PARENT_LOGGER Ljava/util/logging/Logger; LOGGER SHARED_TIMER !Lorg/postgresql/util/SharedTimer; DEFAULT_PORT Ljava/lang/String;
ConstantValue client BLcom/huawei/shade/org/apache/http/impl/client/CloseableHttpClient; gsVersion defaultProperties Ljava/util/Properties; ()V Code LineNumberTable LocalVariableTable this getDefaultProperties ()Ljava/util/Properties; e )Ljava/security/PrivilegedActionException;
StackMapTable
Exceptions loadDefaultProperties url Ljava/net/URL; is Ljava/io/InputStream; i I merged cl Ljava/lang/ClassLoader; urls Ljava/util/ArrayList; urlEnum Ljava/util/Enumeration; LocalVariableTypeTable %Ljava/util/ArrayList; 'Ljava/util/Enumeration;01 connect ?(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection; defaults ioe Ljava/io/IOException; propValue propName Ljava/util/Set; timeout J ct %Lorg/postgresql/Driver$ConnectThread; thread Ljava/lang/Thread; ex1 #Lorg/postgresql/util/PSQLException; ace &Ljava/security/AccessControlException; ex2 Ljava/lang/Exception; info props #Ljava/util/Set;23 setupLoggerFromProperties (Ljava/util/Properties;)V makeConnection
acceptsURL (Ljava/lang/String;)Z getPropertyInfo H(Ljava/lang/String;Ljava/util/Properties;)[Ljava/sql/DriverPropertyInfo; copy parse knownProperties [Lorg/postgresql/PGProperty; [Ljava/sql/DriverPropertyInfo;{| getMajorVersion ()I getMinorVersion
getVersion ()Ljava/lang/String;
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated;
jdbcCompliant ()Z parseURL @(Ljava/lang/String;Ljava/util/Properties;)Ljava/util/Properties; port ignore !Ljava/lang/NumberFormatException; portStr portIdx address temp [Ljava/lang/String; slash addresses hosts Ljava/lang/StringBuilder; ports portArray hostArray hostList Ljava/util/List; l_pos token args serverurl
clusterurl f Ljava/io/File; filePath e1 jsonObj 2Lcom/huawei/shade/com/alibaba/fastjson/JSONObject; tmp Ljava/lang/StringBuffer; ClusterIdentifier region DbUser
AutoCreate AccessKeyID SecretAccessKey jdbcUrl in
domainName jsonstr urlProps urlServer urlArgs l_qPos $Ljava/util/List;?456 getReturn \(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; key value p parameterarray
parametersmap Ljava/util/Map; entry Entry Ljava/util/Map$Entry;
httpMethod 4Lcom/huawei/shade/com/cloud/sdk/http/HttpMethodName; request (Lcom/huawei/shade/com/cloud/sdk/Request; urlString
parameters signer 3Lcom/huawei/shade/com/cloud/sdk/auth/signer/Signer; httpRequestBase ALcom/huawei/shade/org/apache/http/client/methods/HttpRequestBase; requestHeaders response /Lcom/huawei/shade/org/apache/http/HttpResponse;
sslContext Ljavax/net/ssl/SSLContext; sslSocketFactory FLcom/huawei/shade/org/apache/http/conn/ssl/SSLConnectionSocketFactory; ak sk
requestUrl ;Ljava/util/Map$Entry; 5Ljava/util/Map;789:;<=>
createRequest z(Ljava/net/URL;Lcom/huawei/shade/org/apache/http/Header;)Lcom/huawei/shade/org/apache/http/client/methods/HttpRequestBase; header )Lcom/huawei/shade/org/apache/http/Header; httpRequest convertStreamToString )(Ljava/io/InputStream;)Ljava/lang/String; ioEX reader Ljava/io/BufferedReader; sb line hostSpecs 7(Ljava/util/Properties;)[Lorg/postgresql/util/HostSpec; [Lorg/postgresql/util/HostSpec;? user *(Ljava/util/Properties;)Ljava/lang/String; database (Ljava/util/Properties;)J notImplemented O(Ljava/lang/Class;Ljava/lang/String;)Ljava/sql/SQLFeatureNotSupportedException; callClass Ljava/lang/Class; functionName Ljava/lang/Class<*>; Signature R(Ljava/lang/Class<*>;Ljava/lang/String;)Ljava/sql/SQLFeatureNotSupportedException; getParentLogger ()Ljava/util/logging/Logger; getSharedTimer #()Lorg/postgresql/util/SharedTimer; register
deregister isRegistered getGSVersion connectionExtraInfo (Ljava/util/Properties;)Z prop
access$000 /(Lorg/postgresql/Driver;)Ljava/util/Properties; x0
access$100 x1 Ljava/sql/SQLException;
SourceFile Driver.javasYE@9:78 org/postgresql/Driver$19?@AB java/util/Properties 'java/security/PrivilegedActionExceptionCD java/io/IOExceptionEFG user.nameHIJKL java/lang/SecurityExceptionMNOPQ.-RST QCan't find our classloader for the Driver; attempt to use the system class loaderUVWXQYT uCan't find a classloader for the Driver; not loading driver configuration from org/postgresql/driverconfig.properties 0Loading driver configuration via classloader {0}VZ java/util/ArrayList &org/postgresql/driverconfig.properties[\]?^_`ab?cd java/net/URL &Loading driver configuration from: {0}efghi: java/sql/SQLException url is null9j jdbc:postgresql:ku
jdbc:dws:iam:?@ !org/postgresql/util/PSQLException ;Error loading default settings from driverconfig.properties java/lang/Objectlmnopq9r9rstuvw?x_ java/lang/String java/lang/StringBuilder BProperties for the driver contains a non-string value for the key yz{?9|}~?? Connecting with URL: {0}`? #org/postgresql/Driver$ConnectThread9 java/lang/Thread (PostgreSQL JDBC driver connection thread9????:?? Connection error: V? $java/security/AccessControlException ?Your security policy has prevented the connection from being attempted. You probably need to grant the connect java.net.SocketPermission to the database server host and port that you wish to connect to. java/lang/Exception Unexpected connection error: YSomething unusual has occurred to cause the driver to fail. Please report this exception. org/postgresql/jdbc/PgConnection??????9??? java/sql/DriverPropertyInfo?? org/postgresql/util/DriverInfo PostgreSQL JDBC Driver 42.2.23 ?????? KJDBC URL must start with "jdbc:postgresql:" or "jdbc:dws:iam:" but was: {0}?? // =JDBC URL must contain a / at the end of the host or port: {0} PGDBNAME??J ,??????? 'JDBC URL port: {0} not valid (1:65535) java/lang/NumberFormatException !JDBC URL invalid port number: {0}??y? org/postgresql/Driver 5431y????????? PGPORT PGHOST?a localhost &?? java/lang/StringBuffer :?a =y? BPlease confirm that all the parameters needed is added to the url.?q java/io/File???????2 config jdbcconfig.properties java/io/BufferedInputStream java/io/FileInputStream9h?? %/org/postgresql/jdbcconfig.properties?? #Parse jdbcconfig.properties failed.?q Unrecognized region name. https://
/credentials? clusterName= &dbUser= &autoCreate=???? cluster_credentialsc? db_user db_endpoint db_port db_password password externalMessage 'The format of Token is not as expected. Parse the token failed. ssl sslmode require?? -com/huawei/shade/com/cloud/sdk/DefaultRequest dws???? ????? java/util/HashMap????????? @com/huawei/shade/com/cloud/sdk/auth/credentials/BasicCredentials9????????t java/util/Map$Entry?_ ,com/huawei/shade/org/apache/http/HttpHeaders Content-Length?u?_??
X-Language en-us Content-Type application/json Accept??? Acom/huawei/shade/org/apache/http/conn/ssl/TrustSelfSignedStrategy??????? Dcom/huawei/shade/org/apache/http/conn/ssl/SSLConnectionSocketFactory Bcom/huawei/shade/org/apache/http/conn/ssl/AllowAllHostnameVerifier9?????????45???????f?? Get the token failed. 7com/huawei/shade/org/apache/http/client/methods/HttpGet?? java/io/BufferedReader java/io/InputStreamReader UTF-89?9???
??? org/postgresql/util/HostSpec9?I??Gc???? &Couldn't parse loginTimeout value: {0}??? (java/sql/SQLFeatureNotSupportedException "Method {0} is not yet implemented.?? .?q??,-/0? java/lang/IllegalStateException =Driver is already registered. It can only be registered once.??*+ WDriver is not registered (or it has not been registered using Driver.register() method)?? _(GaussDB 8.1.3 build 595adae0) compiled at 2023-03-25 18:07:25 commit 3629 last mr 5138 release false????? org.postgresql org.postgresql.Driver org/postgresql/util/SharedTimer: %java/lang/ExceptionInInitializerError9 java/sql/Driver java/lang/ClassLoader java/util/Enumeration
java/util/Set java/util/Iterator java/util/List java/io/InputStream 0com/huawei/shade/com/alibaba/fastjson/JSONObject 2com/huawei/shade/com/cloud/sdk/http/HttpMethodName &com/huawei/shade/com/cloud/sdk/Request
java/util/Map 1com/huawei/shade/com/cloud/sdk/auth/signer/Signer ?com/huawei/shade/org/apache/http/client/methods/HttpRequestBase -com/huawei/shade/org/apache/http/HttpResponse javax/net/ssl/SSLContext java/lang/Throwable (Lorg/postgresql/Driver;)V java/security/AccessController doPrivileged =(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object; getException ()Ljava/lang/Exception; org/postgresql/PGProperty USER Lorg/postgresql/PGProperty; java/lang/System getProperty &(Ljava/lang/String;)Ljava/lang/String; set +(Ljava/util/Properties;Ljava/lang/String;)V getClass ()Ljava/lang/Class; java/lang/Class getClassLoader ()Ljava/lang/ClassLoader; java/util/logging/Level FINE Ljava/util/logging/Level; java/util/logging/Logger log .(Ljava/util/logging/Level;Ljava/lang/String;)V getSystemClassLoader WARNING @(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V getResources +(Ljava/lang/String;)Ljava/util/Enumeration; hasMoreElements nextElement ()Ljava/lang/Object; add (Ljava/lang/Object;)Z size get (I)Ljava/lang/Object;
openStream ()Ljava/io/InputStream; load (Ljava/io/InputStream;)V close (Ljava/lang/String;)V
startsWith org/postgresql/util/GT tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; org/postgresql/util/PSQLState UNEXPECTED_ERROR Lorg/postgresql/util/PSQLState; I(Ljava/lang/String;Lorg/postgresql/util/PSQLState;Ljava/lang/Throwable;)V stringPropertyNames ()Ljava/util/Set; iterator ()Ljava/util/Iterator; hasNext next append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString 4(Ljava/lang/String;Lorg/postgresql/util/PSQLState;)V setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; +(Ljava/lang/String;Ljava/util/Properties;)V )(Ljava/lang/Runnable;Ljava/lang/String;)V setDaemon (Z)V start getResult (J)Ljava/sql/Connection; C(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V n([Lorg/postgresql/util/HostSpec;Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/lang/String;)V values ()[Lorg/postgresql/PGProperty; toDriverPropertyInfo 5(Ljava/util/Properties;)Ljava/sql/DriverPropertyInfo; indexOf (I)I substring (II)Ljava/lang/String; (I)Ljava/lang/String; length org/postgresql/util/URLCoder decode split '(Ljava/lang/String;)[Ljava/lang/String; lastIndexOf java/lang/Integer parseInt (Ljava/lang/String;)I subSequence (II)Ljava/lang/CharSequence; 3(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; java/util/Collections shuffle (Ljava/util/List;)V setLength (I)V containsKey isEmpty equals ,(Ljava/lang/String;)Ljava/lang/StringBuffer; CONNECTION_REJECTED getResource "(Ljava/lang/String;)Ljava/net/URL; getPath getParent separator
getMessage getResourceAsStream )(Ljava/lang/String;)Ljava/io/InputStream; CONNECTION_UNABLE_TO_CONNECT parseObject F(Ljava/lang/String;)Lcom/huawei/shade/com/alibaba/fastjson/JSONObject; &(Ljava/lang/Object;)Ljava/lang/Object; GET toURI ()Ljava/net/URI; setEndpoint (Ljava/net/URI;)V contains (Ljava/lang/CharSequence;)Z put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
setParameters (Ljava/util/Map;)V
setHttpMethod 7(Lcom/huawei/shade/com/cloud/sdk/http/HttpMethodName;)V 8com/huawei/shade/com/cloud/sdk/auth/signer/SignerFactory getSigner Y(Ljava/lang/String;Ljava/lang/String;)Lcom/huawei/shade/com/cloud/sdk/auth/signer/Signer; '(Ljava/lang/String;Ljava/lang/String;)V sign h(Lcom/huawei/shade/com/cloud/sdk/Request;Lcom/huawei/shade/com/cloud/sdk/auth/credentials/Credentials;)V
getHeaders ()Ljava/util/Map; entrySet getKey equalsIgnoreCase getValue addHeader 5com/huawei/shade/org/apache/http/conn/ssl/SSLContexts custom ?()Lcom/huawei/shade/org/apache/http/conn/ssl/SSLContextBuilder; ;com/huawei/shade/org/apache/http/conn/ssl/SSLContextBuilder loadTrustMaterial ?(Ljava/security/KeyStore;Lcom/huawei/shade/org/apache/http/conn/ssl/TrustStrategy;)Lcom/huawei/shade/org/apache/http/conn/ssl/SSLContextBuilder; useTLS build ()Ljavax/net/ssl/SSLContext; ](Ljavax/net/ssl/SSLContext;Lcom/huawei/shade/org/apache/http/conn/ssl/X509HostnameVerifier;)V 8com/huawei/shade/org/apache/http/impl/client/HttpClients B()Lcom/huawei/shade/org/apache/http/impl/client/HttpClientBuilder; >com/huawei/shade/org/apache/http/impl/client/HttpClientBuilder setSSLSocketFactory ?(Lcom/huawei/shade/org/apache/http/conn/socket/LayeredConnectionSocketFactory;)Lcom/huawei/shade/org/apache/http/impl/client/HttpClientBuilder; D()Lcom/huawei/shade/org/apache/http/impl/client/CloseableHttpClient; @com/huawei/shade/org/apache/http/impl/client/CloseableHttpClient execute ?(Lcom/huawei/shade/org/apache/http/client/methods/HttpUriRequest;)Lcom/huawei/shade/org/apache/http/client/methods/CloseableHttpResponse; getEntity /()Lcom/huawei/shade/org/apache/http/HttpEntity; +com/huawei/shade/org/apache/http/HttpEntity
getContent ,(Lcom/huawei/shade/org/apache/http/Header;)V *(Ljava/io/InputStream;Ljava/lang/String;)V (Ljava/io/Reader;)V readLine %org/postgresql/util/internal/Nullness castNonNull (Ljava/lang/String;I)V 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
LOGIN_TIMEOUT java/lang/Float
parseFloat (Ljava/lang/String;)F java/sql/DriverManager getLoginTimeout getName NOT_IMPLEMENTED getState registerDriver (Ljava/sql/Driver;)V deregisterDriver java/lang/Boolean valueOf '(Ljava/lang/String;)Ljava/lang/Boolean; booleanValue getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger; (Ljava/lang/Throwable;)V ! v 4 '
*+ ,- .- /0 12 3 w
45 62 3 78 9: ; / *? ? <