Recent Forum Posts
From categories:
page 1123...next »
Smitha635 (guest) 20 May 2016 07:59
in discussion Hidden / Per page discussions » Testing JPA Hibernate with Spring & DbUnit

Some genuinely prize content on this internet site, bookmarked. gfbkgkkdgcefeecf

by Smitha635 (guest), 20 May 2016 07:59
Pramod (guest) 03 Jun 2015 13:29
in discussion Hidden / Per page discussions » Testing JPA Hibernate with Spring & DbUnit

Hi,
I am new about the DBunit,
I am using DBUnit to test my existing project which build on Spring , Hibenate and Mysql
but don't have idea how to configured my DBUnit with my application test my Database.

I have tried to do this but there is lot of error.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tm.test.dao.users.LoginTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private tm.dao.user.UserMasterDAO tm.test.dao.users.LoginTest.userMasterDAO; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [tm.dao.user.UserMasterDAO] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:374)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:110)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:333)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private tm.dao.user.UserMasterDAO tm.test.dao.users.LoginTest.userMasterDAO; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [tm.dao.user.UserMasterDAO] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
… 26 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [tm.dao.user.UserMasterDAO] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
… 28 more

by Pramod (guest), 03 Jun 2015 13:29
Smithc855 (guest) 08 Sep 2014 11:26
in discussion Hidden / Per page discussions » Testing JPA Hibernate with Spring & DbUnit

I appreciate, cause I found just what I was looking for. You have ended my 4 day long hunt! God Bless you man. Have a great day. Bye kdbcegfkckagckck

by Smithc855 (guest), 08 Sep 2014 11:26
sanny (guest) 24 Apr 2013 12:33
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

Hi,

in gwt 2.5 version this class is deprecated, could you please tell me what is the equivalent class for this after deprecation. I am not able to get any concerete data from search enginees.

Please find the below code and it will be great ful if you can provide equivalent code for this in GWT 2.5

public static PagingScrollTable createScrollTable(CachedTableModel cachedTableModel, TableDefinition tableDef) {
PagingScrollTable pagingScrollTable = new PagingScrollTable(cachedTableModel, tableDef);
pagingScrollTable.setPageSize(20);
pagingScrollTable.setEmptyTableWidget(new HTML("some text"));
pagingScrollTable.getDataTable().setSelectionPolicy(SelectionPolicy.ONE_ROW);
FixedWidthGridBulkRenderer bulkRenderer = new FixedWidthGridBulkRenderer(pagingScrollTable.getDataTable(), pagingScrollTable);
pagingScrollTable.setBulkRenderer(bulkRenderer);
pagingScrollTable.setCellPadding(1);
pagingScrollTable.setCellSpacing(0);
pagingScrollTable.setResizePolicy(ScrollTable.ResizePolicy.FILL_WIDTH);
pagingScrollTable.setSortPolicy(SortPolicy.SINGLE_CELL);

return pagingScrollTable;
}

by sanny (guest), 24 Apr 2013 12:33
mikmontana (guest) 26 Oct 2012 07:51
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

I'm trying to implement this example in my app but when i compile the project i have this error:

