Hash Array into RunSpace - powershell-4.0

I am getting strange behaviour when passing an array object from my Main script into RunSpace code block.
I am trying to retrieve values using a Where-Object statement within the RunSpace code block.
But produces an error relating to null method.
If I perform the same Where-Object statement on the array before passed to runspace then it works?
For example if I perform the following on the array before its passed to RunSpace it works fine:
$ARRAY | Where-Object {$_.object -eq $Variable}).PropertyofwhatIWant.ToString()
If I pass this array to runspace and perform the same thing it fails with:
You cannot call a method on a null-valued expression.
At line:25 char:13
+ $strSourceGivenName = ($arr_Src_Users1 | Where-Object {$_.objectsid ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
I have compared both array objects and they have the exact same properties?
There is no difference of ARRAY and ARRAY1 when checking Get-Member?
What is going on?
Module : CommonLanguageRuntimeLibrary
Assembly : mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
TypeHandle : System.RuntimeTypeHandle
DeclaringMethod :
BaseType : System.Array
UnderlyingSystemType : System.Object[]
FullName : System.Object[]
AssemblyQualifiedName : System.Object[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Namespace : System
GUID : 00000000-0000-0000-0000-000000000000
IsEnum : False
GenericParameterAttributes :
IsSecurityCritical : False
IsSecuritySafeCritical : False
IsSecurityTransparent : True
IsGenericTypeDefinition : False
IsGenericParameter : False
GenericParameterPosition :
IsGenericType : False
IsConstructedGenericType : False
ContainsGenericParameters : False
StructLayoutAttribute :
Name : Object[]
MemberType : TypeInfo
DeclaringType :
ReflectedType :
MetadataToken : 33554432
GenericTypeParameters : {}
DeclaredConstructors : {Void .ctor(Int32)}
DeclaredEvents : {}
DeclaredFields : {}
DeclaredMembers : {Void Set(Int32, System.Object), System.Object& Address(Int32), System.Object Get(Int32), Void .ctor(Int32)}
DeclaredMethods : {Void Set(Int32, System.Object), System.Object& Address(Int32), System.Object Get(Int32)}
DeclaredNestedTypes : {}
DeclaredProperties : {}
ImplementedInterfaces : {System.ICloneable, System.Collections.IList, System.Collections.ICollection, System.Collections.IEnumerable...}
TypeInitializer :
IsNested : False
Attributes : AutoLayout, AnsiClass, Class, Public, Sealed, Serializable
IsVisible : True
IsNotPublic : False
IsPublic : True
IsNestedPublic : False
IsNestedPrivate : False
IsNestedFamily : False
IsNestedAssembly : False
IsNestedFamANDAssem : False
IsNestedFamORAssem : False
IsAutoLayout : True
IsLayoutSequential : False
IsExplicitLayout : False
IsClass : True
IsInterface : False
IsValueType : False
IsAbstract : False
IsSealed : True
IsSpecialName : False
IsImport : False
IsSerializable : True
IsAnsiClass : True
IsUnicodeClass : False
IsAutoClass : False
IsArray : True
IsByRef : False
IsPointer : False
IsPrimitive : False
IsCOMObject : False
HasElementType : True
IsContextful : False
IsMarshalByRef : False
GenericTypeArguments : {}
CustomAttributes : {[System.SerializableAttribute()]}

I solved my issue:
Nothing to do with Runspace.
It was to do with the way PS deals with: TypeName: Microsoft.ActiveDirectory.Management.ADUser
So I filtered out the properties I needed and created a custom object and passed this to my Function :-)

As soon as you pass the Microsoft.ActiveDirectory.Management.ADUser Object to another function, the properties are no longer available even though if you pipe out the Array you can see all the properties as you would in the main call.. I will do more digging to why this is but for now my workaround works well

Related

hadoop.security.authentication: simple

i have the following configuration in core-site.xml
Hadoop Version 3.3.x
hadoop.http.authentication.simple.anonymous.allowed: "false"
hadoop.http.authentication.type: simple
hadoop.http.filter.initializers: org.apache.hadoop.security.AuthenticationFilterInitializer
getting the following error when starting bootstrap namenode.
"caught exception initializing http://apache-hadoop-journalnode-2.apache-hadoop-journalnode.nom-backend.svc.cluster.local:8480/getJournal?jid=apache-hadoop-namenode&segmentTxId=1&storageInfo=-66%3A1139640761%3A1664180726776%3ACID-9f32eb78-6efb-46ed-afd4-715e6c598e01&inProgressOk=true","exceptionclass":"org.apache.hadoop.hdfs.server.common.HttpGetFailedException","stack":["org.apache.hadoop.hdfs.server.common.HttpGetFailedException: Fetch of http://apache-hadoop-journalnode-2.apache-hadoop-journalnode.nom-backend.svc.cluster.local:8480/getJournal?jid=apache-hadoop-namenode&segmentTxId=1&storageInfo=-66%3A1139640761%3A1664180726776%3ACID-9f32eb78-6efb-46ed-afd4-715e6c598e01&inProgressOk=true failed with status code 401","Response message:","Authentication required","\tat org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream$URLLog$1.run(EditLogFileInputStream.java:489)","\tat org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream$URLLog$1.run(EditLogFileInputStream.java:474)","\tat java.security.AccessController.doPrivileged(Native Method)","\tat javax.security.auth.Subject.doAs(Subject.java:422)","\tat org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)","\tat org.apache.hadoop.security.SecurityUtil.doAsUser(SecurityUtil.java:536)","\tat org.apache.hadoop.security.SecurityUtil.doAsCurrentUser(SecurityUtil.java:530)","\tat org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream$URLLog.getInputStream(EditLogFileInputStream.java:473)","\tat org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream.init(EditLogFileInputStream.java:157)","\tat org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream.nextOpImpl(EditLogFileInputStream.java:218)","\tat org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream.nextOp(EditLogFileInputStream.java:276)","\tat org.apache.hadoop.hdfs.server.namenode.EditLogInputStream.readOp(EditLogInputStream.java:85)","\tat org.apache.hadoop.hdfs.server.namenode.EditLogInputStream.skipUntil(EditLogInputStream.java:151)"
works fine when hadoop.http.authentication.simple.anonymous.allowed: "true" but not when set to false
curl -s http://localhost:9870/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus
{
"beans" : [ {
"name" : "Hadoop:service=NameNode,name=NameNodeStatus",
"modelerType" : "org.apache.hadoop.hdfs.server.namenode.NameNode",
"NNRole" : "NameNode",
"HostAndPort" : "apache-hadoop-namenode-0.apache-hadoop-namenode.nom-backend.svc.cluster.local:8020",
"SecurityEnabled" : false,
"LastHATransitionTime" : 1664300715338,
"BytesWithFutureGenerationStamps" : 0,
"SlowPeersReport" : null,
"SlowDisksReport" : null,
"State" : "active"
} ]
}
but fails to show details when i use curl -s http://localhost:9870/jmx?user.name=hdfs&qry=Hadoop:service=NameNode,name=NameNodeStatus
similar authentication is seen in bootstrapstandby node when doing imageTransfer?getImage endpoint
message":"Failed to start namenode.","exceptionclass":"java.io.IOException","stack":["java.io.IOException: java.lang.RuntimeException: org.apache.hadoop.hdfs.server.common.HttpGetFailedException: Image transfer servlet at http://apache-hadoop-namenode-0.apache-hadoop-namenode.nom-backend.svc.cluster.local:9870/imagetransfer?getimage=1&txid=0&storageInfo=-66:1919632792:1664433837683:CID-462fba6c-76bc-4c4f-958e-c4906374d825&bootstrapstandby=true failed with status code 401","Response message:","Authentication required","\tat org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:549)"

Websphere 8.5.5.13 MDB fails to connect to local queue

I have an EJB3 application that successfully runs locally on my Windows server. I have set it up in Azure Windows server along with MQ75 installation exactly as I have on my local machine.
The application fails to start with the following error. I have verified that the queue DOMAIN_UPDATE is in fact a local queue on Queue manager QM_azure. But for some reason, Websphere MDB deployment thinks that is is not local.
Any help is appreciated.
[6/11/18 16:22:28:514 UTC] 00000048 AbstractEJBRu I CNTR0180I: The DomainUpdateMessageBean message-driven bean in the PatternSpyProcessor.jar module of the PatternSpyEngine application is bound to the jms/ActConfigDomainUpdate activation specification.
[6/11/18 16:22:30:822 UTC] 00000048 SibMessage W [:] CWSJY0003W: MQJCA4023: Startup reconnection failed for ActivationSpec 'javax.jms.Queue:jms/DOMAIN_UPDATE#QM_azure <-1480355656>'. Exception details: '
Message : com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ1017: non-local MQ queue 'DOMAIN_UPDATE' not valid for receiving or browsing.
The MQ queue is not able to be opened, as it is not local to the connected Queue Manager.
Connect to the Queue Manager for which this MQ Queue resides locally.
Class : class com.ibm.msg.client.jms.DetailedJMSException
Stack : com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:580)
: com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:216)
: com.ibm.msg.client.wmq.internal.WMQMessageConsumer.checkJmqiCallSuccess(WMQMessageConsumer.java:124)
: com.ibm.msg.client.wmq.internal.WMQConsumerShadow.initialize(WMQConsumerShadow.java:988)
: com.ibm.msg.client.wmq.internal.WMQAsyncConsumerShadow.initialize(WMQAsyncConsumerShadow.java:821)
: com.ibm.msg.client.wmq.internal.WMQConnectionBrowser.<init>(WMQConnectionBrowser.java:1391)
: com.ibm.msg.client.wmq.internal.WMQConnection.createConnectionBrowser(WMQConnection.java:858)
: com.ibm.msg.client.jms.internal.JmsConnectionImpl.createConnectionBrowser(JmsConnectionImpl.java:1038)
: com.ibm.msg.client.jms.internal.JmsConnectionConsumerImpl.createConnectionBrowser(JmsConnectionConsumerImpl.java:235)
: com.ibm.msg.client.jms.internal.JmsConnectionConsumerImpl.<init>(JmsConnectionConsumerImpl.java:161)
: com.ibm.msg.client.jms.internal.JmsConnectionConsumerImpl.<init>(JmsConnectionConsumerImpl.java:111)
: com.ibm.msg.client.jms.internal.JmsConnectionImpl.createConnectionConsumer(JmsConnectionImpl.java:437)
: com.ibm.mq.jms.MQConnection.createConnectionConsumer(MQConnection.java:206)
: com.ibm.mq.connector.inbound.MessageEndpointDeployment.createConnectionConsumer(MessageEndpointDeployment.java:650)
: com.ibm.mq.connector.inbound.MessageEndpointDeployment.startDeliveryASF(MessageEndpointDeployment.java:391)
: com.ibm.mq.connector.inbound.MessageEndpointDeployment.startDelivery(MessageEndpointDeployment.java:334)
: com.ibm.mq.connector.inbound.MessageEndpointDeployment.<init>(MessageEndpointDeployment.java:234)
: com.ibm.mq.connector.ResourceAdapterImpl.endpointActivation(ResourceAdapterImpl.java:408)
: com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activateUnderRAClassLoaderContext(ActivationSpecWrapperImpl.java:647)
: com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activateEndpoint(ActivationSpecWrapperImpl.java:363)
: com.ibm.ejs.j2c.RAWrapperImpl.activateEndpoint(RAWrapperImpl.java:1120)
: com.ibm.ejs.j2c.RALifeCycleManagerImpl.activateEndpoint(RALifeCycleManagerImpl.java:1803)
: com.ibm.ejs.container.MessageEndpointFactoryImpl.activateEndpoint(MessageEndpointFactoryImpl.java:168)
: com.ibm.ws.runtime.component.EJBContainerImpl.startMDBs(EJBContainerImpl.java:4726)
: com.ibm.ws.runtime.component.WASEJBRuntimeImpl.startMDBs(WASEJBRuntimeImpl.java:686)
: com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.startModule(AbstractEJBRuntime.java:701)
: com.ibm.ws.ejbcontainer.runtime.SharedEJBRuntimeImpl.startModule(SharedEJBRuntimeImpl.java:338)
: com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:3588)
: com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1211)
: com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1390)
: com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
: com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:979)
: com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:795)
: com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2279)
: com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5464)
: com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5680)
: com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
: com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2284)
: com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)
: com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
: com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)
: com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)
: com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:985)
: com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:524)
: com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
Caused by [1] --> Message : com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2045' ('MQRC_OPTION_NOT_VALID_FOR_TYPE').
Class : class com.ibm.mq.MQException
Stack : com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:204)
: com.ibm.msg.client.wmq.internal.WMQMessageConsumer.checkJmqiCallSuccess(WMQMessageConsumer.java:124)
: com.ibm.msg.client.wmq.internal.WMQConsumerShadow.initialize(WMQConsumerShadow.java:988)
: com.ibm.msg.client.wmq.internal.WMQAsyncConsumerShadow.initialize(WMQAsyncConsumerShadow.java:821)
: com.ibm.msg.client.wmq.internal.WMQConnectionBrowser.<init>(WMQConnectionBrowser.java:1391)
: com.ibm.msg.client.wmq.internal.WMQConnection.createConnectionBrowser(WMQConnection.java:858)
: com.ibm.msg.client.jms.internal.JmsConnectionImpl.createConnectionBrowser(JmsConnectionImpl.java:1038)
: com.ibm.msg.client.jms.internal.JmsConnectionConsumerImpl.createConnectionBrowser(JmsConnectionConsumerImpl.java:235)
: com.ibm.msg.client.jms.internal.JmsConnectionConsumerImpl.<init>(JmsConnectionConsumerImpl.java:161)
: com.ibm.msg.client.jms.internal.JmsConnectionConsumerImpl.<init>(JmsConnectionConsumerImpl.java:111)
: com.ibm.msg.client.jms.internal.JmsConnectionImpl.createConnectionConsumer(JmsConnectionImpl.java:437)
: com.ibm.mq.jms.MQConnection.createConnectionConsumer(MQConnection.java:206)
: com.ibm.mq.connector.inbound.MessageEndpointDeployment.createConnectionConsumer(MessageEndpointDeployment.java:650)
: com.ibm.mq.connector.inbound.MessageEndpointDeployment.startDeliveryASF(MessageEndpointDeployment.java:391)
: com.ibm.mq.connector.inbound.MessageEndpointDeployment.startDelivery(MessageEndpointDeployment.java:334)
: com.ibm.mq.connector.inbound.MessageEndpointDeployment.<init>(MessageEndpointDeployment.java:234)
: com.ibm.mq.connector.ResourceAdapterImpl.endpointActivation(ResourceAdapterImpl.java:408)
: com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activateUnderRAClassLoaderContext(ActivationSpecWrapperImpl.java:647)
: com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activateEndpoint(ActivationSpecWrapperImpl.java:363)
: com.ibm.ejs.j2c.RAWrapperImpl.activateEndpoint(RAWrapperImpl.java:1120)
: com.ibm.ejs.j2c.RALifeCycleManagerImpl.activateEndpoint(RALifeCycleManagerImpl.java:1803)
: com.ibm.ejs.container.MessageEndpointFactoryImpl.activateEndpoint(MessageEndpointFactoryImpl.java:168)
: com.ibm.ws.runtime.component.EJBContainerImpl.startMDBs(EJBContainerImpl.java:4726)
: com.ibm.ws.runtime.component.WASEJBRuntimeImpl.startMDBs(WASEJBRuntimeImpl.java:686)
: com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.startModule(AbstractEJBRuntime.java:701)
: com.ibm.ws.ejbcontainer.runtime.SharedEJBRuntimeImpl.startModule(SharedEJBRuntimeImpl.java:338)
: com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:3588)
: com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1211)
: com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1390)
: com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
: com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:979)
: com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:795)
: com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2279)
: com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5464)
: com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5680)
: com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
: com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2284)
: com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)
: com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
: com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)
: com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)
: com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:985)
: com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:524)
: com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
Display queue details:
1 : dis q(DOMAIN_UPDATE)
AMQ8409: Display Queue details.
QUEUE(DOMAIN_UPDATE) TYPE(QLOCAL)
ACCTQ(QMGR) ALTDATE(2017-09-02)
ALTTIME(12.07.42) BOQNAME( )
BOTHRESH(0) CLUSNL( )
CLUSTER( ) CLCHNAME( )
CLWLPRTY(0) CLWLRANK(0)

