cannot conenct to report builder 2.0 - sql-server-2008

I work with sql server 2008
When I click the report builder button in report manager.a box shows up "Cannot extract application .Authentification error"
Error details
* [23/04/2012 09:27:59] System.Deployment.Application.DeploymentDownloadException (sous-type inconnu)
- Échec du téléchargement de http://admin-pc/ReportServer/ReportB...er.application.
- Source*: System.Deployment
- Trace de la pile*:
à System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
à System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
à System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
à System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
à System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
à System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
à System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
à System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Exception interne ---
System.Net.WebException
- Le serveur distant a retourné une erreur*: (401) Non autorisé.
- Source*: System
- Trace de la pile*:
à System.Net.HttpWebRequest.GetResponse()
à System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
When I ran the application from the its directory
C:\Program Files\Microsoft SQL Server\MSRS10.MSSQL2008\Reporting Services\ReportServer\ReportBuilder
It works fine but cannot connect to report server

the call is made from the user configured to run SSRS. Does it have permission to do it? If the SSRS server is on you local computer, try setting your user to run it and then test again

Related

'flutter' doesnt recognize as a name in cmdlet

im following a tutorial of flutter about using json and serialization.
Im trying to execute a command in the terminal in a flutter proyect in vscode,
this is the class
import 'package:json_annotation/json_annotation.dart';
part 'mensaje.g.dart';
#JsonSerializable()
class Mensaje{
final String subject;
final String body;
Mensaje(this.subject,this.body);
Mensaje.fromJson(Map<String, dynamic> json):
subject=json['subject'],
body=json['body'];
}
I first add the dependecies in pubspec.yaml:
dev_dependencies:
build_runner:
json_serializable:
then i try to execute in the terminal in vscode this line:
flutter packages pub run build_runner build
and the error:
(flutter its not recognize as a cmdlet name or function... )
flutter : El término 'flutter' no se reconoce como nombre de un cmdlet, función,
archivo de script o programa ejecutable. Compruebe si escribió correctamente el
nombre o, si incluyó una ruta de acceso, compruebe que dicha ruta es correcta e
inténtelo de nuevo.
En línea: 1 Carácter: 1
+ flutter packages pub run build_runner build
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (flutter:String) [], CommandNotFoundEx
ception
+ FullyQualifiedErrorId : CommandNotFoundException
It seems that you need to add your Flutter SDK path to the environment variable (e.g. C:\src\flutter) for windows. Also you can follow the Flutter documentation for proper installation on different OS:
Windows
macOS
linux
Chrome OS
If this is not the case, you can try to restart your VSCode application.

Can't view SSRS report manager and report generation failed