Compiling module com.myapp.security.GwtSpringSecurityProject
Validating newly compiled units
Ignored 2 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Scanning for additional dependencies: jar:file:/C:/_work/Eclipse/MyApp/war/WEB-INF/lib/gwt-incubator-20101117-r1766.jar!/com/google/gwt/gen2/table/client/AbstractScrollTable.java
Computing all possible rebind results for 'com.google.gwt.gen2.table.client.AbstractScrollTable.Impl'
Rebinding com.google.gwt.gen2.table.client.AbstractScrollTable.Impl
Could not find an exact match rule. Using 'closest' rule <replace-with class='com.google.gwt.gen2.table.client.AbstractScrollTable.ImplIE6'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding
Scanning for additional dependencies: jar:file:/C:/_work/Eclipse/MyApp/war/WEB-INF/lib/gwt-incubator-20101117-r1766.jar!/com/google/gwt/gen2/table/client/FixedWidthTableImpl.java
Computing all possible rebind results for 'com.google.gwt.gen2.table.client.FixedWidthTableImpl.Impl'
Rebinding com.google.gwt.gen2.table.client.FixedWidthTableImpl.Impl
Could not find an exact match rule. Using 'closest' rule <replace-with class='com.google.gwt.gen2.table.client.FixedWidthTableImpl.ImplIE8'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding
[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
at com.google.gwt.dev.jjs.impl.TypeMap.internalGet(TypeMap.java:242)
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:138)
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:1144)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:577)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:603)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatement(GenerateJavaAST.java:1771)
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:577)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:638)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatements(GenerateJavaAST.java:1846)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processMethod(GenerateJavaAST.java:1513)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processType(GenerateJavaAST.java:501)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java:2958)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:608)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[ERROR] <no source info>: public abstract class java.text.DateFormat
extends java.text.Format
/* fields */
protected [unresolved] Unresolved type java.util.Calendar calendar
protected [unresolved] Unresolved type java.text.NumberFormat numberFormat
public static final [unresolved] int ERA_FIELD
public static final [unresolved] int YEAR_FIELD
public static final [unresolved] int MONTH_FIELD
public static final [unresolved] int DATE_FIELD
public static final [unresolved] int HOUR_OF_DAY1_FIELD
public static final [unresolved] int HOUR_OF_DAY0_FIELD
public static final [unresolved] int MINUTE_FIELD
public static final [unresolved] int SECOND_FIELD
public static final [unresolved] int MILLISECOND_FIELD
public static final [unresolved] int DAY_OF_WEEK_FIELD
public static final [unresolved] int DAY_OF_YEAR_FIELD
public static final [unresolved] int DAY_OF_WEEK_IN_MONTH_FIELD
public static final [unresolved] int WEEK_OF_YEAR_FIELD
public static final [unresolved] int WEEK_OF_MONTH_FIELD
public static final [unresolved] int AM_PM_FIELD
public static final [unresolved] int HOUR1_FIELD
public static final [unresolved] int HOUR0_FIELD
public static final [unresolved] int TIMEZONE_FIELD
private static final [unresolved] long serialVersionUID
public static final [unresolved] int FULL
public static final [unresolved] int LONG
public static final [unresolved] int MEDIUM
public static final [unresolved] int SHORT
public static final [unresolved] int DEFAULT
/* methods */
[unresolved] protected void <init>()
[unresolved] public java.lang.Object clone()
[unresolved] public boolean equals(java.lang.Object)
public final java.lang.String format(java.util.Date)
public final java.lang.StringBuffer format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)
public abstract java.lang.StringBuffer format(java.util.Date, java.lang.StringBuffer, java.text.FieldPosition)
[unresolved] private static java.text.DateFormat get(int, int, int, Unresolved type java.util.Locale)
[unresolved] public static Unresolved type java.util.Locale[] getAvailableLocales()
[unresolved] public Unresolved type java.util.Calendar getCalendar()
[unresolved] public static final java.text.DateFormat getDateInstance()
[unresolved] public static final java.text.DateFormat getDateInstance(int)
[unresolved] public static final java.text.DateFormat getDateInstance(int, Unresolved type java.util.Locale)
[unresolved] public static final java.text.DateFormat getDateTimeInstance()
[unresolved] public static final java.text.DateFormat getDateTimeInstance(int, int)
[unresolved] public static final java.text.DateFormat getDateTimeInstance(int, int, Unresolved type java.util.Locale)
[unresolved] public static final java.text.DateFormat getInstance()
[unresolved] public Unresolved type java.text.NumberFormat getNumberFormat()
[unresolved] public static final java.text.DateFormat getTimeInstance()
[unresolved] public static final java.text.DateFormat getTimeInstance(int)
[unresolved] public static final java.text.DateFormat getTimeInstance(int, Unresolved type java.util.Locale)
[unresolved] public Unresolved type java.util.TimeZone getTimeZone()
[unresolved] public int hashCode()
[unresolved] public boolean isLenient()
[unresolved] public java.util.Date parse(java.lang.String) throws java.text.ParseException
[unresolved] public abstract java.util.Date parse(java.lang.String, Unresolved type java.text.ParsePosition)
[unresolved] public java.lang.Object parseObject(java.lang.String, Unresolved type java.text.ParsePosition)
[unresolved] public void setCalendar(Unresolved type java.util.Calendar)
[unresolved] public void setLenient(boolean)
[unresolved] public void setNumberFormat(Unresolved type java.text.NumberFormat)
[unresolved] public void setTimeZone(Unresolved type java.util.TimeZone)
/* members */
Unresolved type java.text.DateFormat$DateFormatGetter
Unresolved type java.text.DateFormat$Field

org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
[ERROR] at PsTable.java(351): new SimpleDateFormat("MM/dd/yyyy").format(rowValue.getDate())
org.eclipse.jdt.internal.compiler.ast.MessageSend
[ERROR] at PsTable.java(351): return new SimpleDateFormat("MM/dd/yyyy").format(rowValue.getDate());
org.eclipse.jdt.internal.compiler.ast.ReturnStatement
[ERROR] at PsTable.java(350): public String getCellValue(Message rowValue);

com.google.gwt.dev.jjs.ast.JMethod
[ERROR] at PsTable.java(348): final class PsTable$DateColumnDefinition extends AbstractColumnDefinition
com.google.gwt.dev.jjs.ast.JClassType

by mikmontana (guest), 26 Oct 2012 07:51
Cubert (guest) 15 Jul 2012 12:41
in discussion Hidden / Per page discussions » Testing JPA Hibernate with Spring & DbUnit

