com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] - tiles

I am getting these Warning Msg in my Logger. I am using Log4j and Tiles too. Before using Tiles these were not comming. Below are the Warning logs:
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Detected container provider Struts XML configuration provider (struts.xml) needs to be reloaded. Reloading all providers.
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Parsing configuration file [struts-default.xml]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Parsing configuration file [struts-plugin.xml]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Parsing configuration file [struts.xml]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Overriding property struts.i18n.reload - old value: false new value: true
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Overriding property struts.configuration.xml.reload - old value: false new value: true
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Loading global messages from ApplicationResources
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [struts.actionMapping]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [org.apache.catalina.jsp_file]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [org.apache.catalina.jsp_file]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [struts.valueStack]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 No configuration found for the specified action: 'userLogin.action' in namespace: '/jsp/login'. Form action defaulting to 'action' attribute's literal value.
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [.freemarker.Request]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [.freemarker.RequestParameters]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme]
com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [fieldErrors]
Please help me on this. My Logger file size is increasing and it is making my logger not usable..???

For removing these warnings just add below lines of code in your log4j.xml file:
<logger name="com.opensymphony.xwork2.util.logging.commons.CommonsLogger">
<level value="warn"/>
</logger>

Related

(jar conflicts) java.lang.VerifyError: Stack map does not match the one at exception handler

