-
Публикаций
129 -
Зарегистрирован
-
Посещение
-
Отзывы
0%
Тип контента
Профили
Форумы
Загрузки
Магазин
Инструкции
Весь контент sotiga
-
[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; вот где этот код находиться или где взять ?
-
тех исходниках нету исходного кода DBCP я выдрал его но заного копилирую выдаёт ошибки , вот и интересуюсь может у кого есть правильный код без ошибак ?
-
Привет всем, есть у кого правильный исходный код 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 */
-
[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 всё равно
-
[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 теперь вот что =(
-
что ещё можешь посоветовать ? [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) /* */ { /* */ } /* */ } /* */ } }
-
Осталось 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) /* */ { /* */ } /* */ } /* */ } }
-
/* */ 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 ошибка не исправленная ещё есть варианты ?
-
[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
-
[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) /* */ { /* */ } /* */ { /* */ }
-
на стадии развития , спасибо разобрался
-
просто они с исходниками шли уже компилированные и уже их не исправить
-
хочу узнать для чего нужна папка extensions и в ней файлы dbcp , fpengine , quests ! они делают вообще роль ?
-
Buildfile: E:\Surce\Source\ant\build.xml all: revision: [echo] Revision: {git.Revision.count [echo] Time: 23/05/2015 11:21 build: [delete] Deleting directory E:\Surce\Source\build [mkdir] Created dir: E:\Surce\Source\build [mkdir] Created dir: E:\Surce\Source\build\libs [mkdir] Created dir: E:\Surce\Source\build\login [mkdir] Created dir: E:\Surce\Source\build\login\log [mkdir] Created dir: E:\Surce\Source\build\game [mkdir] Created dir: E:\Surce\Source\build\game\extensions [mkdir] Created dir: E:\Surce\Source\build\sql [copy] Copying 27 files to E:\Surce\Source\build\libs [copy] Copying 3 files to E:\Surce\Source\build\game\extensions build: def: [echo] Build: impulse-commons clear: [mkdir] Created dir: E:\Surce\Source\build\classes [javac] Compiling 133 source files to E:\Surce\Source\build\classes [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [jar] Building jar: E:\Surce\Source\build\impulse-commons.jar [echo] Revision: ${Revision} [echo] Time: 23/05/2015 11:21:31 [copy] Copying 1 file to E:\Surce\Source\build\libs build: def: [echo] Build: gameserver clear: [delete] Deleting directory E:\Surce\Source\build\classes [mkdir] Created dir: E:\Surce\Source\build\classes [javac] Compiling 1659 source files to E:\Surce\Source\build\classes [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\L2Character.java:3027: error: cannot find symbol [javac] public final void addStatFunc(Func f) [javac] ^ [javac] symbol: class Func [javac] location: class L2Character [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\L2Character.java:3061: error: cannot find symbol [javac] public final void addStatFuncs(Func[] funcs) [javac] ^ [javac] symbol: class Func [javac] location: class L2Character [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\L2Character.java:3067: error: cannot find symbol [javac] public final void addStatFuncs(Iterable<Func> funcs) [javac] ^ [javac] symbol: class Func [javac] location: class L2Character [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\itemcontainer\PcInventory.java:240: error: cannot find symbol [javac] public TradeList.TradeItem[] getAvailableItems(TradeList tradeList) [javac] ^ [javac] symbol: class TradeList [javac] location: class PcInventory [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\itemcontainer\PcInventory.java:240: error: package TradeList does not exist [javac] public TradeList.TradeItem[] getAvailableItems(TradeList tradeList) [javac] ^ [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\actor\instance\L2DoorInstance.java:65: error: cannot find symbol [javac] private ClanHall _clanHall; [javac] ^ [javac] symbol: class ClanHall [javac] location: class L2DoorInstance [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\actor\instance\L2DoorInstance.java:289: error: cannot find symbol [javac] public void setClanHall(ClanHall clanHall) { [javac] ^ [javac] symbol: class ClanHall [javac] location: class L2DoorInstance [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\actor\instance\L2DoorInstance.java:293: error: cannot find symbol [javac] public ClanHall getClanHall() { [javac] ^ [javac] symbol: class ClanHall [javac] location: class L2DoorInstance [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\actor\instance\L2DoorInstance.java:99: error: cannot find symbol [javac] public void stopMove(Location pos) [javac] ^ [javac] symbol: class Location [javac] location: class L2DoorInstance.AIAccessor [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\mapregion\L2MapRegionRestart.java:38: error: cannot find symbol [javac] private Castle _castle; [javac] ^ [javac] symbol: class Castle [javac] location: class L2MapRegionRestart [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\mapregion\L2MapRegionRestart.java:178: error: cannot find symbol [javac] public void setCastle(Castle c) { [javac] ^ [javac] symbol: class Castle [javac] location: class L2MapRegionRestart [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\mapregion\L2MapRegionRestart.java:181: error: cannot find symbol [javac] public Castle getCastle() { return _castle; } [javac] ^ [javac] symbol: class Castle [javac] location: class L2MapRegionRestart [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\actor\instance\L2DoormenInstance.java:42: error: cannot find symbol [javac] private ClanHall _clanHall; [javac] ^ [javac] symbol: class ClanHall [javac] location: class L2DoormenInstance [javac] E:\Surce\Source\gameserver\src\ru\impulse\gameserver\model\actor\instance\L2DoormenInstance.java:57: error: cannot find symbol [javac] public final ClanHall getClanHall() [javac] ^ [javac] symbol: class ClanHall [javac] location: class L2DoormenInstance [javac] 14 errors BUILD FAILED E:\Surce\Source\ant\build.xml:10: The following error occurred while executing this line: E:\Surce\Source\ant\build_gameserver.xml:15: The following error occurred while executing this line: E:\Surce\Source\ant\build_template.xml:6: Compile failed; see the compiler error output for details. Total time: 57 seconds кто знает что за ошибки при компиляции?
-
Название: (Шара) Нпц Продающий Скилы Добавил: sotiga Добавлен: 21 Apr 2015 Категория: Серверные дополнения Автор: masone Хроники: Interlude такой нпц был на сервере Pulse-World.ru (не реклама) Нажмите здесь, чтобы скачать файл
-
-
Я хочу получить купон!
-
верстка под sw 13 ?
-
Нужен человек кто может Делать дизайн и верстать сайты на ghtweb 4.0.11 не из дорогих , есть кто на примете ?
-
спасибо щас попробую
-
ну так запустил прописал это и что уже он на java 8 я не думаю что то ещё надо сделать , но что? <target name="compile" depends="init" description="Compile the source."> <javac destdir="${build.classes}" includeantruntime="true" optimize="on" debug="on" source="1.8" target="1.8" nowarn="off" encoding="UTF-8"> <compilerarg value="-Xlint:all"></compilerarg> <src path="${src}"/> <classpath refid="classpath"/> </javac>
-
Netbeans ты про это имел виду ?