OpenEMM 2015 image preview and upload content manager

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

abinpaulr
Posts: 16
Joined: Fri May 29, 2015 6:49 am

OpenEMM 2015 image preview and upload content manager

Post by abinpaulr » Fri May 29, 2015 6:58 am

I have installed openEMM 2015 and its working fine except one thing.

The preview of images in content manager is not working. it shows as a not found image. Also when I try to upload image using

<img src="[agnIMAGE name="Number-1.png"]" alt="Number-1.png">

I am getting an error screen

"Error occurred.

An unexpected error occurred. Please contact our support team."

The size of the image is just 15kb.

I am using version OpenEMM 2015 RC3

java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

and

Using CATALINA_BASE: /opt/openemm/apache-tomcat-7.0.59
Using CATALINA_HOME: /opt/openemm/apache-tomcat-7.0.59
Using CATALINA_TMPDIR: /opt/openemm/apache-tomcat-7.0.59/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/openemm/apache-tomcat-7.0.59/bin/bootstrap.jar:/opt/openemm/apache-tomcat-7.0.59/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.59
Server built: Jan 28 2015 15:51:10 UTC
Server number: 7.0.59.0
OS Name: Linux
OS Version: 2.6.32-504.8.1.el6.x86_64
Architecture: amd64
JVM Version: 1.8.0_31-b13
JVM Vendor: Oracle Corporation


Can anyone please help me debug this.

maschoff
Site Admin
Posts: 2204
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEMM 2015 image preview and upload content manager

Post by maschoff » Fri May 29, 2015 3:43 pm

At first: RC3 is a release candidate. You should use the final version of OpenEMM 2015.

Please have a look at Tomcat's log catalina.out. It should provide more info about the error.
OpenEMM Maintainer

abinpaulr
Posts: 16
Joined: Fri May 29, 2015 6:49 am

Re: OpenEMM 2015 image preview and upload content manager

Post by abinpaulr » Thu Jun 04, 2015 8:19 am

Okay so should I follow the update.txt.

This is what I see in the log file

Caused by: java.lang.NoSuchMethodException: Unknown property 'cm' on class 'class org.agnitas.cms.web.forms.ContentModuleForm'
at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1313)
at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:762)
at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:837)
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyType(PropertyUtilsBean.java:1173)
at org.apache.commons.beanutils.PropertyUtils.getPropertyType(PropertyUtils.java:564)
at org.apache.struts.util.RequestUtils.rationalizeMultipleFileProperty(RequestUtils.java:504)

maschoff
Site Admin
Posts: 2204
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEMM 2015 image preview and upload content manager

Post by maschoff » Thu Jun 04, 2015 11:02 am

This is a bug of RC3 because we updated to the EOF release of Struts 1.3.10 which behaved differently from 1.3.8. Please use the final release of OpenEMM 2015.
OpenEMM Maintainer

abinpaulr
Posts: 16
Joined: Fri May 29, 2015 6:49 am

Re: OpenEMM 2015 image preview and upload content manager

Post by abinpaulr » Thu Jun 04, 2015 7:28 pm

Thank You

Updated to OpenEMM 2015 final release and everything is fine now.

hisaltesse
Posts: 12
Joined: Sat May 30, 2015 3:03 am

Re: OpenEMM 2015 image preview and upload content manager

Post by hisaltesse » Tue Jun 09, 2015 7:00 pm

How can you tell if your installation is the final release?

Is this the final release?
OpenEMM-2015-bin.tar.gz 2015-02-23

Does the admin panel show any version number to confirm the release installed?

maschoff
Site Admin
Posts: 2204
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEMM 2015 image preview and upload content manager

Post by maschoff » Tue Jun 09, 2015 7:38 pm

Yes, this is the final release.
OpenEMM Maintainer

abinpaulr
Posts: 16
Joined: Fri May 29, 2015 6:49 am

Re: OpenEMM 2015 image preview and upload content manager

Post by abinpaulr » Fri Jun 19, 2015 3:39 pm

I am facing an issue now

when trying to use webservices I am getting an error "Could not connect to host"