Apache Superset oauth2 with custom Spring-Security OAuth2 server

I am using Apache Superset and trying to configure its OAuth2 capability to connect to my (custom) Spring-Security OAuth2 server. Unfortunately, it ain't working right now. The stack track begins with this.
15:09:16.584 [qtp1885996206-21] ERROR org.springframework.boot.web.support.ErrorPageFilter - Forwarding to error page from request [/oauth/authorize] due to exception [Could not resolve view with name 'forward:/oauth/confirm_access' in servlet with name 'dispatcherServlet'] javax.servlet.ServletException: Could not resolve view with name 'forward:/oauth/confirm_access' in servlet with name 'dispatcherServlet' at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1262) ~[spring-webmvc-4.3.8.RELEASE.jar:4.3.8.RELEASE] at
Here is the relevant portion of my config.py from Superset.
AUTH_TYPE = AUTH_OAUTH
OAUTH_PROVIDERS = [
{
"name" : "MY-OAUTH",
"icon" : APP_ICON,
"token_key" : "password",
"remote_app" : {
"consumer_key" : "my_dashboard",
"consumer_secret" : "my_secret",
"base_url" : "http://localhost:8088/myoauth",
"request_token_params" : {
"scope": "my_dashboard read write",
"grant_type" : "password"
},
"request_token_url" : None,
"access_token_url" : "http://localhost:8088/myoauth/oauth/token",
"access_token_params" : {
"scope": "my_dashboard read write",
"grant_type" : "password",
"response_type" : "authorization_code"
},
"access_token_method" : "POST",
"authorize_url" : "http://localhost:8088/myoauth/oauth/authorize"
}
}
]
A nice gentleman suggested that I have somehow disabled the servlet handler for /oauth/confirm_access, but I am not sure how to check on that or fix such a problem.
Do you know what is going on here, what I can do to fix this or where I can start looking?
Thanks,
Matt

