#26 2022-05-13 09:44:12

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

what error messages are you getting in your tomcat logs ?

Regards,
Eduardo

Offline

#27 2022-05-16 09:42:33

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
Please update my above query

Thanks & Regards,
Gopi S

Offline

#28 2022-05-18 15:16:03

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
Please find the below statement from log.

18-May-2022 15:29:42.456 WARNING [Catalina-utility-2] net.datenwerke.rs.search.service.search.index.LuceneSearchIndexServiceImpl.<init> error creating search index
java.nio.file.AccessDeniedException: /opt/reportserverenterprise-3.7.1.6052-0/apache-tomcat/webapps/reportserver/WEB-INF/lucene_index
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389)
at java.base/java.nio.file.Files.createDirectory(Files.java:690)
at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:797)
at java.base/java.nio.file.Files.createDirectories(Files.java:783)
at org.apache.lucene.store.FSDirectory.<init>(FSDirectory.java:128)
at org.apache.lucene.store.MMapDirectory.<init>(MMapDirectory.java:152)
at org.apache.lucene.store.MMapDirectory.<init>(MMapDirectory.java:105)
at org.apache.lucene.store.FSDirectory.open(FSDirectory.java:162)
at org.apache.lucene.store.FSDirectory.open(FSDirectory.java:156)
at net.datenwerke.rs.search.service.search.index.LuceneSearchIndexServiceImpl.<init>(LuceneSearchIndexServiceImpl.java:79)
at net.datenwerke.rs.search.service.search.index.LuceneSearchIndexServiceImpl$$FastClassByGuice$$b4fef01e.newInstance(<generated>)
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:168)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:168)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:184)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:111)
at com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.inject.Guice.createInjector(Guice.java:69)
at com.google.inject.Guice.createInjector(Guice.java:59)
at net.datenwerke.rs.ReportServerServiceConfig.doGetInjector(ReportServerServiceConfig.java:290)
at net.datenwerke.rs.ReportServerServiceConfig.getInjector(ReportServerServiceConfig.java:267)
at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
at net.datenwerke.gf.DwGwtFrameworkBase.contextInitialized(DwGwtFrameworkBase.java:57)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4768)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1185)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1933)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:829)
18-May-2022 15:29:42.480 INFO [Catalina-utility-2] net.datenwerke.rs.core.service.i18ntools.RemoteMessageServiceImpl.<init> Loading messages...
18-May-2022 15:29:55.919 INFO [Catalina-utility-2] net.datenwerke.rs.core.service.i18ntools.RemoteMessageServiceImpl.<init> Available locales: de, hi, lo, pt, lt, hr, lv, hu, zh-CN, hy, uk, id, mk, mn, af, uz, ms, el, mt, en, is, it, my, es, et, eu, vi, ja, ne, ro, nl, no, ru, be, fi, bg, keys, fr, bn, jw, bs, ka, si, sk, sl, ga, gd, ca, sq, sr, kk, km, sv, ko, zh-TW, ta, cs, th, lb, tl, pl, da, tr
18-May-2022 15:30:04.309 INFO [Thread-13] net.datenwerke.rs.core.service.jarextension.hookers.ReportServerExtenderHooker.initialize Start loading ReportServer extensions.
18-May-2022 15:30:04.335 INFO [Thread-13] net.datenwerke.rs.core.service.EnvironmentAfterStartupInformation.initialize

Application Server: Apache Tomcat/9.0.56

### PAM Configuration ###
Static PAM configuration: net.datenwerke.rs.authenticator.service.pam.UserPasswordPAMAuthoritative
Finalized PAM configuration: class net.datenwerke.rs.authenticator.service.pam.UserPasswordPAMAuthoritative


18-May-2022 15:30:05.945 INFO [Thread-13] net.datenwerke.rs.search.service.search.SearchServiceImpl.rebuildIndex Rebuilding search index...
18-May-2022 15:30:05.954 SEVERE [Thread-13] net.datenwerke.gf.service.lateinit.LateInitStartup$1.run Error in LateInitHook
java.lang.NullPointerException
at net.datenwerke.rs.search.service.search.index.LuceneSearchIndexServiceImpl.flushIndex(LuceneSearchIndexServiceImpl.java:95)
at net.datenwerke.rs.search.service.search.SearchServiceImpl.rebuildIndex(SearchServiceImpl.java:98)
at net.datenwerke.rs.search.service.search.SearchStartup$1.initialize(SearchStartup.java:28)
at net.datenwerke.gf.service.lateinit.LateInitStartup$1.run(LateInitStartup.java:62)
at java.base/java.lang.Thread.run(Thread.java:829)


