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..
Related
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)"
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)
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
I have noticed that there is a test module(tcrypt.c) in linux kernel crypto subsytem. I am able to use this module for any bench marking scenarios like aes with following command "modprobe tcrypt sec=1 mode=200"
But I am not able to test the individual algorithms using the same like below
"modprobe tcrypt mode=10 "
It throws an error "alg: skcipher: Failed to load transform for ctr(aes): -22"
when mode value is 0 it executes to test every algorithm till mode value reaches 200,almost every scenario it fails with similar type of error for respective algorithms like hash/hmac etc.
Please can any one let me know how this issue can be addressed?
BR,
& sanumala
Hopefully this helps.
Loading the transforms depends on your current kernel build. Tcrypt tries all combinations of the algorithms available from a vanilla kernel source. From what I see, you don't have the CTR mode available for AES. You might have to build a custom kernel.
http://lxr.free-electrons.com/source/crypto/tcrypt.c#L434
tcrypt.c is out of date in latest kernel. Please make sure your kernel is capable of cyrpto, i.e. /proc/crypto
name : __ctr(aes)
driver : cryptd(__ctr-aes-ce)
module : kernel
name : __cts(cbc(aes))
driver : cryptd(__cts-cbc-aes-ce)
module : kernel
name : __xts(aes)
driver : cryptd(__xts-aes-ce)
module : kernel
name : __cbc(aes)
driver : cryptd(__cbc-aes-ce)
module : kernel
name : __ecb(aes)
driver : cryptd(__ecb-aes-ce)
module : kernel
name : jitterentropy_rng
driver : jitterentropy_rng
module : kernel
name : aes
driver : aes-arm64
module : kernel
name : sha224
driver : sha224-arm64-neon
module : kernel
name : sha256
driver : sha256-arm64-neon
module : kernel
name : sha224
driver : sha224-arm64
module : kernel
name : sha256
driver : sha256-arm64
module : kernel
name : xts(aes)
driver : xts-aes-ce
module : kernel
name : ctr(aes)
driver : ctr-aes-ce
module : kernel
name : cts(cbc(aes))
driver : cts-cbc-aes-ce
module : kernel
name : cbc(aes)
driver : cbc-aes-ce
module : kernel
name : ecb(aes)
driver : ecb-aes-ce
module : kernel
name : cbcmac(aes)
driver : cbcmac-aes-ce
module : kernel
name : xcbc(aes)
driver : xcbc-aes-ce
module : kernel
name : cmac(aes)
driver : cmac-aes-ce
module : kernel
name : __xts(aes)
driver : __xts-aes-ce
module : kernel
name : ctr(aes)
driver : ctr-aes-ce
module : kernel
name : __ctr(aes)
driver : __ctr-aes-ce
module : kernel
name : __cts(cbc(aes))
driver : __cts-cbc-aes-ce
module : kernel
name : __cbc(aes)
driver : __cbc-aes-ce
module : kernel
name : __ecb(aes)
driver : __ecb-aes-ce
module : kernel
name : ccm(aes)
driver : ccm-aes-ce
module : kernel
name : aes
driver : aes-ce
module : kernel
name : gcm(aes)
driver : gcm-aes-ce
module : kernel
name : ghash
driver : ghash-ce
module : kernel
name : ghash
driver : ghash-neon
module : kernel
name : sha256
driver : sha256-ce
module : kernel
name : sha224
driver : sha224-ce
module : kernel
name : sha1
driver : sha1-ce
module : kernel
name : stdrng
driver : drbg_nopr_hmac_sha256
module : kernel
name : stdrng
driver : drbg_nopr_hmac_sha512
module : kernel
name : stdrng
driver : drbg_nopr_hmac_sha384
module : kernel
name : stdrng
driver : drbg_nopr_hmac_sha1
module : kernel
name : stdrng
driver : drbg_pr_hmac_sha256
module : kernel
name : stdrng
driver : drbg_pr_hmac_sha512
module : kernel
name : stdrng
driver : drbg_pr_hmac_sha384
module : kernel
name : stdrng
driver : drbg_pr_hmac_sha1
module : kernel
name : stdrng
driver : ansi_cprng
module : kernel
name : crct10dif
driver : crct10dif-generic
module : kernel
name : crc32c
driver : crc32c-generic
module : kernel
name : zlib-deflate
driver : zlib-deflate-scomp
module : kernel
name : deflate
driver : deflate-scomp
module : kernel
name : deflate
driver : deflate-generic
module : kernel
name : aes
driver : aes-generic
module : kernel
name : sha224
driver : sha224-generic
module : kernel
name : sha256
driver : sha256-generic
module : kernel
name : sha1
driver : sha1-generic
module : kernel
name : ecb(cipher_null)
driver : ecb-cipher_null
module : kernel
name : digest_null
driver : digest_null-generic
module : kernel
name : compress_null
driver : compress_null-generic
module : kernel
name : cipher_null
driver : cipher_null-generic
module : kernel
name : rsa
driver : rsa-generic
module : kernel
name : dh
driver : dh-generic
module : kernel
Take ecb(aes) as example,
#include <asm/uaccess.h>
#include <asm/smp.h>
#include <crypto/skcipher.h>
#include <crypto/akcipher.h>
#include <crypto/acompress.h>
#include <crypto/rng.h>
#include <crypto/drbg.h>
#include <crypto/kpp.h>
#include <crypto/internal/simd.h>
#include <crypto/aead.h>
#include <crypto/hash.h>
#include <linux/crypto.h>
#include <linux/debugfs.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/fs.h>
#include <linux/fips.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/scatterlist.h>
#include <linux/time.h>
#include <linux/vmalloc.h>
#include <linux/zlib.h>
#include <linux/once.h>
#include <linux/random.h>
#include <linux/slab.h>
#include <linux/string.h>
/* tie all data structures together */
struct skcipher_def {
struct scatterlist sg;
struct crypto_skcipher *tfm;
struct skcipher_request *req;
struct crypto_wait wait;
};
/* Perform cipher operation */
static unsigned int test_skcipher_encdec(struct skcipher_def *sk,
int enc)
{
int rc;
if (enc)
rc = crypto_wait_req(crypto_skcipher_encrypt(sk->req), &sk->wait);
else
rc = crypto_wait_req(crypto_skcipher_decrypt(sk->req), &sk->wait);
if (rc)
pr_info("skcipher encrypt returned with result %d\n", rc);
return rc;
}
/* Initialize and trigger cipher operation */
static int test_skcipher(void)
{
struct skcipher_def sk;
struct crypto_skcipher *skcipher = NULL;
struct skcipher_request *req = NULL;
char *scratchpad = NULL;
char *ivdata = NULL;
unsigned char key[32];
int ret = -EFAULT;
skcipher = crypto_alloc_skcipher("ecb-aes-ce", 0, 0);
if (IS_ERR(skcipher)) {
pr_info("could not allocate skcipher handle\n");
return PTR_ERR(skcipher);
}
req = skcipher_request_alloc(skcipher, GFP_KERNEL);
if (!req) {
pr_info("could not allocate skcipher request\n");
ret = -ENOMEM;
goto out;
}
skcipher_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG,
crypto_req_done,
&sk.wait);
/* AES 256 with random key */
get_random_bytes(&key, 32);
if (crypto_skcipher_setkey(skcipher, key, 32)) {
pr_info("key could not be set\n");
ret = -EAGAIN;
goto out;
}
/* IV will be random */
ivdata = kmalloc(16, GFP_KERNEL);
if (!ivdata) {
pr_info("could not allocate ivdata\n");
goto out;
}
get_random_bytes(ivdata, 16);
/* Input data will be random */
scratchpad = kmalloc(16, GFP_KERNEL);
if (!scratchpad) {
pr_info("could not allocate scratchpad\n");
goto out;
}
get_random_bytes(scratchpad, 16);
sk.tfm = skcipher;
sk.req = req;
/* We encrypt one block */
sg_init_one(&sk.sg, scratchpad, 16);
skcipher_request_set_crypt(req, &sk.sg, &sk.sg, 16, ivdata);
crypto_init_wait(&sk.wait);
/* encrypt data */
ret = test_skcipher_encdec(&sk, 1);
if (ret)
goto out;
pr_info("Encryption triggered successfully\n");
out:
if (skcipher)
crypto_free_skcipher(skcipher);
if (req)
skcipher_request_free(req);
if (ivdata)
kfree(ivdata);
if (scratchpad)
kfree(scratchpad);
return ret;
}
static int __init test_init(void)
{
printk("info: init test\n");
test_skcipher();
return 0;
}
static void __exit test_exit(void)
{
printk("info: exit test\n");
}
module_init(test_init);
module_exit(test_exit);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("author#author.com");
skcipher is used because algorithm ecb is bonding to this type in this kernel.
I am trying to open a jmx file written with Apache JMeter 2.7 in the last release Apache JMeter 2.11.
I am getting this errors log :
2014/09/10 09:29:44 INFO - jmeter.gui.action.Load: Loading file: C:\Temp\MEGA\Test_Anywhere_750 _Part3.jmx
2014/09/10 09:29:44 INFO - jmeter.services.FileServer: Set new base='C:\Temp\MEGA'
2014/09/10 09:29:44 WARN - jmeter.config.CSVDataSet: Could not translate shareMode=Toutes les unités using Locale:
2014/09/10 09:29:44 WARN - jmeter.config.CSVDataSet: Could not translate shareMode=Toutes les unités using Locale:
2014/09/10 09:29:46 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: kg.apc.jmeter.vizualizers.CorrectedResultCollector : kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ----
message : kg.apc.jmeter.vizualizers.CorrectedResultCollector
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : kg.apc.jmeter.vizualizers.CorrectedResultCollector
class : org.apache.jorphan.collections.ListedHashTree
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.converters.HashTreeConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number : 92330
------------------------------- : kg.apc.jmeter.vizualizers.CorrectedResultCollector : kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ----
message : kg.apc.jmeter.vizualizers.CorrectedResultCollector
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : kg.apc.jmeter.vizualizers.CorrectedResultCollector
class : org.apache.jorphan.collections.ListedHashTree
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.converters.HashTreeConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number : 92330
-------------------------------
message : kg.apc.jmeter.vizualizers.CorrectedResultCollector : kg.apc.jmeter.vizualizers.CorrectedResultCollector
---- Debugging information ----
message : kg.apc.jmeter.vizualizers.CorrectedResultCollector
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : kg.apc.jmeter.vizualizers.CorrectedResultCollector
class : org.apache.jorphan.collections.ListedHashTree
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.converters.HashTreeConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number : 92330
-------------------------------
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message : kg.apc.jmeter.vizualizers.CorrectedResultCollector : kg.apc.jmeter.vizualizers.CorrectedResultCollector
first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:65)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/kg.apc.jmeter.vizualizers.CorrectedResultCollector
line number : 92330
version : 2.11 r1554548
-------------------------------
2014/09/10 09:29:46 WARN - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file
at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105)
at org.apache.jmeter.gui.action.Load.doAction(Load.java:92)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I am using the version 7.0.650.20 of JAVA.
Does anyone have an idea why I could not open my file ?
Regards
Sylvie
You're using Third Party jmeter-plugins.org plugins.
You need to add the required jar in lib/ext so that it works.
Download plugins-manager.jar from here and put it into lib/ext directory, then restart JMeter.
Note you need to do it each time you upgrade your jmeter version !
If you're looking to learn jmeter correctly, this book will help you.
Download plugins-manager.jar and put it into lib/ext directory, then restart JMeter.
I am using JMeter 3.3 and answers above did not work for me.
SOLUTION:
Download plugins-manager.jar from https://jmeter-plugins.org/downloads/all/
Put plugins-manager.jar into jmeter/lib/ext
Restart jmeter
Open script, it will ask to download dependencies, press yes.
Source: https://stackoverflow.com/a/47509713/3915006
1)Download standard JMeterPlugins-Standard-1.4.0.zip from http://jmeter-plugins.org/#/
2)Extract it and go inside extracted folder /lib/ext.
4)Copy JMeterPlugins-Standard.jar and CMDRunner.jar from /lib/ext to Jmeter/lib/ext
For people who are using command line for running JMeter, here is how to install a new plugin.
After placing the plugin manager jar in the /lib/ext/, download the latest cmdrunner from this URL by changing the version.
wget http://search.maven.org/remotecontent?filepath=kg/apc/cmdrunner/2.2/cmdrunner-2.2.jar
Copy the cmdrunner to jmeter/lib/ directory
mv cmdrunner-2.2.jar apache-jmeter-5.1.1/lib/
Execute the following command to generate script file PluginsManagerCMD
java -cp apache-jmeter-5.1.1/lib/ext/jmeter-plugins-manager-1.3.jar org.jmeterplugins.repository.PluginManagerCMDInstaller
After the script is generated, you can use it to install a particular plugin
apache-jmeter-5.1.1/bin/PluginsManagerCMD.sh status
apache-jmeter-5.1.1/bin/PluginsManagerCMD.sh available
apache-jmeter-5.1.1/bin/PluginsManagerCMD.sh install jpgc-tst=2.5
download jar files from https://jmeter-plugins.org/downloads/file/JMeterPlugins-Standard-1.4.0.zip
extract and copy lib/etx/*.jar to jmeter/lib/etx/
Make sure you have the proxy server configured if you are behind one.
I had plugins-manager.jar in lib\ext, but it only worked once I added the proxy to bin\system.properties:
http.proxyHost=my.proxy.server
https.proxyHost=my.proxy.server
http.proxyPort=8080
https.proxyPort=8080
Or:
jmeter -H my.proxy.server -P 8000 -u username -a password
https://jmeter.apache.org/usermanual/get-started.html#proxy_server