掲示板

invalid header field - Manifest issue?

7年前 に Lee Chamberlain によって更新されました。

invalid header field - Manifest issue?

Junior Member 投稿: 92 参加年月日: 16/05/05 最新の投稿
I'm trying to deploy a portlet and I repeatedly get the issue below.

I use Eclipse Mars 2 and development enviroment 3.
I'm deploying to Liferay 7

It looks like a manifest issue, but I've tried every solution available on the internet for it (and it didn't look wrong in the first place), but still no luck. Has anyone had this problem before?

Thanks
Lee


12:47:33,157 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing shoppingtest-portlet-7.0.0.1.war
12:47:39,477 INFO [fileinstall-C:/work/liferay-ce-portal-7.0-ga2/osgi/war][BaseAutoDeployListener:42] Copying portlets for C:\work\liferay-ce-portal-7.0-ga2\tomcat-8.0.32\temp\20161116124739458MXSOHSAA\shoppingtest-portlet-7.0.0.1.war
12:47:39,680 INFO [fileinstall-C:/work/liferay-ce-portal-7.0-ga2/osgi/war][BaseDeployer:873] Deploying shoppingtest-portlet-7.0.0.1.war
12:47:43,893 INFO [fileinstall-C:/work/liferay-ce-portal-7.0-ga2/osgi/war][BaseAutoDeployListener:50] Portlets for C:\work\liferay-ce-portal-7.0-ga2\tomcat-8.0.32\temp\20161116124739458MXSOHSAA\shoppingtest-portlet-7.0.0.1.war copied successfully
12:47:53,987 ERROR [fileinstall-C:/work/liferay-ce-portal-7.0-ga2/osgi/war][org_apache_felix_fileinstall:97] Failed to install artifact: C:\work\liferay-ce-portal-7.0-ga2\osgi\war\shoppingtest-portlet-7.0.0.1.war
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:406)
at java.util.jar.Manifest.read(Manifest.java:199)
at java.util.jar.JarInputStream.checkManifest(JarInputStream.java:95)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:86)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:62)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.installOrUpdateBundle(DirectoryWatcher.java:1000)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:951)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:870)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:485)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:313)
7年前 に Lee Chamberlain によって更新されました。

RE: invalid header field - Manifest issue?

Junior Member 投稿: 92 参加年月日: 16/05/05 最新の投稿
This is the contents of my manifest file


Manifest-Version: 1.0
Class-Path:
thumbnail
7年前 に Juan Gonzalez によって更新されました。

RE: invalid header field - Manifest issue?

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Did you try latest GA? (GA3).
7年前 に Lee Chamberlain によって更新されました。

RE: invalid header field - Manifest issue?

Junior Member 投稿: 92 参加年月日: 16/05/05 最新の投稿
No idea what the issue was, but it looks like it was just corrupt at some level. Redoing the Portlet from scratch fixed it.

Cheers
L
7年前 に Lee Chamberlain によって更新されました。

RE: invalid header field - Manifest issue?

Junior Member 投稿: 92 参加年月日: 16/05/05 最新の投稿
I've now recreated the problem twice more without any idea as to what is causing it.

The second of those times was creating a new Portlet (again) from scratch and directly copied the jsp/java files across and copied the service.xml code over the existing one.

Does anyone have any idea what cause be causing this? All error messages are unhelpful, and I think the rest of the office is getting sick of me crying out "there's nothing wrong with the bloody thing!"

This is my entire error message

15:46:46,035 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing myportlet-portlet-7.0.0.1.war
15:46:51,340 INFO [fileinstall-C:/work/liferay-ce-portal-7.0-ga2/osgi/war][BaseAutoDeployListener:42] Copying portlets for C:\work\liferay-ce-portal-7.0-ga2\tomcat-8.0.32\temp\20161122154651320MHRHZQZU\myportlet-portlet-7.0.0.1.war
15:46:51,546 INFO [fileinstall-C:/work/liferay-ce-portal-7.0-ga2/osgi/war][BaseDeployer:873] Deploying myportlet-portlet-7.0.0.1.war
15:46:55,769 INFO [fileinstall-C:/work/liferay-ce-portal-7.0-ga2/osgi/war][BaseAutoDeployListener:50] Portlets for C:\work\liferay-ce-portal-7.0-ga2\tomcat-8.0.32\temp\20161122154651320MHRHZQZU\myportlet-portlet-7.0.0.1.war copied successfully
15:47:06,151 ERROR [fileinstall-C:/work/liferay-ce-portal-7.0-ga2/osgi/war][org_apache_felix_fileinstall:97] Failed to install artifact: C:\work\liferay-ce-portal-7.0-ga2\osgi\war\myportlet-portlet-7.0.0.1.war
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:406)
at java.util.jar.Manifest.read(Manifest.java:199)
at java.util.jar.JarInputStream.checkManifest(JarInputStream.java:95)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:86)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:62)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.installOrUpdateBundle(DirectoryWatcher.java:1000)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:951)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:870)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:485)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:313)
7年前 に Lee Chamberlain によって更新されました。

RE: invalid header field - Manifest issue?

Junior Member 投稿: 92 参加年月日: 16/05/05 最新の投稿
After rebuilding my portlet from scratch again I got the below error.

It happened once, then reverted to the previous error above.

Caused by: org.osgi.framework.BundleException: The manifest line "java.util.List," is invalid; it has no colon ':' character after the header key.
at org.eclipse.osgi.util.ManifestElement.parseBundleManifest(ManifestElement.java:550)
at org.eclipse.osgi.framework.util.Headers.parseManifest(Headers.java:280)
at org.eclipse.osgi.storage.BundleInfo$Generation.getRawHeaders(BundleInfo.java:109)


There is no "java.util.List" in the manifest at all......