[MAGNOLIA-5663] IOC problems with JDK7 in combination with apps. Created: 10/Feb/14  Updated: 19/Dec/16

Status: Open
Project: Magnolia
Component/s: core
Affects Version/s: 5.2.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Christian Ringele Assignee: Tobias Mattsson
Resolution: Unresolved Votes: 0
Labels: ioc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 and JDK7 1.7.0_25 64bit.


Attachments: Text File springsecurityintegration_activationtoolspage_issue.txt     Text File stacktrace-helloworld.txt     Zip Archive training-apps-ux-module.zip    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

In the training we use the helloworld app as described in the documentation:
http://documentation.magnolia-cms.com/display/DOCS/Programming+an+app#Programminganapp-HelloWorldexample

The code worked without problems in various trainings. Last training 2 participants used JDK7 instead of JDK6 in Eclipse. Both running on Windows 7.
Both hat the same problem:
The view of the greeter subapp was not injected into the presenter via IOC, see stacktrace in file 'stacktrace-helloworld.txt'. The git repo 'training-apps-ux-module.zip' is the repository the participants was using within eclipse. The original code base is located in:
https://git.magnolia-cms.com/gitweb/?p=training/training-apps-ux-project.git;a=tree;f=training-apps-ux-module;hb=HEAD
The code base the people use are in all cases the same. All register in the same way the Views in the module descriptor.

I assume that the compiling with JDK7 is the source of the problem, as they used the JDK7 for runtime all week before. Any Magnolia App requests the View in the presenter by IOC, but only when they used their first IDE compiled app it didn't work anymore.

The problem is triggered:
The main subapp opens and displays normal.
When clicking on the "Greeter" Button which calls the greeter subapp via a "gotoLocation()" call the error appears. The greeter subapp never opens.



 Comments   
Comment by Christian Ringele [ 11/Feb/14 ]

Tobias & me discussed this problem.
He requested the information of this ticked to look at the IOC problem -> assigning to Tobias.

Comment by Christian Ringele [ 03/Mar/14 ]

Additional Infos:
I had last training a participant also using JDK7 on Ubuntu.
He didn't have the IOC problems.
Here the specs from his machine:
Ubuntu 13.10 64 Bit (Desktop).
The Java Version in use:
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.13.10.1)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Comment by Sunil KUMAR [ 22/Apr/14 ]

I have similar/related problem. After integrating spring security , the sample project throws error when I get to activations page on adminCentral.

I DO not have this issue for sample project with out spring security integration.

I have attached the trace file springsecurity_integration_activation_page.

Comment by Sunil KUMAR [ 22/Apr/14 ]

Just to be clear, the problem is not due to spring security but due to version difference.

The plane sample webapp runs well has java 1.6 and the one with spring security and java 1.7 doesn't run.

So evidently its due to java version.

Comment by Jan Haderka [ 22/Apr/14 ]

Most likely related to difference in matching primitive array types - see https://code.google.com/p/google-guice/issues/detail?id=715

Generated at Mon Feb 12 04:07:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.