in our production client environment ,the report manager show this message when we try to access to the site :
An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. (rsReportServerDatabaseError)"
the database storage is enough and i can connect to the instance
ReportServer Log Trace:
appdomainmanager!DefaultDomain!1b18!10/31/2019-22:18:10:: i INFO: Appdomain:3 ReportManager_IFCLPROD_0-1-132170302898216319 started.
appdomainmanager!ReportManager_0-1!1b18!10/31/2019-22:18:12:: i INFO: RS authentication mode is 4; effective ASP.NET authentication mode is Windows. vdir=/Reports_IFCLPROD.
appdomainmanager!DefaultDomain!1b18!10/31/2019-22:18:12:: i INFO: Appdomain:3 ReportManager_IFCLPROD_0-1-132170302898216319 initialized (#1).
library!ReportManager_0-1!1b18!10/31/2019-22:18:13:: i INFO: SQLDump flags: ReferencedMemory, AllThreads, SendToWatson
library!ReportManager_0-1!1b18!10/31/2019-22:18:13:: i INFO: MiniDump flags: DataSegs, UnloadedModules, ProcessThreadData
library!ReportManager_0-1!1b18!10/31/2019-22:18:13:: i INFO: Dump on: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException,Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException
library!ReportManager_0-1!1b18!10/31/2019-22:18:13:: i INFO: Do not dump on: System.Threading.ThreadAbortException,System.Web.UI.ViewStateException,System.OutOfMemoryException,System.Web.HttpException,System.IO.IOException,System.IO.FileLoadException,Microsoft.SharePoint.SPException,Microsoft.ReportingServices.WmiProvider.WMIProviderException
library!ReportManager_0-1!1b18!10/31/2019-22:18:13:: i INFO: Minidump location: E:\BD_SqlServer\Prod\MSRS11.IFCLPROD\Reporting Services\Logfiles
ui!ReportManager_0-1!1b18!10/31/2019-22:18:13:: i INFO: Registering with Software Usage Metrics Product:SQL Server 2012, Role:Microsoft SQL Server Reporting Services, RoleGuid:8cc0ac85-40f7-4886-9dab-021519800418
ui!ReportManager_0-1!1b18!10/31/2019-22:18:13:: e ERROR: Software Usage Metrics initialize failed
appdomainmanager!DefaultDomain!18d4!10/31/2019-22:18:17:: i INFO: Appdomain:4 ReportServer_IFCLPROD_0-2-132170302970483545 started.
appdomainmanager!ReportServer_0-2!18d4!10/31/2019-22:18:19:: i INFO: RS authentication mode is 4; effective ASP.NET authentication mode is Windows. vdir=/ReportServer_IFCLPROD.
appdomainmanager!DefaultDomain!18d4!10/31/2019-22:18:19:: i INFO: Appdomain:4 ReportServer_IFCLPROD_0-2-132170302970483545 initialized (#1).
webserver!ReportServer_0-2!18d4!10/31/2019-22:18:25:: i INFO: Reporting Web Server started
library!ReportServer_0-2!18d4!10/31/2019-22:18:25:: i INFO: SQLDump flags: ReferencedMemory, AllThreads, SendToWatson
library!ReportServer_0-2!18d4!10/31/2019-22:18:25:: i INFO: MiniDump flags: DataSegs, UnloadedModules, ProcessThreadData
library!ReportServer_0-2!18d4!10/31/2019-22:18:25:: i INFO: Dump on: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException,Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException
library!ReportServer_0-2!18d4!10/31/2019-22:18:25:: i INFO: Do not dump on: System.Threading.ThreadAbortException,System.Web.UI.ViewStateException,System.OutOfMemoryException,System.Web.HttpException,System.IO.IOException,System.IO.FileLoadException,Microsoft.SharePoint.SPException,Microsoft.ReportingServices.WmiProvider.WMIProviderException
library!ReportServer_0-2!18d4!10/31/2019-22:18:25:: i INFO: Minidump location: E:\BD_SqlServer\Prod\MSRS11.IFCLPROD\Reporting Services\Logfiles
resourceutilities!ReportServer_0-2!18d4!10/31/2019-22:18:25:: i INFO: Reporting Services starting SKU: Enterprise
ui!ReportServer_0-2!18d4!10/31/2019-22:18:25:: i INFO: Software Usage Metrics not enabled for Enterprise edition
library!ReportServer_0-2!d64!10/31/2019-22:18:28:: i INFO: Call to GetPermissionsAction(/).
library!ReportServer_0-2!d64!10/31/2019-22:18:28:: i INFO: Catalog SQL Server Edition = Enterprise
crypto!ReportServer_0-2!d64!10/31/2019-22:18:29:: i INFO: Initializing crypto as user: Host\_sqladmin
crypto!ReportServer_0-2!d64!10/31/2019-22:18:29:: i INFO: Exporting public key
crypto!ReportServer_0-2!d64!10/31/2019-22:18:29:: i INFO: Performing sku validation
crypto!ReportServer_0-2!d64!10/31/2019-22:18:29:: i INFO: Importing existing encryption key
library!ReportServer_0-2!1d10!10/31/2019-22:18:29:: i INFO: Call to GetPropertiesAction(/, PathBased).
library!ReportServer_0-2!1804!10/31/2019-22:19:32:: i INFO: Call to GetPropertiesAction(/, PathBased).
library!ReportServer_0-2!123c!10/31/2019-22:20:36:: i INFO: Call to GetSystemPermissionsAction().
library!ReportServer_0-2!1804!10/31/2019-22:20:36:: i INFO: Call to ListChildrenAction(/, False).
library!ReportServer_0-2!1804!10/31/2019-22:23:11:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , Une erreur s'est produite dans la base de données du serveur de rapports. Cela peut être dû à un échec de connexion, un délai d'attente ou une insuffisance de l'espace disque au sein de la base de données.;
library!ReportServer_0-2!1804!10/31/2019-22:23:11:: e ERROR: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: Une erreur s'est produite dans la base de données du serveur de rapports. Cela peut être dû à un échec de connexion, un délai d'attente ou une insuffisance de l'espace disque au sein de la base de données. ---> System.Data.SqlClient.SqlException: Expiration du délai d'attente. Le délai d'attente s'est écoulé avant la fin de l'opération ou le serveur ne répond pas.
ui!ReportManager_0-1!18dc!10/31/2019-22:23:11:: e ERROR: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Une erreur s'est produite dans la base de données du serveur de rapports. Cela peut être dû à un échec de connexion, un délai d'attente ou une insuffisance de l'espace disque au sein de la base de données. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: Une erreur s'est produite dans la base de données du serveur de rapports. Cela peut être dû à un échec de connexion, un délai d'attente ou une insuffisance de l'espace disque au sein de la base de données. ---> System.Data.SqlClient.SqlException: Expiration du délai d'attente. Le délai d'attente s'est écoulé avant la fin de l'opération ou le serveur ne répond pas.
à Microsoft.ReportingServices.Library.ReportingService2005Impl.ListChildren(String Item, Boolean Recursive, CatalogItemList& CatalogItems)
à Microsoft.ReportingServices.WebServer.ReportingService2010.ListChildren(String ItemPath, Boolean Recursive, CatalogItem[]& CatalogItems)
à Microsoft.ReportingServices.UI.FolderItems.LoadItems()
à Microsoft.ReportingServices.UI.SortableItems.Control_Init(Object sender, EventArgs args)
à System.EventHandler.Invoke(Object sender, EventArgs e)
à System.Web.UI.Control.OnInit(EventArgs e)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.AddedControl(Control control, Int32 index)
à Microsoft.ReportingServices.UI.FolderContentsPageCtrl.Control_Init(Object sender, EventArgs args)
à System.EventHandler.Invoke(Object sender, EventArgs e)
à System.Web.UI.Control.OnInit(EventArgs e)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.AddedControl(Control control, Int32 index)
à Microsoft.ReportingServices.UI.SharedArea.Control_Init(Object sender, EventArgs args)
à System.EventHandler.Invoke(Object sender, EventArgs e)
à System.Web.UI.Control.OnInit(EventArgs e)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.AddedControl(Control control, Int32 index)
à Microsoft.ReportingServices.UI.FolderPage.Page_Init(Object sender, EventArgs e)
à System.EventHandler.Invoke(Object sender, EventArgs e)
à System.Web.UI.Control.OnInit(EventArgs e)
à System.Web.UI.Page.OnInit(EventArgs e)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
ui!ReportManager_0-1!18dc!10/31/2019-22:23:11:: e ERROR: HTTP status code --> 200
-------Details--------
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Une erreur s'est produite dans la base de données du serveur de rapports. Cela peut être dû à un échec de connexion, un délai d'attente ou une insuffisance de l'espace disque au sein de la base de données. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: Une erreur s'est produite dans la base de données du serveur de rapports. Cela peut être dû à un échec de connexion, un délai d'attente ou une insuffisance de l'espace disque au sein de la base de données. ---> System.Data.SqlClient.SqlException: Expiration du délai d'attente. Le délai d'attente s'est écoulé avant la fin de l'opération ou le serveur ne répond pas.
à Microsoft.ReportingServices.Library.ReportingService2005Impl.ListChildren(String Item, Boolean Recursive, CatalogItemList& CatalogItems)
à Microsoft.ReportingServices.WebServer.ReportingService2010.ListChildren(String ItemPath, Boolean Recursive, CatalogItem[]& CatalogItems)
à Microsoft.ReportingServices.UI.FolderItems.LoadItems()
à Microsoft.ReportingServices.UI.SortableItems.Control_Init(Object sender, EventArgs args)
à System.EventHandler.Invoke(Object sender, EventArgs e)
à System.Web.UI.Control.OnInit(EventArgs e)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.AddedControl(Control control, Int32 index)
à Microsoft.ReportingServices.UI.FolderContentsPageCtrl.Control_Init(Object sender, EventArgs args)
à System.EventHandler.Invoke(Object sender, EventArgs e)
à System.Web.UI.Control.OnInit(EventArgs e)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.AddedControl(Control control, Int32 index)
à Microsoft.ReportingServices.UI.SharedArea.Control_Init(Object sender, EventArgs args)
à System.EventHandler.Invoke(Object sender, EventArgs e)
à System.Web.UI.Control.OnInit(EventArgs e)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Control.AddedControl(Control control, Int32 index)
à Microsoft.ReportingServices.UI.FolderPage.Page_Init(Object sender, EventArgs e)
à System.EventHandler.Invoke(Object sender, EventArgs e)
à System.Web.UI.Control.OnInit(EventArgs e)
à System.Web.UI.Page.OnInit(EventArgs e)
à System.Web.UI.Control.InitRecursive(Control namingContainer)
à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
library!ReportServer_0-2!123c!10/31/2019-22:23:11:: i INFO: Call to GetSystemPropertiesAction().
ui!ReportManager_0-1!18dc!10/31/2019-22:23:11:: e ERROR: System.Threading.ThreadAbortException: Le thread a été abandonné.
à System.Threading.Thread.AbortInternal()
à System.Threading.Thread.Abort(Object stateInfo)
à System.Web.HttpResponse.End()
à Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
webserver!ReportServer_0-2!11b0!10/31/2019-22:24:38:: i INFO: Reporting Web Server stopped
appdomainmanager!DefaultDomain!1288!10/31/2019-22:24:43:: i INFO: Appdomain:4 ReportServer_IFCLPROD_0-2-132170302970483545 unregistered.
rshost!rshost!1288!10/31/2019-22:24:43:: i INFO: Application domain type ReportServer statistics: created: 1, unloaded: 1, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!1288!10/31/2019-22:25:49:: i INFO: Appdomain:3 ReportManager_IFCLPROD_0-1-132170302898216319 unregistered.
rshost!rshost!1288!10/31/2019-22:25:49:: i INFO: Application domain type ReportManager statistics: created: 1, unloaded: 1, failed: 0, timed out: 0.
Can you help me please ? we encountered this issue form a week ago
I got this on an azure VM after it was resized. I was not present, so I cant tell you what exactly happened.
Looking through the logs it gave lots of hints that it was having troubles decrypting content (connection string stuff)
The first thing I did was reimport the Key.
The second issue seemed to be that it could not find a stored procedure named GetOrAnnounceKey.
THis is strange because I looked for it on other SSRS boxes that are working fine, none of them have it.
They system in question reports version 14.0.600.1453
I found a website that has the source for the SP enter link description here
I can tell you that my server started working again.
I can not tell you why, and I certainly cant promise you this is the right thing to do.
It may help you get all your reports backed up if that's your goal.
If i have any problems, Ill come back and either update or delete this post.

How to fix "Failed to obtain JDBC Connection" datasource error in my java application

I have a little training project running under Java Spring MVC and using MySQL on WAMP Server), it was working but i cloned it and had to reinstall database (restored from a dump) and Wamp64 also, but now my java application cannot connect and i get different errors.
In IntelliJ IDEA when i test the connection to the database, the connection is successfull, even in phpmyadmin, but not when i launch my application.
jdbc:mysql://localhost:3306/library?serverTimezone=UTC (i had to use server timezone to fixe timezone error)
It's looking like my java app doesn't use the good datasource configuration, and instead use the old one but i can't figure out why.
My application is using SOAP protocol to connect to my webservices.
The main error is a javaNullPointer exception on the line where i try to get the user from database trough an input form.
The other error is (when i go in debug mode):
Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Accès refusé pour l'utilisateur: 'root'#'#localhost' (mot de passe: OUI) error.
This project was cloned from an old project. I suppose there is somewhere an old datasource used by the application.
It looks like my application uses old login settings for mysql (login: root, password: password). I recently changed the login information to my database, to an "admin_library" login that has all the privileges and a password.
I invalidated and restarted the IntelliJ cache, made an "mvn clean install", but when I run my two tomcat servers (one for the webservice, another one for the soap webserviceclient), my login screen appears but I have a null point exception (apparently due to a database connection problem.
Here is my configuration:
pom.xml:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.15</version>
</dependency>
WEB-INF/SpringMVCDispatcher-servlet.xml:
<!-- CONFIG JDBC DATASOURCE // -->
<bean id = "jdbcTemplate"
class = "org.springframework.jdbc.core.JdbcTemplate">
<property name = "dataSource" ref = "dataSource" />
</bean>
<bean id = "dataSource"
class = "org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name = "driverClassName" value = "com.mysql.jdbc.Driver"/>
<property name = "url" value = "jdbc:mysql://localhost:3306/library"/>
<property name = "username" value = "admin_library"/>
<property name = "password" value = "password"/>
</bean>
Type Rapport d'exception
message Request processing failed; nested exception is com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Accès refusé pour l'utilisateur: 'root'#'#localhost' (mot de passe: OUI) Please see the server log to find more detail regarding exact cause of the failure.
description Le serveur a rencontré une erreur interne qui l'a empêché de satisfaire la requête.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Accès refusé pour l'utilisateur: 'root'#'#localhost' (mot de passe: OUI) Please see the server log to find more detail regarding exact cause of the failure.
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:901)
javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:875)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
cause mère
com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Accès refusé pour l'utilisateur: 'root'#'#localhost' (mot de passe: OUI) Please see the server log to find more detail regarding exact cause of the failure.
com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:193)
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:128)
com.sun.xml.ws.client.sei.StubHandler.readResponse(StubHandler.java:253)
com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:206)
com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:293)
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:92)
com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:161)
com.sun.proxy.$Proxy47.findByEmail(Unknown Source)
fr.projet3.library.controller.LoginController.postLogin(LoginController.java:57)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:215)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:142)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:998)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:901)
javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:875)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
note La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de ce serveur.
A look into the controller:
#PostMapping(value = {"/login","/", ""})
public String postLogin(#Valid #ModelAttribute("userLoginForm")UserLoginForm userLoginForm, BindingResult bindingResult, ModelMap modelMap, HttpSession session){
if(!bindingResult.hasErrors()){
UserWS u = libraryWS.findByEmail(userLoginForm.getEmail());
if(u == null){
return "login";
}
session.setAttribute("currentUser", u);
return "redirect:/userloan";
}
return "login";
}
I had to edit an "applicationContext.xml" file also for the libraryWS. Then i got a timezone error:
Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: The server time zone value 'Paris, Madrid (heure dété)' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
i fixed this error also using:
?zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=UTC to my datasource connexion EG: jdbc:mysql://localhost:3306/library?zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=UTC"

