question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Plugins "not detected"

See original GitHub issue

Hi, and thank you for a great library šŸ‘

Iā€™m using most of you plugins in a PR Iā€™m working on for our application (Universal Media Server) and itā€™s working great for me. However, there is one of our team members that has a strange issue. It simply looks like the TwelveMonkeys plugins isnā€™t there on his computer. Weā€™ve obviously verified that they are, weā€™re using Maven and he can build the application without error. Iā€™ve studied our log file and I can find no Exception being thrown or nothing else that can give me a clue as to what is going wrong.

What happens is that we can see that the ā€œSunā€ plugins are chosen instead where they exist, and for formats where no other plugin is available ImageIO simply fails to read the file. It doesnā€™t look like thereā€™s a priority problem in other words, it seems like they simply never register.

Itā€™s not uncommon that things that normally work fail to work on his computer, he has a somewhat antiquated computer running WinXP 32bit. His CPU is a Athlon 1700+ that doesnā€™t have MMX support. Both the 32 bit OS and the lack of SSE2 support have shown itself to cause problems some times, but generally our application works on his computer as well. He is running Java 7.

Is there anyway I can troubleshoot/debug the (plugin) registration process to get some more information about what is actually going on?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Nadaharcommented, Feb 22, 2017

Ah, ok - was it SSE2 that was missing then?

1reaction
Nadaharcommented, Feb 28, 2017

In case itā€™s useful to someone else: I solved it using maven-assembly-plugin by putting the manually merged files in a folder outside the ā€œnormal Maven structureā€. I used /src/main/external-resources/META-INF/services/ since we already have other things that doesnā€™t fit anywhere there.

In addition I edited the assembly file like this:

<assembly
	xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
	
	<id>jar-with-dependencies</id>
	<formats>
		<format>jar</format>
	</formats>
	<includeBaseDirectory>false</includeBaseDirectory>

	<dependencySets>
		<dependencySet>
			<outputDirectory>/</outputDirectory>
			<useProjectArtifact>true</useProjectArtifact>
			<unpack>true</unpack>
            <unpackOptions>
				<excludes>
					<exclude>META-INF/services/javax.imageio.spi.ImageReaderSpi</exclude>
					<exclude>META-INF/services/javax.imageio.spi.ImageWriterSpi</exclude>
				</excludes>
			</unpackOptions>
			<scope>runtime</scope>
		</dependencySet>
	</dependencySets>
	<files>
		<file>
			<source>${project.basedir}/src/main/external-resources/META-INF/services/javax.imageio.spi.ImageReaderSpi</source>
			<outputDirectory>META-INF/services</outputDirectory>
		</file>
		<file>
			<source>${project.basedir}/src/main/external-resources/META-INF/services/javax.imageio.spi.ImageWriterSpi</source>
			<outputDirectory>META-INF/services</outputDirectory>
		</file>
	</files>
</assembly>

@haraldk Thank you for your suggestions, I knew about maven-shade-plugin (I actually have a 1,5 year old PR about switching to that) but converting our POM with loads of undocumented ā€œspecial casesā€ and custom handling isnā€™t that easy. To make it worse, the project is originally converted from ant and most of our POM is written by people thatā€™s no longer involved. Itā€™s doable, by all means, but I simply wanted to fix this without taking on that can of worms. Converting to the onejar plugins probably has more or less the same challenges in additon to that it looks abandoned.

Thank you again for all help, it seems like itā€™s working just fine now šŸ˜‰

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble installing the plug-in? - Microsoft Support
Plug-in file moved or deleted. Plug-in isn't detected after installation ... Clear Do not save encrypted pages to disk and click OK. Re-join...
Read more >
Installed and enabled Plugin not detected - WordPress.org
The plugin is currently installed and enabled but, wordpress does not detect it and the gallery is not displayedā€¦ I tried to uninstall...
Read more >
Fix Chrome Plugins Not Working in Windows 10 - TechCult
How to Fix Chrome Plugins Not Working in Windows 10 Ā· Method 1: Restart Chrome Ā· Method 2: Update Chrome Ā· Method 3:...
Read more >
How can I find my plugin it my DAW? It doesn't show up. - UJAM
This guide contains hints on troubleshooting when Plug-ins do not appear in your DAW after installation.
Read more >
How to fix the error ā€œPlugins are not found, Click me ... - Foscam
Then go to Windows Task Manager,check the ā€œProcessesā€ and find the software on your computer which occupied the port that camera plugin service...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found