Nice, clean and cool solution :-)
Thanks for sharing!

by Cubert (guest), 15 Jul 2012 12:41
Kiran (guest) 02 Mar 2012 12:07
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

How can I add Widget in the Scroll table?

by Kiran (guest), 02 Mar 2012 12:07
Kiran (guest) 02 Mar 2012 12:06
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

Is it possible to assign Widget (like HorizontalPanel, InlineHyperlink) to cell element?
I mean, how can I add Widget in the 1 on the column of the table?

by Kiran (guest), 02 Mar 2012 12:06

@zeratus — not the same thing. my code required different urls for different entry points. url rewrite isn't required if you have a single entry point, but it is if you have mutliple. in any event, i wrote this post back in 2009 when i was building a GWT app. GWT has gone through several major releases since then. not sure what has changed.

by zenoconsultingzenoconsulting, 31 Aug 2011 13:06

Gwt has an option in gwt.xml files to rename the module:
<module rename-to="somethingElse">
This way you can avoid having the whole package name in the path. So I don't think you need the URL rewriting ;)

by zeratus (guest), 31 Aug 2011 09:33
GWTnovice (guest) 03 Aug 2011 23:18
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

Can you please post your source code for retrieving the paged data via RPC? I am having troubling figuring out exactly how to hook that up….

by GWTnovice (guest), 03 Aug 2011 23:18
Sridhar (guest) 25 Apr 2011 09:02
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

I can't view the table properly in IE7. The rendering is all over the place. Has anyone else observed the same?

Thanks!

by Sridhar (guest), 25 Apr 2011 09:02
Sridhar (guest) 25 Apr 2011 08:52
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

Hi, is there any way to find out the column index of the clicked cell?
As a poster above was saying, there is only a RowSelectionHandler but no equivalent support for columns.

Thanks in advance!

by Sridhar (guest), 25 Apr 2011 08:52

Welcome to cross-browser CSS incompatibilities. If you end up resolving it, let the group here know!

by zenoconsultingzenoconsulting, 15 Apr 2011 14:05
fermierul (guest) 15 Apr 2011 13:56
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

I realized that empty-cells: show; is working on Firefox 4, but not working on IE8

by fermierul (guest), 15 Apr 2011 13:56
fermierul (guest) 15 Apr 2011 08:31
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

I found an workaround for the first issue.
I added:
empty-cells: show;
in PagingScrollTable.css:

.gwt-ScrollTable .dataTable td,
.gwt-ScrollTable .headerTable td,
.gwt-ScrollTable .footerTable td {
border-color: #aaa;
border-style: solid;
border-width: 0px 1px 1px 0px;
white-space: nowrap;
overflow: hidden;
empty-cells: show;
}

by fermierul (guest), 15 Apr 2011 08:31
fermierul (guest) 14 Apr 2011 12:29
in discussion Hidden / Per page discussions » GWT Paging Scroll Table

I have two issues.
First, if a cell value is null, the cell is displayed without borders. The workaround was to replace the null value with &nbsp which was translated to empty space, but the cell still had borders. After I upgraded gwt2.0 to 2.2 and gwt-incubator 2009.. to 2010, the workaround does not work any more. The &nbsp is not translated as space, but shown as it is written. I tried with the escaped version too (&#160;) but no change.

Second, the column's text is aligned to the left by default. For an amount field, I would prefer align to right. Any idea how to do that?
Thanks

by fermierul (guest), 14 Apr 2011 12:29

Thanks Ron / c.scotti for providing updates — much appreciated!

Thanks by zenoconsultingzenoconsulting, 30 Mar 2011 21:35

That startup script doesn't work in 11.2.0.1.0. This does:

# It relies on the information on /etc/oratab

export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/11g
export ORACLE_OWNR=oracle
export PATH=$PATH:$ORACLE_HOME/bin

if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ]
then
   echo "Oracle startup: cannot start"
   exit 1
fi

case "$1" in
   start)
       # Oracle listener and instance startup
       echo -n "Starting Oracle: "
       su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
       touch /var/lock/oracle
       echo "OK"
       ;;
   stop)
       # Oracle listener and instance shutdown
       echo -n "Shutdown Oracle: "
       su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME"
       rm -f /var/lock/oracle
       echo "OK"
       ;;
   reload|restart)
       $0 stop
       $0 start
       ;;
   *)
       echo "Usage: `basename $0` start|stop|restart|reload"
       exit 1
esac

exit 0
by Ron (guest), 30 Mar 2011 21:01
digestit (guest) 07 Mar 2011 11:22
in discussion Hidden / Per page discussions » Maven Hacks

Thank you for contributing your ideas with us . keep on sharing :)

by digestit (guest), 07 Mar 2011 11:22
page 1123...next »
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License