Quantcast
Channel: User Kunal - Stack Overflow
Browsing index pages (34 articles)
↧

Ambiguous because multiple kinds of members with this name exist in interface

this is the Interface:Namespace IBasBS100 Public Interface IBasBSMoedas <DispId(0)> <Obsolete("This method is obsolete. Use Actualiza(BasBE100.BasBEMoeda objMoeda, ref string strAvisos)...

View Article


How to deploy workflow to openkm?

I have installed jbpm 6.3 and have a "hello world" workflow project to deploy to my openkm.I can't find a "deployment tab" anywhere neither could i find an option to export .par file.Can anyone help...

View Article


Kendo Grid MVC - Server Export Excel datetime field (custom format)

The datetime field is being exported as an number, but if i change the cell to datetime type in excel than it gets the correct values.All of the server export is functional except the date format.Since...

View Article

Answer by Kunal for Kendo Grid MVC - Server Export Excel datetime field...

I solved it by adding:NumberFormat = "yyyy/MM/dd h:mm"format = new SpreadCellFormat { ForeColor = isHeader ? SpreadThemableColor.FromRgb(216, 184, 168) : SpreadThemableColor.FromRgb(0, 0, 0),...

View Article

Could not open Hibernate Session for transaction on First Login

I have a full operating Spring MVC Application running with Spring Security but I get the following error whenever the server hasn't been active in a while and someone tries to login:HTTP Status 500 -...

View Article


Spring MVC Login Programmatically: No qualifying bean of type...

I have a Spring Application with spring security and it all works great. When I try to login the user upon registration I can't get it to work...I have searched a lot and discovered that my principal...

View Article

SpringMvc RequestBody getting headers

I am using SpringMVC and this is my POST method:RequestMapping(value = "/test/handler", method = RequestMethod.POST, headers = {"Content-type=application/json"}) public String getOpen(@RequestBody...

View Article

Integrate Spring Socials (Facebook) with Spring MVC XML Based

I have a working spring mvc webapp and it is xml based so i have to use the same procedures and not "pure java configs".I'm trying to integrate facebook sign in to my app and i have tried to follow...

View Article


Linq - group and get list of objects

I have a list of L_CabecDocumento and each one of them has a L_CabecJob.I want to get all unique L_CabecJob from each and every L_CabecDocumento (i have a Where condition).The problem is that i can't...

View Article


Spring MVC Access Service class from a Cron Method annotated with @Scheduled

I have a working cron method but it gives me a null java.lang.NullPointerException on my service class:public class CronTask { private JpassatemposService jpassatemposService; @Autowired(required=true)...

View Article

Get Hibernate Initialized object in JSP

I have a list of objects (Jpassatempos) and i'm tring to initialize them Session session = this.sessionFactory.getCurrentSession(); List<Jpassatempos> list = (List<Jpassatempos>)...

View Article

Secure uploaded files on build SpringMVC

I have a SpringMVC WebApp and it has file upload system. The problem is that whenever i rebuild the project all of the files in myproject/src/main/webapp/resources/uploads disappear.Any idea on what i...

View Article

Wordpress get_the_content_feed with paginated posts

I have a wordpress site and i have been working on it's feed.I noticed that when a post has been paginated with , it only renders the first page of the post.What i need to do is get all the content of...

View Article


Parse mysql datetime to c# DateTime [duplicate]

I have a MySql DateTime 1442915520000 and i need to parse it using C#.I have tried the following:DateTime dt = Convert.ToDateTime(dataFim);DateTime dt = DateTime.Parse(i[0]["dataFim"].ToString());Any...

View Article

How to add WebServices Server to SpringMVC?

I have a Spring MVC WebApp and it is working perfectly, now i want it to have a soap WebService server.I tried adding a new class of type Web Service (runtime apache axis2).this is the content:public...

View Article


Java Web Application connect to MYSQL and SQL SERVER

I have a SpringMvc Web App running perfectly on a tomcat server alongside MySql.What i need to do is that i need to store some data to another database on a SQL Server in another hosting.So i am...

View Article

Hibernate Select SubQuery

I have the following hql query:JgrelhasListBack = session.createQuery("from Jgrelhas where jtabuleiros.id=? and id<? order by id desc").setParameter(0, tabuleiroId).setParameter(1,...

View Article


Hibernate- Sql query cast object

I have Spring MVC Application alongside hibernate. I can cast hql queries to object but the same doesn't apply to SQL. I have the following query to cast to Jpassatempos Object:List<Jpassatempos>...

View Article

Answer by Kunal for Could not open Hibernate Session for transaction on First...

The answer is on my edit that was to add the following in my beans that have the connection data:<!-- Configuration pool --><property name="validationQuery" value="SELECT 1" /><property...

View Article

Answer by Kunal for Get Hibernate Initialized object in JSP

Thanks everyone for your time and patience the solution was simple.The problem was that i was getting 2 different errors and one of them was that i wasn't initializing JpatrocinadoresPassatempos...

View Article
Browsing index pages (34 articles)


Latest Images