I know the same question title has been used but this is a different one.
I tried to integrate the implementation of spring boot keyvault into my own project by copying all the jars without using a maven pom.
I met the errors shown at the bottom of this post.
I can solve the SLF4j multiple binding error by removing an SLF4J error but java.lang.VerifyError remains there. This error is probably caused by jar conflicts but I am totally at a loss how to troubleshoot the issue.
The original application can run without issues even with all the newly added jars that are used for spring boot keyvault solution.
The Spring boot keyvalut solution also works if it is not integrated into my application.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/****/Documents/japserpublic-master/japserpublic-master/TestJasperReports2/keyVaultLib/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/****/Documents/japserpublic-master/japserpublic-master/TestJasperReports2/keyVaultLib/slf4j.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
Exception in thread "main" java.lang.VerifyError: Stack map does not match the one at exception handler 77
Exception Details:
Location:
com/fasterxml/jackson/databind/deser/std/StdDeserializer._parseDate(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/util/Date; #77: astore
Reason:
Type 'com/fasterxml/jackson/core/JsonParseException' (current frame, stack[0]) is not assignable to 'com/fasterxml/jackson/core/exc/StreamReadException' (stack map, stack[0])
Current Frame:
bci: #69
flags: { }
locals: { 'com/fasterxml/jackson/databind/deser/std/StdDeserializer', 'com/fasterxml/jackson/core/JsonParser', 'com/fasterxml/jackson/databind/DeserializationContext' }
stack: { 'com/fasterxml/jackson/core/JsonParseException' }
Stackmap Frame:
bci: #77
flags: { }
locals: { 'com/fasterxml/jackson/databind/deser/std/StdDeserializer', 'com/fasterxml/jackson/core/JsonParser', 'com/fasterxml/jackson/databind/DeserializationContext' }
stack: { 'com/fasterxml/jackson/core/exc/StreamReadException' }
Bytecode:
0x0000000: 2bb6 0035 aa00 0000 0000 0081 0000 0003
0x0000010: 0000 000b 0000 007a 0000 0081 0000 0081
0x0000020: 0000 0034 0000 0041 0000 0081 0000 0081
0x0000030: 0000 0081 0000 0071 2a2b b600 11b6 0012
0x0000040: 2cb6 006b b02b b600 4742 a700 223a 052c
0x0000050: 2ab4 0002 2bb6 006e 126f 03bd 0004 b600
0x0000060: 70c0 002d 3a06 1906 b600 4c42 bb00 7159
0x0000070: 21b7 0072 b02a 2cb6 0073 c000 71b0 2a2b
0x0000080: 2cb6 0074 b02c 2ab4 0002 2bb6 0025 c000
0x0000090: 71b0
Exception Handler Table:
bci [69, 74] => handler: 77
bci [69, 74] => handler: 77
Stackmap Table:
same_frame(#56)
same_frame(#69)
same_locals_1_stack_item_frame(#77,Object[#367])
append_frame(#108,Long)
chop_frame(#117,1)
same_frame(#126)
same_frame(#133)
at com.fasterxml.jackson.datatype.jsr310.JavaTimeModule.<init>(JavaTimeModule.java:118)
at com.azure.core.implementation.serializer.jackson.JacksonAdapter.initializeObjectMapper(JacksonAdapter.java:258)
at com.azure.core.implementation.serializer.jackson.JacksonAdapter.<init>(JacksonAdapter.java:74)
at com.azure.core.implementation.serializer.jackson.JacksonAdapter.createDefaultSerializerAdapter(JacksonAdapter.java:108)
at com.azure.identity.implementation.IdentityClient.<clinit>(IdentityClient.java:60)
at com.azure.identity.implementation.IdentityClientBuilder.build(IdentityClientBuilder.java:50)
at com.azure.identity.ManagedIdentityCredential.<init>(ManagedIdentityCredential.java:33)
at com.azure.identity.DefaultAzureCredential.<init>(DefaultAzureCredential.java:37)
at com.azure.identity.DefaultAzureCredentialBuilder.build(DefaultAzureCredentialBuilder.java:18)
at utilities.Test.main(Test.java:34)
Print your dependencies tree, and find out which lib related to the conflict jar and try to omit the old version. For maven: Maven dependency resolution (conflicted)
Adding the following to pom.xml fixed the issue for me
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.8</version>
</dependency>
</dependencies>
</dependencyManagement>
Only add jackson-databind maybe not work. I add all confict jackson jar to solve this exception.

Spring ldaptemplate update group with large membership issue

I have issues updating groups in Active Directory with > 1500 members. It's only trying to modify the member attribute.
I have no issues updating groups with fewer members. I can also add a new group with many members.
However if its too large, update fails. I can try to update the large group to just one member and it still fails with the same error.
Code fails on the modifyAttributes line:
ModificationItem[] modList =
nameContext.getDirContextAdapter().getModificationItems();
writeADTemplate.modifyAttributes(nameContext.getName(),modList);
StackTrace Below:
org.springframework.ldap.NameAlreadyBoundException: [LDAP: error code 68 -
00000562: UpdErr: DSID-031A122A, problem 6005 (ENTRY_EXISTS), data 0
nested exception is javax.naming.NameAlreadyBoundException: [LDAP: error
code 68 - 00000562: UpdErr: DSID-031A122A, problem 6005 (ENTRY_EXISTS), data 0
remaining name 'cn=Atlassian Users,ou=Groups'
at org.springframework.ldap.support.LdapUtils.convertLdapException
(LdapUtils.java:169)
at org.springframework.ldap.core.LdapTemplate.executeWithContext
(LdapTemplate.java:810)
at
org.springframework.ldap.core.LdapTemplate.executeReadWrite
(LdapTemplate.java:802)
at org.springframework.ldap.core.LdapTemplate.modifyAttributes
(LdapTemplate.java:967)
more ...
Caused by: javax.naming.NameAlreadyBoundException: [LDAP: error code 68 -
00000562: UpdErr: DSID-031A122A, problem 6005 (ENTRY_EXISTS), data 0
remaining name 'cn=Atlassian Users,ou=Groups'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(Unknown
Source)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Unknown
Source)
at javax.naming.directory.InitialDirContext.modifyAttributes(Unknown Source)
at
org.springframework.ldap.core.LdapTemplate$19.executeWithContext
(LdapTemplate.java:969)
at
org.springframework.ldap.core.LdapTemplate.executeWithContext
(LdapTemplate.java:807)
... 88 more
Ok my real issue is that Active Directory will not return a multi value attribute like member if the values > 1500.
When I was getting the current group members it was return 0 values so my code was trying to add all the members back to the group.
Looks like I'll have to figure out how to use
DefaultIncrementalAttributesMapper to get all the members

Nativescript - TypeError: Cannot read property 'LayoutParams' of undefined

tns 2.5.0-2016-11-16-7142
npm 3.10.9
This is a NS-ng project with very minimal code. On running, the cli throws this -
java.lang.RuntimeException: Unable to resume activity
{org.nativescript.fundoo/com.tns.NativeScriptActivity}:
com.tns.NativeScriptException: Calling js method onCreateView failed
TypeError: Cannot read property 'LayoutParams' of undefined File:
"/data/data/org.nativescript.fundoo/files/app/tns_modules/ui/core/view.js,
line: 507, column: 68
StackTrace: Frame:
function:'ViewStyler.setNativeLayoutParamsProperty',
file:'/data/data/org.nativescript.fundoo/files/app/tns_modules/ui/core/view.js',
line: 507, column: 69 Frame:
function:'StylePropertyChangedHandler.applyProperty',
file:'/data/data/org.nativescript.fundoo/files/app/tns_modules/ui/styling/style.js',
line: 1326, column: 14 Frame: function:'Style._applyStyleProperty',
file:'/data/data/org.nativescript.fundoo/files/app/tns_modules/ui/styling/style.js',
line: 1086, column: 25 Frame: function:'Style._applyProperty',
file:'/data/data/org.nativescript.fundoo/files/app/tns_modules/ui/styling/style.js',
line: 1049, column: 14 Frame: function:'Style._onP
This supposedly had to do with the module versions but I have it updated :
"tns-core-modules": "^2.5.0-2016-11-16-4793",
"tns-core-modules-widgets": "^2.5.0-2016-11-10-154"

Joomla 3.2: Undefined offset: 0 in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 479

My website Joomla 3.2 website was running well recently, when I got this error message and things don't work anymore.
Notice: Undefined offset: 0 in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 479
Notice: Trying to get property of non-object in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 483
Warning: Creating default object from empty value in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 483
Notice: Undefined offset: 0 in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 479
Notice: Trying to get property of non-object in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 483
Warning: Creating default object from empty value in C:\Apache2\htdocs\ictogcio\libraries\cms\application\site.php on line 483
Error displaying the error page: Could not find template "".

BDB JE exception

com.sleepycat.je.DatabaseException: (JE 3.2.76) fetchTarget of 0x45/0x27aa63 parent IN=3316846 lastFullVersion=0x45/0x47b147 parent.getDirty()=false state=0 com.sleepycat.je.log.DbChecksumException: (JE 3.2.76) Read invalid log entry type: 97
at com.sleepycat.je.tree.IN.fetchTarget(IN.java:989)
at com.sleepycat.je.tree.Tree.getNextBinInternal(Tree.java:1441)
at com.sleepycat.je.tree.Tree.getNextBin(Tree.java:1306)
at com.sleepycat.je.dbi.CursorImpl.getNextWithKeyChangeStatus(CursorImpl.java:1498)
at com.sleepycat.je.dbi.CursorImpl.getNext(CursorImpl.java:1368)
at com.sleepycat.je.Cursor.retrieveNextAllowPhantoms(Cursor.java:1587)
at com.sleepycat.je.Cursor.retrieveNext(Cursor.java:1397)
at com.sleepycat.je.Cursor.getNext(Cursor.java:456)
at browse.bdb.dao.JENodeDao.load(JENodeDao.java:76)
.................my code..................
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: com.sleepycat.je.log.DbChecksumException: (JE 3.2.76) Read invalid log entry type: 97
at com.sleepycat.je.log.LogEntryHeader.<init>(LogEntryHeader.java:69)
at com.sleepycat.je.log.LogManager.getLogEntryFromLogSource(LogManager.java:631)
at com.sleepycat.je.log.LogManager.getLogEntry(LogManager.java:597)
at com.sleepycat.je.tree.IN.fetchTarget(IN.java:958)
... 16 more
what is wrong ?
it's likely some log file is corrupted, try to recover environment when opening.
This exception appear because I've tried to read record which was not flushed to the file system yet.
For JE it's: environment.sync();
For JNI it's: environment.syncCache(null);

Resources