MarketSquare / MarketSquare/remoteswinglibrary
Start Application opens app and then freeze
- Dominant language
- Python
- Stars
- 32
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
remote stderr says:
```
Trying to connect to Class:javax.swing.SwingUtilities$SharedOwnerFrame Name:frame0 Visible:false AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:com.jcoffee.gui.client.swing.container.SplashScreen Name:win0 Visible:true AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:com.jcoffee.gui.client.swing.container.SwingContainer Name:SwingContainer Visible:false AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:javax.swing.SwingUtilities$SharedOwnerFrame Name:frame0 Visible:false AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:com.jcoffee.gui.client.swing.container.SplashScreen Name:win0 Visible:true AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:com.jcoffee.gui.client.swing.container.SwingContainer Name:SwingContainer Visible:false AppContext:sun.awt.AppContext[threadGroup=system]
log4j:WARN No appenders could be found for logger (org.jnp.interfaces.NamingContext).
log4j:WARN Please initialize the log4j system properly.
Trying to connect to Class:javax.swing.SwingUtilities$SharedOwnerFrame Name:frame0 Visible:false AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:com.jcoffee.gui.client.swing.container.SplashScreen Name:win0 Visible:true AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:com.jcoffee.gui.client.swing.container.SwingContainer Name:SwingContainer Visible:false AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:javax.swing.SwingUtilities$SharedOwnerFrame Name:frame0 Visible:false AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:com.jcoffee.gui.client.swing.container.SplashScreen Name:win0 Visible:false AppContext:sun.awt.AppContext[threadGroup=system]
Trying to connect to Class:com.jcoffee.gui.client.swing.container.SwingContainer Name:SwingContainer Visible:true AppContext:sun.awt.AppContext[threadGroup=system]
Connected to Class:com.jcoffee.gui.client.swing.container.SwingContainer Name:SwingContainer Visible:true AppContext:sun.awt.AppContext[threadGroup=system]
2020-08-01 16:27:36.649:INFO:oejs.Server:jetty-7.x.y-SNAPSHOT
2020-08-01 16:27:36.696:INFO:oejsh.ContextHandler:started o.e.j.s.ServletContextHandler{/,null}
2020-08-01 16:27:36.774:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:58890
```
remote stdout says:
```
SL: Logger factory bound: com.jcoffee.base.sl.client.RemoteSystemLoggerFactory
Using org.netbeans.jemmy.drivers.DefaultDriverInstaller driver installer
```
These are java opts that my start script have to use:
```
set JAVA_OPTS=%JAVA_OPTS% -a -Xloggc:"%GCLOGPATH%\GC_Log_%SESSIONNAME%_%FD%_%FT%.log"
set JAVA_OPTS=%JAVA_OPTS% -a -XX:+PrintGCDetails
set JAVA_OPTS=%JAVA_OPTS% -a -XX:+PrintGCTimeStamps
set JAVA_OPTS=%JAVA_OPTS% -a -XX:+PrintGCDateStamps
:NOGCLOG
set JAVA_OPTS=%JAVA_OPTS% -a -Xmx512m
set JAVA_OPTS=%JAVA_OPTS% -a -XX:MaxPermSize=128m
set JAVA_OPTS=%JAVA_OPTS% -a -Dsun.java2d.d3d=false
set JAVA_OPTS=%JAVA_OPTS% -a -Djava.library.path=%NETDIR%\bin
set JAVA_OPTS=%JAVA_OPTS% -a -Dpasx.reports.path="%NETDIR%\reports"
set JAVA_OPTS=%JAVA_OPTS% -a -Duser.timezone=[WLT_ZEITZONE]
set JAVA_OPTS=%JAVA_OPTS% -a com.jcoffee.gui.client.swing.container.SwingContainer
```
When I try to run an application by my self and then use `Application Started` keyword, it results with
```
RemoteSwingLibraryTimeoutError('Agent port not received before timeout') RemoteSwingLibraryTimeoutError: Agent port not received before timeout
```
system: Windows Server 2012 R2 Standard
Python version: 3.7.7
Java version that my app is running:
```
java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) Client VM (build 24.76-b04, mixed mode)
```
Also, I have installed version of java which shows as default:
```
openjdk version "1.8.0_262"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_262-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.262-b10, mixed mode)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Application Started keyword and the SwingContainer startup command shown in the issue. Reproduce the freeze on Windows Server 2012 R2 with the listed Java versions, then trace why the agent port is not received before timeout. Done means the application starts without freezing and Application Started completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, python
- Domain
- desktop, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100