New version QSystem 21.0 is available!

Facebook

Функциональность QSystem
× Choosing equipment, install, configure, start using

Tell us about the first stage of operation QSystem. Ask a question about commissioning. Share your experience using the equipment.

Can I run the code in NetBeans

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
6 years 5 months ago #833 by R2D2
R2D2 replied the topic: Can I run the code in NetBeans
Good morning,

Finally after following all the instructions I get the error:

ant -f E:\\PRACTICAS_NETBEANS\\QSystem -Dnb.internal.action.name=rebuild clean jar
:: Apache Ivy 1.3.1 - 20060330160721 :: ant.apache.org/ivy/ ::
E:\PRACTICAS_NETBEANS\QSystem\nbproject\ivy-impl.xml:92: settings file does not exist: E:\PRACTICAS_NETBEANS\QSystem\${ivy.settings.location}
BUILD FAILED (total time: 0 seconds)

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
6 years 5 months ago #834 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
morning

I use ivy-2.4.0-rc1, ant-contrib-1.0b3 and ant-1.8
May be some problem in props of NB/Tools/Options/Miscellaneous/Ivy

Well. You can take all libs from installation package. Just install QSystem1.3.7 and take all libs from <qsys>/dist/lib. And switch off "enable Ivy" in project properties. Its for first time.

В очереди все первые. Каждый в своё время.

Please Log in or Create an account to join the conversation.

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
6 years 5 months ago #835 by R2D2
R2D2 replied the topic: Can I run the code in NetBeans
I finally managed to compile correctly. Attached the file text.
How to run the demo project that shows me the GUI?


Best Regards
Attachments:

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
6 years 5 months ago - 6 years 5 months ago #836 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
looks like just ivy-2.4.0-rc1 was required.

Did you prepare DB? Install MySQL5.5/5.6, add user and execute a script db/qsystem.sql.

Replace a file in ru.apertum.qsystem.client. New one in attachment. There is bug with locales. Must be fixed already in 1.4 but in 1.3 still exists.
Try to start Admin.

How to change local manually:
After that go to <qsystem>\config\langs.properties.
Change there: locale.current = eng

В очереди все первые. Каждый в своё время.
Attachments:
Last Edit: 6 years 5 months ago by Evgenic.

Please Log in or Create an account to join the conversation.

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
6 years 5 months ago #837 by R2D2
R2D2 replied the topic: Can I run the code in NetBeans
When running the project I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException
at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:189) at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:189)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:112)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:105)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:121)
at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:222)
at ru.apertum.qsystem.client.Locales.<init>(Locales.java:38)
at ru.apertum.qsystem.client.Locales.<init>(Locales.java:35)
at ru.apertum.qsystem.client.Locales$LocalesHolder.<clinit>(Locales.java:136)
at ru.apertum.qsystem.client.Locales.getInstance(Locales.java:131)
at ru.apertum.qsystem.client.forms.FAdmin.main(FAdmin.java:1075)
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.joran.spi.JoranException
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

Best Regards

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
6 years 5 months ago #838 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
​I dont know. That isnt mine.​
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.joran.spi.JoranException

​Looks like SLF4j found some kind of lib as "​ch/qos/logback/core/joran" and tries use it. Find it and remove from class_path

В очереди все первые. Каждый в своё время.

Please Log in or Create an account to join the conversation.

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
6 years 5 months ago - 6 years 5 months ago #839 by R2D2
R2D2 replied the topic: Can I run the code in NetBeans
I removed SLF4j lib and I have the error:

warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

Best Regards

Running stays in the screen shown in the picture:

Attachments:
Last Edit: 6 years 5 months ago by R2D2.

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
6 years 5 months ago #840 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
just create folder "plugins" in the project folder as <system>/plugins
There is no "plugins" folder in source but it required. Installation creates it.

В очереди все первые. Каждый в своё время.

Please Log in or Create an account to join the conversation.

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
6 years 5 months ago - 6 years 5 months ago #841 by R2D2
R2D2 replied the topic: Can I run the code in NetBeans
Appreciated Evgeniy, good morning.

When I run the Qserver debug I get the following error:
Exception in thread "Thread-1" java.lang.NullPointerException
    at ru.apertum.qsystem.server.http.JettyRunner.run(JettyRunner.java:160)
    at java.lang.Thread.run(Thread.java:745)    at java.lang.Thread.run(Thread.java:745)
[main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@df4efb: startup date [Mon Nov 10 10:25:41 COT 2014]; root of context hierarchy
[main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [ru/apertum/qsystem/spring/qsContext.xml]
[ INFO] DB server 'QSystem' url=jdbc:mysql://127.0.0.1/qsystem?autoReconnect=true&amp;characterEncoding=UTF-8 
[main] INFO org.springframework.orm.hibernate4.HibernateTransactionManager - Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 10000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge3ed9516td5jbwanz9f|1df177, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge3ed9516td5jbwanz9f|1df177, idleConnectionTestPeriod -> 3600, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://127.0.0.1/qsystem?autoReconnect=true&amp;characterEncoding=UTF-8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]] of Hibernate SessionFactory for HibernateTransactionManager
[ INFO] Отчетный сервер захватывает порт "8088". 
[ INFO] Пробуем восстановить состояние системы. 
Report server for QSystem started.
[ INFO] Отчетный вэбсервер системы 'Очередь' запущен. 
[ INFO] Восстановление состояния системы завершено. Затрачено времени: 0.01 сек. 
[ INFO] Создание табло для телевизоров или мониторов. 
[ INFO] Создаем окно для информации. 
[TRACE] Прочитали настройки для окна информации. at ru.apertum.qsystem.client.forms.FIndicatorBoard.<init>(FIndicatorBoard.java:193)
Device "Intel(R) Graphics Media Accelerator HD" (\\.\DISPLAY1) initialization failed : 
WARNING: bad driver version detected, device disabled. Please update your driver to at least version 8.15.10.2302
[ INFO] Показываем набор строк. 
[ INFO] Сервер системы захватывает порт "3128". 
Server QSystem started.

[ INFO] Сервер системы 'Очередь' запущен. DB name='QSystem' url=jdbc:mysql://127.0.0.1/qsystem?autoReconnect=true&amp;characterEncoding=UTF-8 
BUILD SUCCESSFUL (total time: 55 seconds)

It is right or something is not working well??

Attachments:
Last Edit: 6 years 5 months ago by R2D2.

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
6 years 5 months ago #842 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
Congrats!

Its OK! Run Admin.

About Error. Create folder <qsys>/www/war/

В очереди все первые. Каждый в своё время.

Please Log in or Create an account to join the conversation.

Time to create page: 0.421 seconds
Работаем с QSystem