Thanks & Regards,
Gopi S

Last edited by Gopisrinivasan (2022-05-18 15:35:53)

Offline

#29 2022-05-19 11:19:18

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
Please help me to resolve the above issue.

Thanks & Regards,
Gopi S

Offline

#30 2022-05-24 13:05:39

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
We have dead line by this week, Can you please help me on this. Its very Urgent.

Please let us know, if you need any more information from our side.

Thanks & Regards,
Gopi S

Offline

#31 2022-05-27 10:04:11

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

the relevant error is this:
java.nio.file.AccessDeniedException: /opt/reportserverenterprise-3.7.1.6052-0/apache-tomcat/webapps/reportserver/WEB-INF/lucene_index

It seems that your user does not have permission to create this directory. We will try to reproduce the error and let you know. Could you try to create the directory manually, then restart your tomcat, maybe it works?
Which version are you using exactly after the upgrade?

Regards,
Eduardo

Offline

#32 2022-05-30 11:22:04

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
We have restarted the Tomcat but still the same issue has been occurred. we have been using version 4.1.0. Please find the permission for the below directory in our server.

drwxr-xr-x  9 tomcat tomcat 196 May 10 13:38 reportserver

Inside Report Server Directory
drwxr-xr-x  9 tomcat tomcat   196 May 10 13:38 .
drwxr-xr-x  4 tomcat tomcat    38 Feb  1 13:18 ..
drwxr-xr-x  2 root   root    4096 May 10 13:36 ddl
-rw-r--r--  1 root   root    5430 May 10 13:00 favicon.ico
-rw-r--r--  1 root   root   73615 May 10 13:02 libraries.html
drwxr-xr-x  2 root   root    4096 May 10 13:14 licenses
drwxr-xr-x  2 root   root      44 May 10 13:18 META-INF
drwxr-xr-x  2 root   root     117 May 10 13:37 pkg
-rw-r--r--  1 root   root     792 May 10 13:04 README.TXT
drwxr-xr-x  4 root   root    8192 May 10 13:37 reportserver
-rw-r--r--  1 root   root    4485 May 10 13:04 ReportServer.html
drwxr-xr-x 10 root   root     168 May 10 13:38 resources
drwxr-xr-x  5 root   root      82 May 10 13:39 WEB-INF

Thanks & Regards,
Gopi S

Offline

#33 2022-05-30 14:19:23

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

did you add the lucene_index directory manually? can you pls show me the permissions for the WEB-INF directory too ? what error do you get after adding the lucene_index directory manually and restarting reportserver?

Pls post the complete version (can be found in rsversion.properties or in the tomcat logs)

Regards,
Eduardo

Offline

#34 2022-05-31 06:28:27

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
Could you please tell me, where I can get the [lucene_index] directory ? and where I need to placed it manually ?
Also please find the below details.

Permission for WEB-INF directory
=====================
drwxr-xr-x  5 root   root      82 May 10 13:39 WEB-INF

complete version : RS4.1.0-6062

Thanks & Regards,
Gopi S

Offline

#35 2022-05-31 08:17:25

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

pls just create a new, empty directory "lucene_index" here: /opt/reportserverenterprise-3.7.1.6052-0/apache-tomcat/webapps/reportserver/WEB-INF/lucene_index

Then, restart tomcat and look if it works.

Regards,
Eduardo

Offline

#36 2022-05-31 11:47:08

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
I have created new empty folder under WEB-INF directory and restart the Tomcat, but still I am getting the same issue.

Regards,
Gopi S

Offline

#37 2022-05-31 15:41:43

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

"Pls post the complete version (can be found in rsversion.properties or in the tomcat logs)"

Also, pls post details on how you installed reportserver. Do you use a bitnami packet? or did you perform a manual installation?

Regards,
Eduardo

Offline

#38 2022-05-31 16:10:56

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
Please find the below complete content of the file "rsversion.properties"

