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
/** | |
* @author xsalefter ([email protected]) | |
*/ | |
public class RandomGenerator { | |
private int sizeOfQuestion; // Mean how much question want to display per user. | |
private Random random; | |
private int dataSize; // This is total amount of data in the database. | |
private StringBuffer generatedRandomNumber; | |
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
// The annotation | |
public @interface HelloMessage { | |
String value() default ""; | |
} | |
import java.lang.reflect.Field; | |
class HelloWorld { | |
@HelloMessage("hello") | |
public String message; |
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
// Result: [class com.thermetics.bug.classes.TestClass] | |
public class Program { | |
public static void main(String[] args) { | |
Set<URL> urls = new HashSet<URL>(); | |
// Change this in ur favor.. | |
urls.addAll(ClasspathHelper.forPackage("com.thermetics.bug")); | |
urls.add(ClasspathHelper.forClass(TestAnnotation.class)); | |
ConfigurationBuilder builder = new ConfigurationBuilder(). | |
addUrls(urls); |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.projectboard</groupId> | |
<artifactId>projectboard</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<name>Project Board</name> | |
<description>Project management dashboard.</description> |
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
Error 500: | |
Servlet: zkLoader | |
URI: /ecbackend/index.zul | |
Exception Message: No such property: username for class: java.lang.String | |
Caused by: No such property: username for class: java.lang.String | |
Class: GrailsAuthenticationProcessingFilter | |
At Line: [56] | |
Code Snippet: | |
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
02:36:48,693 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/notefinder].[dispatcher]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet dispatcher threw exception: org.hibernate.hql.internal.ast.QuerySyntaxException: Note is not mapped [from Note] | |
at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180) [hibernate-core-4.1.0.Final.jar:4.1.0.Final] | |
at org.hibernate.hql.internal.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:110) [hibernate-core-4.1.0.Final.jar:4.1.0.Final] | |
at org.hibernate.hql.internal.ast.tree.FromClause.addFromElement(FromClause.java:93) [hibernate-core-4.1.0.Final.jar:4.1.0.Final] | |
at org.hibernate.hql.internal.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:326) [hibernate-core-4.1.0.Final.jar:4.1.0.Final] | |
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3252) [hibernate-core-4.1.0.Final.jar:4.1.0.Final] | |
at org.hibernate.hql.i |
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
1233194 INFO [http-bio-8080-exec-2] com.telkomspeedy.partner.controller.PartnersController - partner renderer /partner/kerjasama-action | |
org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Command rejected | |
; message exception details (1) are: | |
Failed message 1: | |
com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Command rejected | |
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1829) | |
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1368) | |
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:886) | |
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416) |
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
Cannot run program "/root/src/wkhtmltopdf-amd64" (in directory "\root\tmp"): CreateProcess error=267, The directory name is invalid | |
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) | |
at com.telkomspeedy.service.impl.PdfServiceImpl.doProcessBuilder(PdfServiceImpl.java:43) | |
at com.telkomspeedy.service.impl.PdfServiceImpl.generatePdf(PdfServiceImpl.java:64) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
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
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building thucydides-core 0.8.32-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) @ thucydides-core --- | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ thucydides-core --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. |
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
------------------------------------------------------------------------------- | |
Test set: net.thucydides.core.steps.WhenRunningStepsThroughAScenarioProxy | |
------------------------------------------------------------------------------- | |
Tests run: 29, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.549 sec <<< FAILURE! | |
the_proxy_should_notify_listeners_when_tests_are_starting(net.thucydides.core.steps.WhenRunningStepsThroughAScenarioProxy) Time elapsed: 0.004 sec <<< ERROR! | |
java.io.IOException: The system cannot find the path specified | |
at java.io.WinNTFileSystem.createFileExclusively(Native Method) | |
at java.io.File.checkAndCreate(File.java:1704) | |
at java.io.File.createTempFile(File.java:1792) | |
at org.junit.rules.TemporaryFolder.newFolder(TemporaryFolder.java:81) |
OlderNewer