SENSENET 6.5.2.8421 installation from package fails due to SQL SYNTAX ERROR

I have the following stack:
.NET 4.5.1
IIS 7.5
MSSQL SERVER 2008 EXPRESS SP 4
VISUAL STUDIO 2013 UPDATE 5
Windows 2007 SP1
SENSENET 6.5.2.8421
I tried to install SENSENET importing the package using the deploy option within IIS, but when creating the data base this shows up:
Microsoft.Web.Deployment.DeploymentDetailedClientServerException: Error durante la ejecución del script de la base de datos. El error ocurrió entre las siguientes líneas del script: "1061" y "1201". El registro detallado podría tener más información acerca del error. El comando comenzaba con lo siguiente:
"IF NOT EXISTS (SELECT * FROM sys.views WHERE objec"
Sintaxis incorrecta cerca de '!'. http://go.microsoft.com/fwlink/?LinkId=178587 Obtenga más información en: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SQL_EXECUTION_FAILURE. ---> System.Data.SqlClient.SqlException: Sintaxis incorrecta cerca de '!'.
en System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
en System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
en System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
en System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
en System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
en System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
en System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
en Microsoft.Web.Deployment.DBStatementInfo.Execute(DbConnection connection, DbTransaction transaction, DeploymentBaseContext baseContext, Int32 timeout)
--- Fin del seguimiento de la pila de la excepción interna ---
en Microsoft.Web.Deployment.DBStatementInfo.Execute(DbConnection connection, DbTransaction transaction, DeploymentBaseContext baseContext, Int32 timeout)
en Microsoft.Web.Deployment.DBConnectionWrapper.ExecuteSql(DBStatementInfo sqlStatement, DeploymentBaseContext baseContext, Int32 timeout)
en Microsoft.Web.Deployment.SqlScriptToDBProvider.AddHelper(DeploymentObject source, Boolean whatIf)
en Microsoft.Web.Deployment.SqlScriptToDBProvider.Add(DeploymentObject source, Boolean whatIf)
en Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source, Int32 position, DeploymentSyncContext syncContext)
en Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObject sourceObject, Int32 position)
en Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
en Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
en Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
en Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
en Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
en Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable`1 syncPassId, String syncSessionId)
en Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
en Microsoft.Web.Deployment.DeploymentObject.SyncTo(String provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
en Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentWellKnownProvider provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
en Microsoft.Web.Deployment.UI.InstallProgressWizardPage.OnWorkerDoWork(Object sender, DoWorkEventArgs e)
en System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
en System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Oviously, the installation fails.
The cause is most likely a SQL method (IIF) that is not available in your version of SQL Server. You can either try to install SenseNet on a newer server or download a newer SensNet package, because in the next version (6.5.3+) the script above was converted to be compatible with older SQL servers.

Setting up WordPress Locally

This may sound stupid, but it's frustrating me to death. I'm running OSX 10.6 and I did every step to install PHP and MySQL. I have the MySQL running, I created via terminal a database, called DBname. Now as WordPress says, I have to open wp-config.php and modify the information to make it able to connect to the database. At this point I'm not sure which username / password / host I'm using. As username I guess it's 'root', since I use the command ./mysql -u root to open up the MySQL client in terminal, no password, so I leave it '' and as host I guess it's 'localhost'. The problem is that when I connect to http://127.0.0.1/my-folder/wp/wp-admin/install.php the wordpress page is telling me the connection to the database failed.
I've been searching for at least one hour but couldn't find anything useful. Can someone point out what am I doing wrong?
Thanks.
EDIT: I installed MAMP, it gave me as host localhost, as user root and as pass root. I could navigate to PHPMyAdmin and create a database called DBname, but when I input the info in the wp-config.php file still didn't work (same problem).
RE-EDIT: this is the wp-config.php file, sorry but it's the italian version lol.
<?php
/**
* Il file base di configurazione di WordPress.
*
* Questo file definisce le seguenti configurazioni: impostazioni MySQL,
* Prefisso Tabella, Chiavi Segrete, Lingua di WordPress e ABSPATH.
* E' possibile trovare ultetriori informazioni visitando la pagina: del
* Codex {#link http://codex.wordpress.org/Editing_wp-config.php
* Editing wp-config.php}. E' possibile ottenere le impostazioni per
* MySQL dal proprio fornitore di hosting.
*
* Questo file viene utilizzato, durante l'installazione, dallo script
* di creazione di wp-config.php. Non è necessario utilizzarlo solo via
* web,è anche possibile copiare questo file in "wp-config.php" e
* rimepire i valori corretti.
*
* #package WordPress
*/
// ** Impostazioni MySQL - E? possibile ottenere questoe informazioni
// ** dal proprio fornitore di hosting ** //
/** Il nome del database di WordPress */
define('DB_NAME', 'DBname');
/** Nome utente del database MySQL */
define('DB_USER', 'root');
/** Password del database MySQL */
define('DB_PASSWORD', 'root');
/** Hostname MySQL */
define('DB_HOST', 'localhost');
/** Charset del Database da utilizare nella creazione delle tabelle. */
define('DB_CHARSET', 'utf8');
/** Il tipo di Collazione del Database. Da non modificare se non si ha
idea di cosa sia. */
define('DB_COLLATE', '');
/**##+
* Chiavi Univoche di Autenticazione e di Salatura.
*
* Modificarle con frasi univoche differenti!
* E' possibile generare tali chiavi utilizzando {#link https://api.wordpress.org/secret-key/1.1/salt/ servizio di chiavi-segrete di WordPress.org}
* E' possibile cambiare queste chiavi in qualsiasi momento, per invalidare tuttii cookie esistenti. Ciò forzerà tutti gli utenti ad effettuare nuovamente il login.
*
* #since 2.6.0
*/
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
define('AUTH_SALT', 'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');
/**##-*/
/**
* Prefisso Tabella del Database WordPress .
*
* E' possibile avere installazioni multiple su di un unico database if you give each a unique
* fornendo a ciascuna installazione un prefisso univoco.
* Solo numeri, lettere e sottolineatura!
*/
$table_prefix = 'wp_';
/**
* Lingua di Localizzazione di WordPress, di base Inglese.
*
* Modificare questa voce per localizzare WordPress. Occorre che nella cartella
* wp-content/languages sia installato un file MO corrispondente alla lingua
* selezionata. Ad esempio, installare de_DE.mo in to wp-content/languages ed
* impostare WPLANG a 'de_DE' per abilitare il supporto alla lingua tedesca.
*
* Tale valore è già impostato per la lingua italiana
*/
define('WPLANG', 'it_IT');
/**
* Per gli sviluppatori: modalità di debug di WordPress.
*
* Modificare questa voce a TRUE per abilitare la visualizzazione degli avvisi
* durante lo sviluppo.
* E' fortemente raccomandato agli svilupaptori di temi e plugin di utilizare
* WP_DEBUG all'interno dei loro ambienti di sviluppo.
*/
define('WP_DEBUG', false);
/* Finito, interrompere le modifiche! Buon blogging. */
/** Path assoluto alla directory di WordPress. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Imposta lle variabili di WordPress ed include i file. */
require_once(ABSPATH . 'wp-settings.php');
When mysqld and mysql see localhost, they substitute the filesystem socket for the network socket. Using 127.0.0.1 connects to the network port - but similarly the permissions need to relect this if you're going to use the network connection (i.e. an entry for 'localhost' will not be used for validating network socket connections). Converseley, if you want to use the filesystem socket, then both ends need to be using the same path to the socket, and the connection is validated against 'localhost'.
since I user the command ./mysql -u root to open up the MySQL client in terminal, no password
OK, so in the absence of a -h it's using the filesystem socket - show variables like '%socket%' Make sure your php.ini has the same path set.
I installed MAMP, it gave me as host localhost, as user root and as pass root
But your password is blank.