when I try to run ./EmmSoapClient.sh

i get error


Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.agnitas.webservice.EmmSoapClient.<clinit>(EmmSoapClient.java:35)

also

./EmmCreateWSDL.sh -o ws.wsdl -l "http://localhost/:8080/emm_webservice" -n "urn:agnitas-webservice" -w ALL org.agnitas.webservice.EmmWebService_Port

is creating the ws.wsdl


anyone know how to solve this ?

maschoff
Site Admin
Posts: 2204
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEMM 2015 image preview and upload content manager

Post by maschoff » Fri Jun 19, 2015 4:11 pm

The old webservices will be removed in the next version of OpenEMM, you should use the WS2 API instead. You can find the documentation here:
https://sourceforge.net/projects/openem ... rsions%29/
OpenEMM Maintainer

abinpaulr
Posts: 16
Joined: Fri May 29, 2015 6:49 am

Re: OpenEMM 2015 image preview and upload content manager

Post by abinpaulr » Fri Jun 19, 2015 6:38 pm

Thank You

I have changed my wsdl file based on the new api


As in the example file I executed code

===============================================

include("WSSESoapClient.php");

// URL of the WSDL document. Modify that for your environment
$wsdlURL = "http://localhost:8080/openemm-ws/emmservices.wsdl";

// Your authentication information
$username = "set your username here";
$password = "set your password here";

// Create new SOAP client
$client = new WsseSoapClient( $wsdlURL, $username, $password);

// Example: Retrieve list of all available webservices
var_dump( $client->__getFunctions()); This is working

// Example: Retrieve list of all mailings
var_dump( $client->ListMailings());

====================================================

The error that I get now is :

com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed

I am using the username and password from table

"ws_admin_tbl"

not sure where the issue is :(

maschoff
Site Admin
Posts: 2204
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEMM 2015 image preview and upload content manager

Post by maschoff » Fri Jun 19, 2015 6:52 pm

ws_admin_tbl is used by WS1, webservice_user_tbl is used by WS2. You can find a documentation of the OpenEMM database schema in the Extension Development Guide.
OpenEMM Maintainer

abinpaulr
Posts: 16
Joined: Fri May 29, 2015 6:49 am

Re: OpenEMM 2015 image preview and upload content manager

Post by abinpaulr » Sat Jun 20, 2015 9:40 am

Thank You

WS2 working fine now :)

abinpaulr
Posts: 16
Joined: Fri May 29, 2015 6:49 am

Re: OpenEMM 2015 image preview and upload content manager

Post by abinpaulr » Tue Jun 23, 2015 4:48 pm

Hi

Can you please let me know why this function is mentioned as EMM only

MailingSummaryStatisticJob (EMM only)

I would like to use it if possible in my OpenEmm 2015

maschoff
Site Admin
Posts: 2204
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEMM 2015 image preview and upload content manager

Post by maschoff » Tue Jun 23, 2015 5:00 pm

It is only part of the code of the commercial tool EMM because the mailing statistics use a different database schema in EMM opposed to OpenEMM.
OpenEMM Maintainer

abinpaulr
Posts: 16
Joined: Fri May 29, 2015 6:49 am

Re: OpenEMM 2015 image preview and upload content manager

Post by abinpaulr » Thu Jul 16, 2015 1:34 pm

Hi

Thank You for all your help going very good with the api so for. But I am stuck with the content Manager api

I am using this file /cms_services/RemoteContentModuleManager?wsdl

but when trying to use the code below(PHP)

Code: Select all

$newmailins = [];
foreach ($mailingIds as $mailingId){
      $newmailins[] = new SoapVar( $mailingId , XSD_ANYTYPE , SOAP_ENC_OBJECT , "http://www.w3.org/2001/XMLSchema" );
}
$result = $client->addMailingBindings( 382 , $newmailins );
I am always getting the below error

org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType

also just tried

new SoapVar($mailingId, XSD_INTEGER, "integer", "http://www.w3.org/2001/XMLSchema")
now the error is
java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Integer

Post Reply