#Tue Apr 26 19:06:19 CEST 2022
version=RS4.1.0-6062
schemaversion=RS3.0-22
buildDate=1650992779036-2022-04-26-19-05-51

Also I have done Manually as you advised early.

Thanks & Regards,
Gopi S

Offline

#39 2022-06-01 08:41:48

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

your directory /opt/reportserverenterprise-3.7.1.6052-0/apache-tomcat/webapps/reportserver/WEB-INF/ should be writeable, in order for the index to be written by reportserver. In your files we see that it is only writeable by root (owner), not by tomcat.

drwxr-xr-x  5 root   root      82 May 10 13:39 WEB-INF

you can execute this:
sudo chown tomcat:tomcat -R /opt/reportserverenterprise-3.7.1.6052-0/apache-tomcat/

and after tomcat restart it should work. If not, pls send me again the contents of your WEB-INF directory. The owner should now be tomcat.

Regards,
Eduardo

Offline

#40 2022-06-03 10:03:02

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
Thanks a lot for your kind support, after making writeable by root owner, application is working perfectly. I am able to see Login page.
Now again i am continue implementing SSO with LDAP active directory.

I have tried the link which you have given [https://reportserver.net/releasenotes/R … l#ldaptest] and put the below command
"ldaptest filter" and "ldaptest users". i am getting the same issue after migrating to 4.1.0
"command not found".

Please help on this

Thanks & Regards,
Gopi S

Offline

#41 2022-06-07 08:58:08

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

what exactly do you see as a version with the "env" command? https://reportserver.net/en/guides/admi … mmand-env/

Regards,
Eduardo

Offline

#42 2022-06-08 04:43:21

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
I Could see the version with the "env" command as [Version    RS4.1.0-6062 (2022-04-26-19-05-51)]

Please find below the complete information with the "env" command

General Info   
Version    RS4.1.0-6062 (2022-04-26-19-05-51)
Java version    BellSoft OpenJDK 64-Bit Server VM 11.0.13+8-LTS (11)
JVM Args    --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Djava.util.logging.config.file=/opt/reportserverenterprise-3.7.1.6052-0/apache-tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms512M -Xmx1536M -Drs.configdir=/opt/reportserverenterprise-3.7.1.6052-0/apps/reportserver/reportserver-conf -Dfile.encoding=UTF8 --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/jdk.internal.reflect=ALL-UNNAMED -Djavax.net.ssl.trustStoreType=JKS -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -Dcatalina.base=/opt/reportserverenterprise-3.7.1.6052-0/apache-tomcat -Dcatalina.home=/opt/reportserverenterprise-3.7.1.6052-0/apache-tomcat -Djava.io.tmpdir=/opt/reportserverenterprise-3.7.1.6052-0/apache-tomcat/temp
Application server    Apache Tomcat/9.0.56
Max memory    1,536 MB
Operation system    Linux
Browser    Chrome
Browser version    102.0.5005.63

Internal datasource info   
ID    58
Name    ReportServer Data Source
Database name    MariaDB
Database version    10.4.22-MariaDB
Driver name    MariaDB Connector/J
Driver version    3.0.4
JDBC major version    4
JDBC minor version    2
JDBC URL    jdbc:mariadb://127.0.0.1/bitnami_reportserver?user=bn_reportserver&password=***
JDBC username    bn_reportserver

Thanks & Regards,
Gopi S

Offline

#43 2022-06-08 08:51:51

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

and what happens when you enter

ldaptest filter

into your terminal ?

Regards,
Eduardo

Offline

#44 2022-06-09 05:33:22

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
Please find the below details, in the terminal

Error :
javax.naming.InvalidNameException: Invalid name: /ldap.isshgdc1.issnet.iss-shipping.com:389

Display Error Details :
net.datenwerke.gxtdto.client.servercommunication.exceptions.ServerCallFailedException: javax.naming.InvalidNameException: Invalid name: /ldap.isshgdc1.issnet.iss-shipping.com:389<br>    at net.datenwerke.rs.terminal.server.terminal.TerminalRpcServiceImpl.doExecute(TerminalRpcServiceImpl.java:158)<br>    at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:64)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.rs.terminal.server.terminal.TerminalRpcServiceImpl.execute(TerminalRpcServiceImpl.java:125)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>    at java.base/java.lang.reflect.Method.invoke(Method.java:566)<br>    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:587)<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:333)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:303)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373)<br>    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)<br>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)<br>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)<br>    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)<br>    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)<br>    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:89)<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)<br>    at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:94)<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)<br>    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)<br>    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)<br>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)<br>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br>    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)<br>    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)<br>    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)<br>    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)<br>    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)<br>    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)<br>    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)<br>    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)<br>    at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:433)<br>    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)<br>    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895)<br>    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732)<br>    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)<br>    at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)<br>    at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)<br>    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br>    at java.base/java.lang.Thread.run(Thread.java:829)<br>Caused by: net.datenwerke.rs.terminal.service.terminal.exceptions.TerminalException: javax.naming.InvalidNameException: Invalid name: /ldap.isshgdc1.issnet.iss-shipping.com:389<br>    at net.datenwerke.rs.ldap.service.ldap.terminal.commands.LdaptestFilterCommand.execute(LdaptestFilterCommand.java:53)<br>    at net.datenwerke.rs.terminal.service.terminal.helpmessenger.HelpMessageInterceptor.invoke(HelpMessageInterceptor.java:53)<br>    at net.datenwerke.rs.terminal.service.terminal.hooks.SubCommandContainerImpl.execute(SubCommandContainerImpl.java:17)<br>    at net.datenwerke.rs.ldap.service.ldap.terminal.commands.LdaptestCommand.execute(LdaptestCommand.java:42)<br>    at net.datenwerke.rs.terminal.service.terminal.helpmessenger.HelpMessageInterceptor.invoke(HelpMessageInterceptor.java:53)<br>    at net.datenwerke.rs.terminal.service.terminal.ExecuteCommandConfigImpl.execute(ExecuteCommandConfigImpl.java:28)<br>    at net.datenwerke.rs.terminal.service.terminal.TerminalSession.execute(TerminalSession.java:144)<br>    at net.datenwerke.rs.terminal.service.terminal.TerminalSession.execute(TerminalSession.java:107)<br>    at net.datenwerke.rs.terminal.server.terminal.TerminalRpcServiceImpl.doExecute(TerminalRpcServiceImpl.java:140)<br>    ... 50 more<br>Caused by: javax.naming.InvalidNameException: Invalid name: /ldap.isshgdc1.issnet.iss-shipping.com:389<br>    at java.naming/javax.naming.ldap.Rfc2253Parser.parseAttrType(Rfc2253Parser.java:155)<br>    at java.naming/javax.naming.ldap.Rfc2253Parser.doParse(Rfc2253Parser.java:108)<br>    at java.naming/javax.naming.ldap.Rfc2253Parser.parseDn(Rfc2253Parser.java:70)<br>    at java.naming/javax.naming.ldap.LdapName.parse(LdapName.java:785)<br>    at java.naming/javax.naming.ldap.LdapName.&lt;init&gt;(LdapName.java:123)<br>    at java.naming/com.sun.jndi.ldap.LdapNameParser.parse(LdapNameParser.java:39)<br>    at java.naming/com.sun.jndi.ldap.LdapCtx.&lt;init&gt;(LdapCtx.java:331)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:262)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:226)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:280)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:185)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:115)<br>    at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:730)<br>    at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)<br>    at java.naming/javax.naming.InitialContext.init(InitialContext.java:236)<br>    at java.naming/javax.naming.ldap.InitialLdapContext.&lt;init&gt;(InitialLdapContext.java:154)<br>    at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)<br>    at net.datenwerke.rs.ldap.service.ldap.LdapServiceImpl.loadFromDirectory(LdapServiceImpl.groovy:268)<br>    at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)<br>    at net.datenwerke.rs.ldap.service.ldap.LdapServiceImpl.simpleTest(LdapServiceImpl.groovy:523)<br>    at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)<br>    at net.datenwerke.rs.ldap.service.ldap.LdapServiceImpl.testFilter(LdapServiceImpl.groovy:489)<br>    at net.datenwerke.rs.ldap.service.ldap.terminal.commands.LdaptestFilterCommand.execute(LdaptestFilterCommand.java:51)<br>    ... 58 more<br>

