This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi64-1.8 in java.library.path, no jansi-1.8 in java.library.path, no jansi in java.library.path, Native Library C:\Users\karkil\AppData\Local\Temp\jansi-64-1.8.dll already loaded in another classloader] | |
at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:184) | |
at org.fusesource.hawtjni.runtime.Library.load(Library.java:142) | |
at org.fusesource.jansi.internal.Kernel32.<clinit>(Kernel32.java:37) | |
at org.fusesource.jansi.WindowsAnsiOutputStream.<clinit>(WindowsAnsiOutputStream.java:52) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:525) | |
at org.apache.logging.log4j.core.appender.ConsoleAppender.getOutputStream(ConsoleAppender.java:128) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEVERE: CDI Beans module deployment failed | |
javax.enterprise.event.ObserverException: Caught Exception while handling event object with type : org.apache.webbeans.portable.events.generic | |
s.GProcessAnnotatedType | |
at org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:500) | |
at org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:446) | |
at org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:426) | |
at org.apache.webbeans.util.WebBeansUtil.fireProcessAnnotatedTypeEvent(WebBeansUtil.java:1188) | |
at org.apache.webbeans.config.BeansDeployer.deploySingleAnnotatedType(BeansDeployer.java:616) | |
at org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:566) | |
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:188) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UnitSelection { | |
private Unit selectedUnit; | |
private List<Unit> units; | |
private boolean renderSelection; | |
public UnitSelection(List<Unit> units) { | |
this.units = units; | |
validateNotEmpty(); | |
setupPreselectedAndRenderSelection(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package se.raindance.mp.export.job; | |
import java.util.Locale; | |
public class Atm { | |
public static final String INSERT_PIN_RESPONSE = "Enter pincode"; | |
public static final String CHANGE_LANGUAGE = "Change Language"; | |
public static final String ENGLISH_GREETING = "Hello!"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PreDestroy | |
private void cleanup() { | |
StringBuilder cookieValue = new StringBuilder(); | |
for (Entry<Integer, AtomicInteger> entry : locationCount.entrySet()) { | |
cookieValue.append(entry.getKey() + ":" + entry.getValue() + ","); | |
} | |
HttpServletResponse response = (HttpServletResponse) externalContext.getResponse(); | |
Cookie cookie = new Cookie(String.valueOf(session.getUsername().hashCode()), cookieValue.toString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files\Java\jdk1.7.0_15\bin\java" -ea -Didea.launcher.port=7545 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.3\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.3\plugins\junit\lib\junit-rt.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\jfxrt.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_15\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MessageProducer { | |
@Resource | |
private ConnectionFactory connectionFactory; | |
@Resource(name = "queue") | |
private Queue answerQueue; | |
public void sendMessage(String text) throws JMSException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@MessageDriven(activationConfig = { | |
@ActivationConfigProperty( | |
propertyName = "destinationType", | |
propertyValue = "javax.jms.Queue"), | |
@ActivationConfigProperty( | |
propertyName = "destination", | |
propertyValue = "queue") | |
}) | |
public class MsgDriven implements MessageListener { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void execute(JobExecutionContext context) throws JobExecutionException { | |
log.debug("{}, is executing", this.getClass().getSimpleName()); | |
try { | |
DependentProvider<ContextControl> ctx = CDIUtil.startContext(ApplicationScoped.class); | |
// do work | |
ctx.destroy(); | |
} catch (Exception e) { | |
// log properly | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static DependentProvider<ContextControl> startContext(Class<? extends Annotation> scope) { | |
DependentProvider<ContextControl> dependentProvider = BeanProvider.getDependent(ContextControl.class); | |
ContextControl ctxCtrl = dependentProvider.get(); | |
ctxCtrl.startContext(scope); | |
return dependentProvider; | |
} |
NewerOlder