0
Fixed

IzPack compilation ERROR

Nguyen Hai 5 years ago updated by Karishma 6 months ago 8
Hi team,

I 'm trying to get work the mycollab_release_5.0.7 in my windows 7 32 bits with a sun oracle JDK 1.8 with IntelliJ IDEA 14.1,by kindly fulfiling the community developpement guide i 'm stuged on the complitation process ,this is my issue

[ERROR] Failed to execute goal org.codehaus.izpack:izpack-maven-plugin:1.0-alpha-5:izpack (default) on project mycollab-app-community: IzPack compilation ERROR: D:\project\mycollab\mycollab-Release_5.0.7\mycollab-app-community\target\staging\install.xml:62: D:\project\mycollab\mycollab-Release_5.0.7\mycollab-app-community\target\staging\logs -> [Help 1]

I wonder if am 'i messing somthing in my project configuration?

Thank you in advence,

Samir

Under review
The problem may be caused by windows can not create an empty folder (MacOS or Unix does not have such issue). Could you try to get the latest source and confirm whether the issue has gone? Thank you

Hai Nguyen
Hi,
Thank you for your reactivity, in did after chekouting the last version from github the build go smoothlly,but i encontred some kind of issue after lunching the CommunityServerRunner main in intelligIDEA

Error:Abnormal build process termination: Build process started. Classpath: /C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 14.1.3/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_20/lib/tools.jar;/C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 14.1.3/lib/optimizedFileManager.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 14.1.3/lib/ecj-4.4.jar
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jetbrains.jps.cmdline.Launcher.main(Launcher.java:58)
Caused by: java.lang.NoClassDefFoundError: sun/nio/ch/ExtendedSocketOption
at sun.nio.ch.SocketChannelImpl$DefaultOptionsHolder.defaultOptions(SocketChannelImpl.java:240)
at sun.nio.ch.SocketChannelImpl$DefaultOptionsHolder.<clinit>(SocketChannelImpl.java:228)
at sun.nio.ch.SocketChannelImpl.supportedOptions(SocketChannelImpl.java:250)
at sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:169)
at sun.nio.ch.SocketAdaptor.setBooleanOption(SocketAdaptor.java:271)
at sun.nio.ch.SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:306)
at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:132)
at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:125)
at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:119)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:97)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:31)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:77)
at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:50)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:72)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:58)


Any help please, have you ever see this kind of probleme in your environement?

Thank you in advence.

Samir

Hi Samir,

It seems you did not include rt.jar in your classpath. If you did not do anything manually in configuring JRE in Jetbrains then it seems your JRE is broken. Let try to re-install JRE and see if this problem still be persisted.

Hai Nguyen

Can Anyone help me ? I am getting this kind of error while compiling install.xml



.:: IzPack - Version 5.0.6 ::.


< compiler specifications version: 5.0 >

- Copyright (c) 2001-2010 Julien Ponge and others. All Rights Reserved.

- Visit http://izpack.org/ for the latest releases

- Released under the terms of the Apache Software License version 2.0.
-> Processing : install.xml
-> Output : install.jar
-> Base path : .
-> Kind : standard
-> Compression : default
-> Compr. level: -1
-> IzPack home : c:\Program Files\IzPack\bin\..

Nov 29, 2015 10:13:50 AM com.izforge.izpack.core.container.PlatformProvider prov
ide
INFO: Detected platform: windows,version=6.1,arch=x86,symbolicName=WINDOWS_7,jav
aVersion=1.8.0_45
-> Fatal error :
org.picocontainer.PicoCompositionException: java.lang.reflect.InvocationTarge
tException
com.izforge.izpack.api.exception.ContainerException: org.picocontainer.PicoCompo
sitionException: java.lang.reflect.InvocationTargetException
at com.izforge.izpack.core.container.AbstractContainer.getComponent(Abst
ractContainer.java:135)
at com.izforge.izpack.core.factory.DefaultObjectFactory.create(DefaultOb
jectFactory.java:74)
at com.izforge.izpack.core.factory.DefaultObjectFactory.create(DefaultOb
jectFactory.java:102)
at com.izforge.izpack.compiler.CompilerConfig.loadPackagingInformation(C
ompilerConfig.java:422)
at com.izforge.izpack.compiler.CompilerConfig.executeCompiler(CompilerCo
nfig.java:322)
at com.izforge.izpack.compiler.bootstrap.CompilerLauncher.main(CompilerL
auncher.java:52)
Caused by: org.picocontainer.PicoCompositionException: java.lang.reflect.Invocat
ionTargetException
at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjecto
r.java:154)
at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.
java:37)
at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:
125)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDepende
ncyGuard.observe(AbstractInjector.java:272)
at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(
MethodInjector.java:132)
at org.picocontainer.injectors.CompositeInjector.decorateComponentInstan
ce(CompositeInjector.java:58)
at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142)
at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(Prov
iderAdapter.java:96)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(Abs
tractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:9
1)
at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContain
er.java:692)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:646)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:621)
at org.picocontainer.containers.ImmutablePicoContainer.getComponent(Immu
tablePicoContainer.java:40)
at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContain
er.java:711)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:646)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:632)
at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstanc
e(BasicComponentParameter.java:105)
at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(Com
ponentParameter.java:136)
at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleM
emberInjector.java:75)
at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getPa
rameterArguments(ConstructorInjector.java:315)
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInje
ctor.java:341)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDepende
ncyGuard.observe(AbstractInjector.java:272)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(
ConstructorInjector.java:370)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(Abs
tractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:9
1)
at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContain
er.java:692)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:646)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContai
ner.java:671)
at com.izforge.izpack.core.container.AbstractContainer.getComponent(Abst
ractContainer.java:131)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjecto
r.java:141)

(tip : use -? to get the commmand line parameters)
c:\Program Files\IzPack\bin>

Hi Ace,

Did you create an installer for MyCollab? If you want to create an installer for MyCollab then this link would be help https://community.mycollab.com/create-an-installer-by-yourself/

It seems you use Izpack directly not ant or maven, the cause may come from your input parameters are not correct


Hai

it seems so.. no worries though, now i have figured a way to create installshield with inno setup and exe with launch4j its easy...

hi

severe :com.izforge.izpack.api.exception.izpackexception:java.lang.rrflect.invocationtargetexception how to remove this