Thanks & Regards,
Gopi S

Offline

#45 2022-06-09 08:33:48

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

can you pls also post the ldap.cf configuration file ? don't forget to delete your password/replace it with *******

Regards,
Eduardo

Offline

#46 2022-06-09 09:30:16

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
Please find the below ldap.cf file

*************************************************ldap.cf*************************************************
<?xml version="1.0" encoding="UTF-8"?>
<!--
ReportServer Configuration File
filename: sso/ldap.cf

Configures LDAP
-->
<configuration>
  <provider>
     <host>http://ldap.isshgdc1.issnet.iss-shipping.com</host>
     <port>389</port>
  </provider>
  <security>
    <!--
    Allowed values are: none/starttls/ssl
    Recommended is starttls.
    -->
    <encryption>none</encryption>
    <principal>CN=SVC_ReportServer,DC=issnet,DC=iss-shipping,DC=com</principal>
    <credentials>************</credentials>
  </security>
  <base>OU=Data Centre,OU=Service Accounts,DC=issnet,DC=iss-shipping,DC=com</base>
  <filter>(|(objectClass=organizationalUnit)(objectClass=user)(objectClass=group))</filter>
  <externalDir>/usermanager/external</externalDir>
  <writeProtection>true</writeProtection>
  <includeNamespace>false</includeNamespace>
  <logResultingTree>false</logResultingTree>
  <attributes>
    <objectClass>objectClass</objectClass>
    <guid>entryUUID</guid>
    <organizationalUnit>
      <objectClass>organizationalUnit</objectClass>
      <name>name</name>
    </organizationalUnit>
    <group>
      <objectClass>group</objectClass>
      <name>name</name>
      <member>member</member>
    </group>
    <user>
      <objectClass>inetOrgPerson</objectClass>
      <firstname>Gopi</firstname>
      <lastname>Srinivasan</lastname>
      <username>GSrinivasan</username>
      <mail>********</mail>
    </user>
    <additional>
      <!--
      You can request additional attributes including them here as:
      <attribute>myAttribute1</attribute>
      <attribute>myAttribute2</attribute>
      -->
    </additional>
  </attributes>