An "el" header must exist in DOM

I'm using grunt-contrib-jasmine to do testing with Marionette. My specs pass but I get this error: 'Error: An "el" header must exist in DOM' at the Marionette source. I can't track down the problem
My grunt config is:
jasmine : {
src : [
'common/js/app.js',
'common/js/model/*.js',
'common/js/collection/*.js',
'common/js/view/*.js',
'common/js/route/route.js'
],
options : {
'--web-security' : false,
'--local-to-remote-url-access' : true,
'--ignore-ssl-errors' : true,
specs : 'test/spec/*.js',
vendor: [
'bower_components/jquery-2.1.0.min/index.js',
'bower_components/jasmine-jquery/lib/jasmine-jquery.js',
'bower_components/sinonjs/sinon.js',
'bower_components/jasmine-sinon/lib/jasmine-sinon.js',
'bower_components/underscore/underscore.js',
'bower_components/bootstrap/dist/js/bootstrap.min.js',
'bower_components/backbone/backbone.js',
'bower_components/handlebars/handlebars.js',
'bower_components/marionette/lib/backbone.marionette.min.js'
],
host: 'http://localhost:3000'
}

Out of memory after opening several times Google play from android

I have an Android WebView that contains a HTML page and each element from the html file, has a link and image. The link is to google play website. From time to time I receive an out of memory error and this is the logcat i could get:
: Process: com.android.vending, PID: 12924
: java.lang.OutOfMemoryError
: at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
: at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:677)
: at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:507)
: at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:872)
: at android.content.res.Resources.loadDrawable(Resources.java:3054)
: at android.content.res.Resources.getDrawable(Resources.java:1613)
: at android.widget.ImageView.resolveUri(ImageView.java:648)
: at android.widget.ImageView.setImageResource(ImageView.java:377)
: at com.google.android.play.image.FifeImageView.setImageResource(FifeImageView.java:536)
: at com.google.android.play.drawer.PlayDrawerProfileInfoView.configure(PlayDrawerProfileInfoView.java:108)
: at com.google.android.play.drawer.PlayDrawerAdapter.getProfileContainer(PlayDrawerAdapter.java:267)
: at com.google.android.play.drawer.PlayDrawerAdapter.getView(PlayDrawerAdapter.java:231)
: at android.widget.AbsListView.obtainView(AbsListView.java:2733)
: at android.widget.ListView.makeAndAddView(ListView.java:1811)
: at android.widget.ListView.fillDown(ListView.java:697)
: at android.widget.ListView.fillFromTop(ListView.java:763)
: at android.widget.ListView.layoutChildren(ListView.java:1627)
: at android.widget.AbsListView.onLayout(AbsListView.java:2546)
: at android.view.View.layout(View.java:15664)
: at android.view.ViewGroup.layout(ViewGroup.java:4869)
: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
: at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
: at android.view.View.layout(View.java:15664)
: at android.view.ViewGroup.layout(ViewGroup.java:4869)
: at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:824)
: at android.view.View.layout(View.java:15664)
: at android.view.ViewGroup.layout(ViewGroup.java:4869)
: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
: at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
: at android.view.View.layout(View.java:15664)
: at android.view.ViewGroup.layout(ViewGroup.java:4869)
: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
: at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
: at android.view.View.layout(View.java:15664)
: at android.view.ViewGroup.layout(ViewGroup.java:4869)
: at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:429)
: at android.view.View.layout(View.java:15664)
: at android.view.ViewGroup.layout(ViewGroup.java:4869)
: at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
: at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
: at android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
: at android.view.View.layout(View.java:15664)
: at android.view.ViewGroup.layout(ViewGroup.java:4869)
: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
: at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
: at android.view.View.layout(View.java:15664)
: at android.view.ViewGroup.layout(ViewGroup.java:4869)
: at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2246)
: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1968)
: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1200)
: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6401)
: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:803)
: at android.view.Choreographer.doCallbacks(Choreographer.java:603)
: at android.view.Choreographer.doFrame(Choreographer.java:573)
: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:789)
: at android.os.Handler.handleCallback(Handler.java:733)
: at android.os.Handler.dispatchMessage(Handler.java:95)
: at android.os.Looper.loop(Looper.java:157)
: at android.app.ActivityThread.main(ActivityThread.java:5335)
: at java.lang.reflect.Method.invokeNative(Native Method)
: at java.lang.reflect.Method.invoke(Method.java:515)
: at com.android.internal.os.ZygoteInit$Method
): Force finishing activity com.android.vending/com.google.android.finsky.activities.MainActivity
I don't know what else i can say to explain this. Still digging..

Resources