Jump to content

sotiga

User
  • Content Count

    129
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

13

6 Followers

About sotiga

  • Rank
    Постелил коврик

Информация

  • Пол
    Мужчина

Контакты

Recent Profile Visitors

2551 profile views
  1. [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:5: error: package org.apache.commons.dbcp2 does not exist [javac] import org.apache.commons.dbcp2.BasicDataSource; вот где этот код находиться или где взять ?
  2. тех исходниках нету исходного кода DBCP я выдрал его но заного копилирую выдаёт ошибки , вот и интересуюсь может у кого есть правильный код без ошибак ?
  3. Привет всем, есть у кого правильный исходный код ApacheDBCP.java на сборку Lucera 2 , а то я выпилил со сборки но при компиляции выдаёт ошибки ! /* */ package ru.lucera2.dbcp; /* */ /* */ import java.sql.Connection; /* */ import java.sql.SQLException; /* */ import org.apache.commons.dbcp2.BasicDataSource; /* */ import ru.catssoftware.sql.AbstractDatabaseFactory; /* */ /* */ public class ApacheDBCP extends AbstractDatabaseFactory /* */ { /* */ private BasicDataSource source; /* */ /* */ public void init() /* */ { /* 18 */ this.source = new BasicDataSource(); /* */ try { /* 20 */ this.source.setDriverClassName(this.databaseDriver); /* 21 */ this.source.setUrl(this.databaseUrl); /* 22 */ this.source.setUsername(this.databaseLogin); /* 23 */ this.source.setPassword(this.databasePassword); /* */ /* 25 */ this.source.setInitialSize(this.maxConnections >> 1); /* 26 */ this.source.setMaxTotal(this.maxConnections); /* 27 */ this.source.setMaxIdle(this.maxConnections); /* 28 */ this.source.setMinIdle(1); /* */ /* 30 */ this.source.setMaxWaitMillis(-1L); /* 31 */ this.source.setDefaultReadOnly(Boolean.valueOf(false)); /* 32 */ this.source.setDefaultAutoCommit(Boolean.valueOf(true)); /* 33 */ this.source.setPoolPreparedStatements(true); /* */ /* 35 */ this.source.setValidationQuery("SELECT 1"); /* 36 */ this.source.setTestOnBorrow(false); /* 37 */ this.source.setTestWhileIdle(false); /* 38 */ this.source.setTimeBetweenEvictionRunsMillis(600000L); /* 39 */ this.source.setNumTestsPerEvictionRun(this.maxConnections); /* 40 */ this.source.setMinEvictableIdleTimeMillis(30000L); /* */ /* 42 */ this.source.setRemoveAbandonedOnBorrow(true); /* 43 */ this.source.setRemoveAbandonedOnMaintenance(true); /* 44 */ this.source.setRemoveAbandonedTimeout(60); /* */ /* 46 */ this.source.getConnection().close(); /* */ } catch (SQLException e) { /* 48 */ throw new RuntimeException("Failed init DBCP.", e); } } /* */ // ERROR // /* */ public Connection getConnection(Connection con) throws SQLException { // Byte code: /* */ // 0: aload_1 /* */ // 1: ifnonnull +18 -> 19 /* */ // 4: aload_0 /* */ // 5: getfield 4 ru/lucera2/dbcp/ApacheDBCP:source Lorg/apache/commons/dbcp2/BasicDataSource; /* */ // 8: invokevirtual 39 org/apache/commons/dbcp2/BasicDataSource:getConnection ()Ljava/sql/Connection; /* */ // 11: astore_1 /* */ // 12: goto -12 -> 0 /* */ // 15: astore_2 /* */ // 16: goto -16 -> 0 /* */ // 19: aload_1 /* */ // 20: areturn /* */ // /* */ // Exception table: /* */ // from to target type /* */ // 4 12 15 java/lang/Throwable /* */ } /* */ public void shuwdown() { try { this.source.close(); /* */ } /* */ catch (Throwable localThrowable) /* */ { /* */ } /* */ } /* */ } /* Location: E:\Source\libs\extensions\dbcp.jar * Qualified Name: ru.lucera2.dbcp.ApacheDBCP * JD-Core Version: 0.5.3 */
  4. [echo] Build: dbcp clear: [delete] Deleting directory E:\Surce\Source impulse\build\classes [mkdir] Created dir: E:\Surce\Source impulse\build\classes [javac] Compiling 1 source file to E:\Surce\Source impulse\build\classes [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:5: error: package org.apache.commons.dbcp does not exist [javac] /* */ import org.apache.commons.dbcp.BasicDataSource; [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:10: error: cannot find symbol [javac] /* */ private BasicDataSource source; [javac] ^ [javac] symbol: class BasicDataSource [javac] location: class ApacheDBCP [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:14: error: cannot find symbol [javac] /* 18 */ this.source = new BasicDataSource(); [javac] ^ [javac] symbol: class BasicDataSource [javac] location: class ApacheDBCP [javac] 3 errors BUILD FAILED E:\Surce\Source impulse\ant\build.xml:15: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_dbcp.xml:12: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_template.xml:6: Compile failed; see the compiler error output for details. Total time: 3 minutes 48 seconds всё равно
  5. [echo] Build: dbcp clear: [delete] Deleting directory E:\Surce\Source impulse\build\classes [mkdir] Created dir: E:\Surce\Source impulse\build\classes [javac] Compiling 1 source file to E:\Surce\Source impulse\build\classes [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:5: error: package org.apache.commons.dbcp2 does not exist [javac] /* */ import org.apache.commons.dbcp2.BasicDataSource; [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:10: error: cannot find symbol [javac] /* */ private BasicDataSource source; [javac] ^ [javac] symbol: class BasicDataSource [javac] location: class ApacheDBCP [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:14: error: cannot find symbol [javac] /* 18 */ this.source = new BasicDataSource(); [javac] ^ [javac] symbol: class BasicDataSource [javac] location: class ApacheDBCP [javac] 3 errors BUILD FAILED E:\Surce\Source impulse\ant\build.xml:15: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_dbcp.xml:12: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_template.xml:6: Compile failed; see the compiler error output for details. Total time: 3 minutes 33 seconds теперь вот что =(
  6. что ещё можешь посоветовать ? [echo] Build: dbcp clear: [delete] Deleting directory E:\Surce\Source impulse\build\classes [mkdir] Created dir: E:\Surce\Source impulse\build\classes [javac] Compiling 1 source file to E:\Surce\Source impulse\build\classes [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown() { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown() { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: ';' expected [javac] /* */ public void shuwdown() { try { this.source.close(); [javac] ^ [javac] 3 errors BUILD FAILED E:\Surce\Source impulse\ant\build.xml:15: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_dbcp.xml:12: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_template.xml:6: Compile failed; see the compiler error output for details. Total time: 3 minutes 11 seconds /* */ package ru.impulse.dbcp; /* */ /* */ import java.sql.Connection; /* */ import java.sql.SQLException; /* */ import org.apache.commons.dbcp2.BasicDataSource; /* */ import ru.impulse.sql.AbstractDatabaseFactory; /* */ /* */ public class ApacheDBCP extends AbstractDatabaseFactory /* */ { /* */ private BasicDataSource source; /* */ /* */ public void init() /* */ { /* 18 */ this.source = new BasicDataSource(); /* */ try { /* 20 */ this.source.setDriverClassName(this.databaseDriver); /* 21 */ this.source.setUrl(this.databaseUrl); /* 22 */ this.source.setUsername(this.databaseLogin); /* 23 */ this.source.setPassword(this.databasePassword); /* */ /* 25 */ this.source.setInitialSize(this.maxConnections >> 1); /* 26 */ this.source.setMaxTotal(this.maxConnections); /* 27 */ this.source.setMaxIdle(this.maxConnections); /* 28 */ this.source.setMinIdle(1); /* */ /* 30 */ this.source.setMaxWaitMillis(-1L); /* 31 */ this.source.setDefaultReadOnly(Boolean.valueOf(false)); /* 32 */ this.source.setDefaultAutoCommit(Boolean.valueOf(true)); /* 33 */ this.source.setPoolPreparedStatements(true); /* */ /* 35 */ this.source.setValidationQuery("SELECT 1"); /* 36 */ this.source.setTestOnBorrow(false); /* 37 */ this.source.setTestWhileIdle(false); /* 38 */ this.source.setTimeBetweenEvictionRunsMillis(600000L); /* 39 */ this.source.setNumTestsPerEvictionRun(this.maxConnections); /* 40 */ this.source.setMinEvictableIdleTimeMillis(30000L); /* */ /* 42 */ this.source.setRemoveAbandonedOnBorrow(true); /* 43 */ this.source.setRemoveAbandonedOnMaintenance(true); /* 44 */ this.source.setRemoveAbandonedTimeout(60); /* */ /* 46 */ this.source.getConnection().close(); /* */ } catch (SQLException e) { /* 48 */ throw new RuntimeException("Failed init DBCP.", e); } } /* */ // ERROR // /* */ public Connection getConnection(Connection con) throws SQLException { // Byte code: /* */ // 0: aload_1 /* */ // 1: ifnonnull +18 -> 19 /* */ // 4: aload_0 /* */ // 5: getfield 4 ru/lucera2/dbcp/ApacheDBCP:source Lorg/apache/commons/dbcp2/BasicDataSource; /* */ // 8: invokevirtual 39 org/apache/commons/dbcp2/BasicDataSource:getConnection ()Ljava/sql/Connection; /* */ // 11: astore_1 /* */ // 12: goto -12 -> 0 /* */ // 15: astore_2 /* */ // 16: goto -16 -> 0 /* */ // 19: aload_1 /* */ // 20: areturn /* */ // /* */ // Exception table: /* */ // from to target type /* */ // 4 12 15 java/lang/Throwable } /* */ public void shuwdown() { try { this.source.close(); /* */ } /* */ catch (Throwable localThrowable) /* */ { /* */ } /* */ } /* */ } }
  7. Осталось 3 ошибки кто поможет ? [echo] Build: dbcp clear: [delete] Deleting directory E:\Surce\Source impulse\build\classes [mkdir] Created dir: E:\Surce\Source impulse\build\classes [javac] Compiling 1 source file to E:\Surce\Source impulse\build\classes [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown(); { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown(); { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: ';' expected [javac] /* */ public void shuwdown(); { try { this.source.close(); [javac] ^ [javac] 3 errors BUILD FAILED E:\Surce\Source impulse\ant\build.xml:15: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_dbcp.xml:12: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_template.xml:6: Compile failed; see the compiler error output for details. Total time: 3 minutes 30 seconds /* */ package ru.impulse.dbcp; /* */ /* */ import java.sql.Connection; /* */ import java.sql.SQLException; /* */ import org.apache.commons.dbcp2.BasicDataSource; /* */ import ru.impulse.sql.AbstractDatabaseFactory; /* */ /* */ public class ApacheDBCP extends AbstractDatabaseFactory /* */ { /* */ private BasicDataSource source; /* */ /* */ public void init() /* */ { /* 18 */ this.source = new BasicDataSource(); /* */ try { /* 20 */ this.source.setDriverClassName(this.databaseDriver); /* 21 */ this.source.setUrl(this.databaseUrl); /* 22 */ this.source.setUsername(this.databaseLogin); /* 23 */ this.source.setPassword(this.databasePassword); /* */ /* 25 */ this.source.setInitialSize(this.maxConnections >> 1); /* 26 */ this.source.setMaxTotal(this.maxConnections); /* 27 */ this.source.setMaxIdle(this.maxConnections); /* 28 */ this.source.setMinIdle(1); /* */ /* 30 */ this.source.setMaxWaitMillis(-1L); /* 31 */ this.source.setDefaultReadOnly(Boolean.valueOf(false)); /* 32 */ this.source.setDefaultAutoCommit(Boolean.valueOf(true)); /* 33 */ this.source.setPoolPreparedStatements(true); /* */ /* 35 */ this.source.setValidationQuery("SELECT 1"); /* 36 */ this.source.setTestOnBorrow(false); /* 37 */ this.source.setTestWhileIdle(false); /* 38 */ this.source.setTimeBetweenEvictionRunsMillis(600000L); /* 39 */ this.source.setNumTestsPerEvictionRun(this.maxConnections); /* 40 */ this.source.setMinEvictableIdleTimeMillis(30000L); /* */ /* 42 */ this.source.setRemoveAbandonedOnBorrow(true); /* 43 */ this.source.setRemoveAbandonedOnMaintenance(true); /* 44 */ this.source.setRemoveAbandonedTimeout(60); /* */ /* 46 */ this.source.getConnection().close(); /* */ } catch (SQLException e) { /* 48 */ throw new RuntimeException("Failed init DBCP.", e); } } /* */ // ERROR // /* */ public Connection getConnection(Connection con) throws SQLException { // Byte code: /* */ // 0: aload_1 /* */ // 1: ifnonnull +18 -> 19 /* */ // 4: aload_0 /* */ // 5: getfield 4 ru/lucera2/dbcp/ApacheDBCP:source Lorg/apache/commons/dbcp2/BasicDataSource; /* */ // 8: invokevirtual 39 org/apache/commons/dbcp2/BasicDataSource:getConnection ()Ljava/sql/Connection; /* */ // 11: astore_1 /* */ // 12: goto -12 -> 0 /* */ // 15: astore_2 /* */ // 16: goto -16 -> 0 /* */ // 19: aload_1 /* */ // 20: areturn /* */ // /* */ // Exception table: /* */ // from to target type /* */ // 4 12 15 java/lang/Throwable } /* */ public void shuwdown(); { try { this.source.close(); /* */ } /* */ catch (Throwable localThrowable) /* */ { /* */ } /* */ } /* */ } }
  8. /* */ package ru.impulse.dbcp; /* */ /* */ import java.sql.Connection; /* */ import java.sql.SQLException; /* */ import org.apache.commons.dbcp2.BasicDataSource; /* */ import ru.impulse.sql.AbstractDatabaseFactory; /* */ /* */ public class ApacheDBCP extends AbstractDatabaseFactory /* */ { /* */ private BasicDataSource source; /* */ /* */ public void init() /* */ { /* 18 */ this.source = new BasicDataSource(); /* */ try { /* 20 */ this.source.setDriverClassName(this.databaseDriver); /* 21 */ this.source.setUrl(this.databaseUrl); /* 22 */ this.source.setUsername(this.databaseLogin); /* 23 */ this.source.setPassword(this.databasePassword); /* */ /* 25 */ this.source.setInitialSize(this.maxConnections >> 1); /* 26 */ this.source.setMaxTotal(this.maxConnections); /* 27 */ this.source.setMaxIdle(this.maxConnections); /* 28 */ this.source.setMinIdle(1); /* */ /* 30 */ this.source.setMaxWaitMillis(-1L); /* 31 */ this.source.setDefaultReadOnly(Boolean.valueOf(false)); /* 32 */ this.source.setDefaultAutoCommit(Boolean.valueOf(true)); /* 33 */ this.source.setPoolPreparedStatements(true); /* */ /* 35 */ this.source.setValidationQuery("SELECT 1"); /* 36 */ this.source.setTestOnBorrow(false); /* 37 */ this.source.setTestWhileIdle(false); /* 38 */ this.source.setTimeBetweenEvictionRunsMillis(600000L); /* 39 */ this.source.setNumTestsPerEvictionRun(this.maxConnections); /* 40 */ this.source.setMinEvictableIdleTimeMillis(30000L); /* */ /* 42 */ this.source.setRemoveAbandonedOnBorrow(true); /* 43 */ this.source.setRemoveAbandonedOnMaintenance(true); /* 44 */ this.source.setRemoveAbandonedTimeout(60); /* */ /* 46 */ this.source.getConnection().close(); /* */ } catch (SQLException e) { /* 48 */ throw new RuntimeException("Failed init DBCP.", e); } } /* */ // ERROR // /* */ public Connection getConnection(Connection con) throws SQLException { // Byte code: /* */ // 0: aload_1 /* */ // 1: ifnonnull +18 -> 19 /* */ // 4: aload_0 /* */ // 5: getfield 4 ru/lucera2/dbcp/ApacheDBCP:source Lorg/apache/commons/dbcp2/BasicDataSource; /* */ // 8: invokevirtual 39 org/apache/commons/dbcp2/BasicDataSource:getConnection ()Ljava/sql/Connection; /* */ // 11: astore_1 /* */ // 12: goto -12 -> 0 /* */ // 15: astore_2 /* */ // 16: goto -16 -> 0 /* */ // 19: aload_1 /* */ // 20: areturn /* */ // /* */ // Exception table: /* */ // from to target type /* */ // 4 12 15 java/lang/Throwable } /* */ public void shuwdown(); { try { this.source.close(); /* */ } /* */ catch (Throwable localThrowable) /* */ { /* */ } /* */ } /* */ } /* Location: E:\Source\libs\extensions\dbcp.jar * Qualified Name: ru.lucera2.dbcp.ApacheDBCP * JD-Core Version: 0.5.3 */ [echo] Build: dbcp clear: [delete] Deleting directory E:\Surce\Source impulse\build\classes [mkdir] Created dir: E:\Surce\Source impulse\build\classes [javac] Compiling 1 source file to E:\Surce\Source impulse\build\classes [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown(); { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown(); { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: ';' expected [javac] /* */ public void shuwdown(); { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:68: error: reached end of file while parsing [javac] /* */ } [javac] ^ [javac] 4 errors BUILD FAILED E:\Surce\Source impulse\ant\build.xml:15: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_dbcp.xml:12: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_template.xml:6: Compile failed; see the compiler error output for details. Total time: 5 minutes 38 seconds ошибка не исправленная ещё есть варианты ?
  9. [echo] Build: dbcp clear: [delete] Deleting directory E:\Surce\Source impulse\build\classes [mkdir] Created dir: E:\Surce\Source impulse\build\classes [javac] Compiling 1 source file to E:\Surce\Source impulse\build\classes [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown(); { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown(); { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: ';' expected [javac] /* */ public void shuwdown(); { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:68: error: reached end of file while parsing [javac] /* */ { [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:73: error: reached end of file while parsing [javac] */ [javac] ^ [javac] 5 errors BUILD FAILED E:\Surce\Source impulse\ant\build.xml:15: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_dbcp.xml:12: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_template.xml:6: Compile failed; see the compiler error output for details. Total time: 3 minutes 24 seconds
  10. [echo] Build: dbcp clear: [delete] Deleting directory E:\Surce\Source impulse\build\classes [mkdir] Created dir: E:\Surce\Source impulse\build\classes [javac] Compiling 1 source file to E:\Surce\Source impulse\build\classes [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown() { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: illegal start of expression [javac] /* */ public void shuwdown() { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:62: error: ';' expected [javac] /* */ public void shuwdown() { try { this.source.close(); [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:68: error: reached end of file while parsing [javac] /* */ } [javac] ^ [javac] E:\Surce\Source impulse\gameserver\dbcp\ru\impulse\dbcp\ApacheDBCP.java:73: error: reached end of file while parsing [javac] */ [javac] ^ [javac] 5 errors BUILD FAILED E:\Surce\Source impulse\ant\build.xml:15: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_dbcp.xml:12: The following error occurred while executing this line: E:\Surce\Source impulse\ant\build_template.xml:6: Compile failed; see the compiler error output for details. Total time: 3 minutes 21 seconds кто знает из за чего ошибку выдаёт ? /* */ package ru.impulse.dbcp; /* */ /* */ import java.sql.Connection; /* */ import java.sql.SQLException; /* */ import org.apache.commons.dbcp2.BasicDataSource; /* */ import ru.impulse.sql.AbstractDatabaseFactory; /* */ /* */ public class ApacheDBCP extends AbstractDatabaseFactory /* */ { /* */ private BasicDataSource source; /* */ /* */ public void init() /* */ { /* 18 */ this.source = new BasicDataSource(); /* */ try { /* 20 */ this.source.setDriverClassName(this.databaseDriver); /* 21 */ this.source.setUrl(this.databaseUrl); /* 22 */ this.source.setUsername(this.databaseLogin); /* 23 */ this.source.setPassword(this.databasePassword); /* */ /* 25 */ this.source.setInitialSize(this.maxConnections >> 1); /* 26 */ this.source.setMaxTotal(this.maxConnections); /* 27 */ this.source.setMaxIdle(this.maxConnections); /* 28 */ this.source.setMinIdle(1); /* */ /* 30 */ this.source.setMaxWaitMillis(-1L); /* 31 */ this.source.setDefaultReadOnly(Boolean.valueOf(false)); /* 32 */ this.source.setDefaultAutoCommit(Boolean.valueOf(true)); /* 33 */ this.source.setPoolPreparedStatements(true); /* */ /* 35 */ this.source.setValidationQuery("SELECT 1"); /* 36 */ this.source.setTestOnBorrow(false); /* 37 */ this.source.setTestWhileIdle(false); /* 38 */ this.source.setTimeBetweenEvictionRunsMillis(600000L); /* 39 */ this.source.setNumTestsPerEvictionRun(this.maxConnections); /* 40 */ this.source.setMinEvictableIdleTimeMillis(30000L); /* */ /* 42 */ this.source.setRemoveAbandonedOnBorrow(true); /* 43 */ this.source.setRemoveAbandonedOnMaintenance(true); /* 44 */ this.source.setRemoveAbandonedTimeout(60); /* */ /* 46 */ this.source.getConnection().close(); /* */ } catch (SQLException e) { /* 48 */ throw new RuntimeException("Failed init DBCP.", e); } } /* */ // ERROR // /* */ public Connection getConnection(Connection con) throws SQLException { // Byte code: /* */ // 0: aload_1 /* */ // 1: ifnonnull +18 -> 19 /* */ // 4: aload_0 /* */ // 5: getfield 4 ru/lucera2/dbcp/ApacheDBCP:source Lorg/apache/commons/dbcp2/BasicDataSource; /* */ // 8: invokevirtual 39 org/apache/commons/dbcp2/BasicDataSource:getConnection ()Ljava/sql/Connection; /* */ // 11: astore_1 /* */ // 12: goto -12 -> 0 /* */ // 15: astore_2 /* */ // 16: goto -16 -> 0 /* */ // 19: aload_1 /* */ // 20: areturn /* */ // /* */ // Exception table: /* */ // from to target type /* */ // 4 12 15 java/lang/Throwable } /* */ public void shuwdown() { try { this.source.close(); /* */ } /* */ catch (Throwable localThrowable) /* */ { /* */ } /* */ { /* */ }
  11. на стадии развития , спасибо разобрался
  12. просто они с исходниками шли уже компилированные и уже их не исправить
  13. хочу узнать для чего нужна папка extensions и в ней файлы dbcp , fpengine , quests ! они делают вообще роль ?
×
×
  • Create New...