</configuration>
*************************************************************************************************

Thanks & Regards,
Gopi S

Offline

#47 2022-06-09 09:43:42

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

<host>http://ldap.isshgdc1.issnet.iss-shipping.com</host>

should be

<host>ldap://ldap.isshgdc1.issnet.iss-shipping.com</host>

as the ldap protocol uses the ldap:// url. If you use secure ldap, you can use ldaps://

Can you try this again and reload your config with "config reload"?

Regards,
Eduardo

Offline

#48 2022-06-14 05:16:54

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
I have tried to replace the ldap Protocol as you mentioned [<host>ldap://ldap.isshgdc1.issnet.iss-shipping.com</host>] and i am getting the below issue.

Error :
=====
java.net.ConnectException: Connection timed out (Connection timed out)
display error details
net.datenwerke.gxtdto.client.servercommunication.exceptions.ServerCallFailedException: java.net.ConnectException: Connection timed out (Connection timed out)<br>    at net.datenwerke.rs.terminal.server.terminal.TerminalRpcServiceImpl.doExecute(TerminalRpcServiceImpl.java:158)<br>    at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:64)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.rs.terminal.server.terminal.TerminalRpcServiceImpl.execute(TerminalRpcServiceImpl.java:125)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>    at java.base/java.lang.reflect.Method.invoke(Method.java:566)<br>    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:587)<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:333)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:303)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373)<br>    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)<br>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)<br>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)<br>    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:112)<br>    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)<br>    at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)<br>    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)<br>    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)<br>    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:89)<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)<br>    at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:94)<br>    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)<br>    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)<br>    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)<br>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)<br>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)<br>    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)<br>    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)<br>    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)<br>    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)<br>    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)<br>    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)<br>    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)<br>    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)<br>    at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:433)<br>    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)<br>    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895)<br>    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732)<br>    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)<br>    at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)<br>    at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)<br>    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br>    at java.base/java.lang.Thread.run(Thread.java:829)<br>Caused by: net.datenwerke.rs.terminal.service.terminal.exceptions.TerminalException: java.net.ConnectException: Connection timed out (Connection timed out)<br>    at net.datenwerke.rs.ldap.service.ldap.terminal.commands.LdaptestFilterCommand.execute(LdaptestFilterCommand.java:53)<br>    at net.datenwerke.rs.terminal.service.terminal.helpmessenger.HelpMessageInterceptor.invoke(HelpMessageInterceptor.java:53)<br>    at net.datenwerke.rs.terminal.service.terminal.hooks.SubCommandContainerImpl.execute(SubCommandContainerImpl.java:17)<br>    at net.datenwerke.rs.ldap.service.ldap.terminal.commands.LdaptestCommand.execute(LdaptestCommand.java:42)<br>    at net.datenwerke.rs.terminal.service.terminal.helpmessenger.HelpMessageInterceptor.invoke(HelpMessageInterceptor.java:53)<br>    at net.datenwerke.rs.terminal.service.terminal.ExecuteCommandConfigImpl.execute(ExecuteCommandConfigImpl.java:28)<br>    at net.datenwerke.rs.terminal.service.terminal.TerminalSession.execute(TerminalSession.java:144)<br>    at net.datenwerke.rs.terminal.service.terminal.TerminalSession.execute(TerminalSession.java:107)<br>    at net.datenwerke.rs.terminal.server.terminal.TerminalRpcServiceImpl.doExecute(TerminalRpcServiceImpl.java:140)<br>    ... 50 more<br>Caused by: java.net.ConnectException: Connection timed out (Connection timed out)<br>    at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)<br>    at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)<br>    at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)<br>    at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)<br>    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)<br>    at java.base/java.net.Socket.connect(Socket.java:609)<br>    at java.base/java.net.Socket.connect(Socket.java:558)<br>    at java.base/java.net.Socket.&lt;init&gt;(Socket.java:454)<br>    at java.base/java.net.Socket.&lt;init&gt;(Socket.java:231)<br>    at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:345)<br>    at java.naming/com.sun.jndi.ldap.Connection.&lt;init&gt;(Connection.java:231)<br>    at java.naming/com.sun.jndi.ldap.LdapClient.&lt;init&gt;(LdapClient.java:137)<br>    at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1616)<br>    at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2847)<br>    at java.naming/com.sun.jndi.ldap.LdapCtx.&lt;init&gt;(LdapCtx.java:348)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:262)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:226)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:280)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:185)<br>    at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:115)<br>    at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:730)<br>    at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)<br>    at java.naming/javax.naming.InitialContext.init(InitialContext.java:236)<br>    at java.naming/javax.naming.ldap.InitialLdapContext.&lt;init&gt;(InitialLdapContext.java:154)<br>    at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)<br>    at net.datenwerke.rs.ldap.service.ldap.LdapServiceImpl.loadFromDirectory(LdapServiceImpl.groovy:268)<br>    at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)<br>    at net.datenwerke.rs.ldap.service.ldap.LdapServiceImpl.simpleTest(LdapServiceImpl.groovy:523)<br>    at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)<br>    at net.datenwerke.rs.ldap.service.ldap.LdapServiceImpl.testFilter(LdapServiceImpl.groovy:489)<br>    at net.datenwerke.rs.ldap.service.ldap.terminal.commands.LdaptestFilterCommand.execute(LdaptestFilterCommand.java:51)<br>    ... 58 more<br>

Thanks & Regards,
Gopi S

Offline

#49 2022-06-14 09:10:12

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Gopi S,

the error is:
java.net.ConnectException: Connection timed out (Connection timed out)

Can you pls check if you can reach the LDAP host from the same machine you are running reportserver from ? Maybe there are some firewalls / configuration that are not allowing traffic between the machines?
You can check with the "ldapsearch" linux command or similar.

Regards,
Eduardo

Offline

#50 2022-06-16 09:29:03

Gopisrinivasan
Member
Registered: 2022-04-12

Re: Getting Exception when connecting LDAP Active directory from Groovy

Hi Eduardo,
I have pinged the IP address of "LDAP Server" from my machine in the "Command prompt" and i am getting the response properly.

Also Could you please tell me, Where i can execute the "ldapsearch" linux command from the below points
1. Inside the Report server terminal
2. In the Putty command

Kindly help us, to resolve this issue.

Thanks & Regards,
Gopi S

Offline

Board footer

Powered by FluxBB