Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for SQL Server native sequences and README.md update #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JedrekWie
Copy link

Hi,
I tried to deploy this extension in my MAS Manage environment running against SQL Server and this operation failed.
The reason was that instead of actual sequence value I was getting an error like follows:

              Calling the class file : psdi.zebralabel.en.V1000_01 Mon Sep 30 12:43:24 CEST 2024
    -------------------------------------------------------------------
1 ms	commit
;

// Success.

ERROR: For input string: "next value for autoscriptseq"
	at java.lang.NumberFormatException(NumberFormatException.java: 65)
	at java.lang.Long(Long.java: 692)
	at java.lang.Long(Long.java: 817)
	at psdi.zebralabel.en.AutoScriptUtil(AutoScriptUtil.java: 314)
	at psdi.zebralabel.en.AutoScriptUtil(AutoScriptUtil.java: 299)
	at psdi.zebralabel.en.AutoScriptUtil(AutoScriptUtil.java: 218)
	at psdi.zebralabel.en.V1000_01(V1000_01.java: 42)
	at psdi.script.AutoUpgradeTemplate(AutoUpgradeTemplate.java: 421)
	at psdi.zebralabel.en.V1000_01(V1000_01.java: 27)
	at jdk.internal.reflect.NativeConstructorAccessorImpl(NativeConstructorAccessorImpl.java: Native Method)
	at jdk.internal.reflect.NativeConstructorAccessorImpl(NativeConstructorAccessorImpl.java: 62)
	at jdk.internal.reflect.DelegatingConstructorAccessorImpl(DelegatingConstructorAccessorImpl.java: 45)
	at java.lang.reflect.Constructor(Constructor.java: 490)
	at psdi.tools.ScriptExecutionInfo(ScriptExecutionInfo.java: 609)
	at psdi.tools.ScriptExecutionInfo(ScriptExecutionInfo.java: 306)
	at psdi.tools.RunScripts(RunScripts.java: 160)
	at psdi.tools.UpdateDB(UpdateDB.java: 3148)
	at psdi.tools.UpdateDB(UpdateDB.java: 3007)
	at psdi.tools.UpdateDB(UpdateDB.java: 2441)
	at psdi.tools.UpdateDB(UpdateDB.java: 6482)
	at psdi.tools.UpdateDB(UpdateDB.java: 337)
	at psdi.tools.UpdateDB(UpdateDB.java: 3613)

It turns out that since some time Maximo (at least 7.6.1.3) and MAS Manage support native sequences when running against SQL Server. This had to be taken into consideration when getting new row unique ID.

Furthermore when I attempted to build the project then the operation failed due to commonweb.jar dependency introduced by com.ibm.tivoli.maximo.oslc.provider.MaximoAuthenticatorImpl reference in io.sharptree.maximo.webclient.servlet.ZebraLabelPrintDispatchServlet class.

I hope you will find this pull request worth reviewing and accepting.

//Andrzej

Andrzej Wieclaw added 2 commits September 30, 2024 14:40
Dependency introduced by com.ibm.tivoli.maximo.oslc.provider.MaximoAuthenticatorImpl reference in io.sharptree.maximo.webclient.servlet.ZebraLabelPrintDispatchServlet class.
@jvenhuizen jvenhuizen self-assigned this Nov 5, 2024
@jvenhuizen
Copy link
Contributor

Incorporated changes to upstream repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants